[U-Boot] Support for reading GPIO's in boot scripts?

Charles Krinke charles.krinke at gmail.com
Mon Mar 28 15:57:28 CEST 2011


Let me add my $.02. I have a request to be able to boot a USB drive. So,
reading a GPIO pin and making a decision in a script is a desirable thing.
Certainly a 'MD 0x12345678' can read a pin but then making a decision in an
environment string chain would help. Can we do this?
 On Mar 28, 2011 1:57 AM, "Rogan Dawes" <rogan at dawes.za.net> wrote:
> Hi folks,
>
> I'm wondering if there is any support in u-boot for reading the state of
> a GPIO input (i.e. button) to control the sequence of boot events?
>
> i.e. my board has a reset button, can I read its state to determine
> whether to try to TFTP-boot a new kernel, or to boot the existing one in
> flash?
>
> I did try to grep the sources for any hints, but did not find anything.
> I may have been looking in the wrong place, of course!
>
> Thanks,
>
> Rogan
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot


More information about the U-Boot mailing list