Setting Custom GPIO Immediately After Reboot |
This application note explains how to manipulate GPIO immediately after power-on / reboot. This feature can be used to indicate to the user that the device is alive and running, while the system still continues to boot up. For instance, the unit can turn on certain LED's, etc.
U-Boot Custom GPIO Handling Function A placeholder function for setting up custom GPIO resides in the The prototype of this function is defined as follows: static void custom_gpio_setup(void); The custom_gpio_setup() function is called from the standard U-Boot function board_late_init(), which is enabled by the CONFIG_BOARD_LATE_INIT configuration option. Example of GPIO Handling Function In a way of providing an example of using that function, U-Boot turns LED1 on. |