u-boot/drivers/misc
Bernhard Nortmann 13cfbe5135 allow LED initialization without STATUS_LED_BOOT
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>
2015-10-24 13:50:02 -04:00
..
ali512x.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
altera_sysid.c nios2: convert altera sysid to driver model 2015-10-23 07:37:03 +08:00
cbmem_console.c stdio: Pass device pointer to stdio methods 2014-07-23 14:07:23 +01:00
cros_ec.c cros_ec: Remove the old tunnel code 2015-08-05 21:06:16 -06:00
cros_ec_i2c.c cros_ec: exynos: Match up device tree with kernel version 2015-04-18 11:11:16 -06:00
cros_ec_lpc.c cros_ec: exynos: Match up device tree with kernel version 2015-04-18 11:11:16 -06:00
cros_ec_sandbox.c sandbox: cros_ec: Support EC_CMD_ENTERING_MODE emulation 2015-05-14 18:49:34 -06:00
cros_ec_spi.c cros_ec: Handle the single duplex requirement in cros_ec 2015-05-05 20:58:19 -06:00
ds4510.c cmd_usage(): simplify return code handling 2010-07-24 20:43:57 +02:00
fsl_debug_server.c driver: misc: debug server: Update Error message 2015-09-01 21:38:58 -05:00
fsl_devdis.c arm/ls102xa:add hwconfig setting to support disable unused devices 2015-09-01 21:49:20 -05:00
fsl_ifc.c armv8/ls2085aqds: NAND boot support 2015-04-23 16:46:50 -07:00
fsl_iim.c arm: mx5: Add fuse supply enable in fsl_iim 2014-01-03 15:44:06 +01:00
fsl_sec_mon.c fsl_sec_mon: Add driver for Security Monitor block of Freescale 2015-03-05 12:04:59 -08:00
gpio_led.c add generic stubs for GPIO LEDs 2015-10-23 12:15:28 -04:00
i2c_eeprom.c i2c_eeprom: include <linux/err.h> to fix build error 2015-01-05 17:45:15 -07:00
i2c_eeprom_emul.c sandbox: Add missing errno.h includes in a few files 2015-05-14 18:49:34 -06:00
Kconfig nios2: convert altera sysid to driver model 2015-10-23 07:37:03 +08:00
Makefile nios2: convert altera sysid to driver model 2015-10-23 07:37:03 +08:00
mc9sdz60.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
misc-uclass.c dm: implement a Miscellaneous uclass 2015-10-23 07:37:03 +08:00
mxc_ocotp.c mxc: ocotp fix hole in shadow registers 2015-09-02 15:39:51 +02:00
mxs_ocotp.c mxs_ocotp: Shift the HBUS divider correctly 2015-09-02 15:26:13 +02:00
ns87308.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
pca9551_led.c allow LED initialization without STATUS_LED_BOOT 2015-10-24 13:50:02 -04:00
pdsp188x.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
reset-uclass.c dm: reset: Allow reset_walk() to return 2015-07-21 17:39:31 -06:00
reset_sandbox.c sandbox: Correct operaion of 'reset' command 2015-10-05 15:47:49 +01:00
smsc_lpc47m.c x86: superio: Add keyboard controller support to smsc_lpc47m driver 2015-08-26 07:54:12 -07:00
status_led.c allow LED initialization without STATUS_LED_BOOT 2015-10-24 13:50:02 -04:00
swap_case.c sandbox: Add missing errno.h includes in a few files 2015-05-14 18:49:34 -06:00
syscon_sandbox.c dm: test: Add a test for the system controller uclass 2015-07-21 17:39:33 -06:00
twl4030_led.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00