mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-01 03:33:14 +01:00
For current U-Boot to initialize status LEDs via status_led_init(), it is required to have both CONFIG_STATUS_LED and STATUS_LED_BOOT defined. This may be a particular concern with GPIO LEDs, where __led_init() is required to correctly set up the GPIO (gpio_request and gpio_direction_output). Without STATUS_LED_BOOT the initialization isn't called, which could leave the user with a non-functional "led" command - due to the fact that the LED routines in gpio_led.c use gpio_set_value() just fine, but the GPIO never got set up properly in the first place. I think having CONFIG_STATUS_LED is sufficient to justify a corresponding call to status_led_init(), even with no STATUS_LED_BOOT defined. To do so, common/board_r.c needs call that routine, so it now is exposed via status_led.h. Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de> [trini: Add dummy __led_init to pca9551_led.c] Signed-off-by: Tom Rini <trini@konsulko.com> |
||
|---|---|---|
| .. | ||
| ali512x.c | ||
| altera_sysid.c | ||
| cbmem_console.c | ||
| cros_ec.c | ||
| cros_ec_i2c.c | ||
| cros_ec_lpc.c | ||
| cros_ec_sandbox.c | ||
| cros_ec_spi.c | ||
| ds4510.c | ||
| fsl_debug_server.c | ||
| fsl_devdis.c | ||
| fsl_ifc.c | ||
| fsl_iim.c | ||
| fsl_sec_mon.c | ||
| gpio_led.c | ||
| i2c_eeprom.c | ||
| i2c_eeprom_emul.c | ||
| Kconfig | ||
| Makefile | ||
| mc9sdz60.c | ||
| misc-uclass.c | ||
| mxc_ocotp.c | ||
| mxs_ocotp.c | ||
| ns87308.c | ||
| pca9551_led.c | ||
| pdsp188x.c | ||
| reset-uclass.c | ||
| reset_sandbox.c | ||
| smsc_lpc47m.c | ||
| status_led.c | ||
| swap_case.c | ||
| syscon_sandbox.c | ||
| twl4030_led.c | ||