[U-Boot] [PATCH 6/7] status_led: Add support for inverted LEDs

Benoît Thébaudeau benoit.thebaudeau at advansee.com
Sat Sep 28 16:17:02 CEST 2013


Dear Otavio Salvador,

On Saturday, September 28, 2013 5:24:17 AM, Otavio Salvador wrote:
> There're cases we want to use active-low LEDs and the 'inverted' logic
> needs to be added. This includes it using the STATUS_LED_INVERT macro.

There is already a STATUS_LED_ACTIVE definition (though not one per LED) in
include/status_led.h for some platforms. Wouldn't it be worth keeping the same
naming here for consistency (i.e. STATUS_LED_ACTIVEn, which would also imply
exchanging 0/1 values)?

[...]

Best regards,
Benoît


More information about the U-Boot mailing list