From: Craig H. <cr...@gu...> - 2006-06-02 15:53:13
|
On Jun 2, 2006, at 12:14 AM, Demetris Zavorotnichenko wrote: > pxaregs GPCR0_16 1 > pxaregs GPDR0_16 1 > pxaregs GPSR0_16 1 <= (to enable the LCD) > How do i add the registers for the Samsung in the U-boot based on > the bove? u-boot doesn't have an easy way to set the GPxx registers (though it would be pretty easy to add a "gpio" command similar to the linux / proc/gpio thing). You'd have to use mw.l to write the register directly in memory; you could do that in your bootcmd before the "bootm" call. Alternatively, if you don't need the Samsung GPIO thing set before linux runs, then you could have a simple /etc/init.d script which uses /proc/gpio to twiddle the line you want. C |