Loading...
menu "LED Support"

config LED
	bool "Enable LED support"
	depends on DM
	help
	  Many boards have LEDs which can be used to signal status or alerts.
	  U-Boot provides a uclass API to implement this feature. LED drivers
	  can provide access to board-specific LEDs. Use of the device tree
	  for configuration is encouraged.

if LED

config LED_BOOT
	bool "Enable LED boot support"
	help
	  Enable LED boot support.

	  LED boot is a specific LED assigned to signal boot operation status.
	  Defined in Device Tree /options/u-boot node. Refer here for the supported
	  options [1].

	  [1] dtschema/schemas/options/u-boot.yaml

config LED_ACTIVITY
	bool "Enable LED activity support"
	help
	  Enable LED activity support.

	  LED activity is a specific LED assigned to signal activity operation
	  like file trasnfer, flash write/erase...

	  Defined in Device Tree /options/u-boot node. Refer here for the supported
	  options [1].

	  [1] dtschema/schemas/options/u-boot.yaml

config LED_BCM6328
	bool "LED Support for BCM6328"
	depends on ARCH_BMIPS
	help
	  This option enables support for LEDs connected to the BCM6328
	  LED HW controller accessed via MMIO registers.
	  HW blinking is supported and up to 24 LEDs can be controlled.
	  All LEDs can blink at the same time but the delay is shared, which
	  means that if one LED is set to blink at 100ms and then a different
	  LED is set to blink at 200ms, both will blink at 200ms.

config LED_BCM6358
	bool "LED Support for BCM6358"
	depends on ARCH_BMIPS
	help
	  This option enables support for LEDs connected to the BCM6358
	  LED HW controller accessed via MMIO registers.
	  HW has no blinking capabilities and up to 32 LEDs can be controlled.

config LED_BCM6753
	bool "LED Support for BCM6753"
	depends on BCM6855
	help
	  This option enables support for LEDs connected to the BCM6753
	  HW has blinking and fading capabilities and up to 32 LEDs can be controlled.

config LED_BCM6858
	bool "LED Support for BCM6858"
	depends on BCM6856 || BCM6858 || BCM63158
	help
	  This option enables support for LEDs connected to the BCM6858
	  HW has blinking capabilities and up to 32 LEDs can be controlled.

config LED_CORTINA
	bool "LED Support for Cortina Access CAxxxx SoCs"
	depends on CORTINA_PLATFORM
	help
	  This option enables support for LEDs connected to the Cortina
	  Access CAxxxx SOCs.

config LED_LP5562
	bool "LED Support for LP5562"
	depends on DM_I2C
	help
	  This option enables support for LEDs connected to the TI LP5562
	  4 channel I2C LED controller.  Driver fully supports blink on the
	  B/G/R LEDs.  White LED can blink, but re-uses the period from blue.

config LED_PWM
	bool "LED PWM"
	depends on DM_PWM
	help
	  Enable support for LEDs connected to PWM.
	  Linux compatible ofdata.

config LED_BLINK
	bool "Support hardware LED blinking"
	help
	  Some drivers can support automatic blinking of LEDs with a given
	  period, without needing timers or extra code to handle the timing.
	  This option enables support for this which adds slightly to the
	  code size.

config LED_SW_BLINK
	bool "Support software LED blinking"
	select CYCLIC
	help
	  Turns on led blinking implemented in the software, useful when
	  the hardware doesn't support led blinking. Half of the period
	  led will be ON and the rest time it will be OFF. Standard
	  led commands can be used to configure blinking. Does nothing
	  if driver supports hardware blinking.
	  WARNING: Blinking may be inaccurate during execution of time
	  consuming commands (ex. flash reading). Also it completely
	  stops during OS booting.

config SPL_LED
	bool "Enable LED support in SPL"
	depends on SPL_DM
	help
	  The LED subsystem adds a small amount of overhead to the image.
	  If this is acceptable and you have a need to use LEDs in SPL,
	  enable this option. You will need to enable device tree in SPL
	  for this to work.

config LED_GPIO
	bool "LED support for GPIO-connected LEDs"
	depends on DM_GPIO
	help
	  Enable support for LEDs which are connected to GPIO lines. These
	  GPIOs may be on the SoC or some other device which provides GPIOs.
	  The GPIO driver must used driver model. LEDs are configured using
	  the device tree.

config SPL_LED_GPIO
	bool "LED support for GPIO-connected LEDs in SPL"
        depends on SPL_LED && SPL_DM_GPIO
	help
	  This option is an SPL-variant of the LED_GPIO option.
	  See the help of LED_GPIO for details.

endif # LED

endmenu