diff options
author | Uri Mashiach <uri.mashiach@compulab.co.il> | 2017-01-19 10:51:45 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-01-21 15:12:33 -0500 |
commit | 2d8d190c8394b43c0989cdb04a50cb48d4e1f8da (patch) | |
tree | a19e034f406aba9bfc07e8ef0d4fafc6fa4a04b7 /board/ti/beagle/led.c | |
parent | 79267edd10fde0815c382157b9cb280166637fac (diff) | |
download | u-boot-2d8d190c8394b43c0989cdb04a50cb48d4e1f8da.tar.gz |
status_led: Kconfig migration
Move all of the status LED feature to drivers/led/Kconfig.
The LED status definitions were moved from the board configuration
files to the defconfig files.
TBD: Move all of the definitions in the include/status_led.h to the
relevant board's defconfig files.
Tested boards: CL-SOM-AM57x, CM-T335
Signed-off-by: Uri Mashiach <uri.mashiach@compulab.co.il>
Diffstat (limited to 'board/ti/beagle/led.c')
-rw-r--r-- | board/ti/beagle/led.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/board/ti/beagle/led.c b/board/ti/beagle/led.c index a913a4c84a..30b8b93da5 100644 --- a/board/ti/beagle/led.c +++ b/board/ti/beagle/led.c @@ -15,26 +15,26 @@ #define BEAGLE_LED_USR0 150 #define BEAGLE_LED_USR1 149 -#ifdef STATUS_LED_GREEN +#ifdef CONFIG_LED_STATUS_GREEN void green_led_off(void) { - __led_set (STATUS_LED_GREEN, 0); + __led_set(CONFIG_LED_STATUS_GREEN, 0); } void green_led_on(void) { - __led_set (STATUS_LED_GREEN, 1); + __led_set(CONFIG_LED_STATUS_GREEN, 1); } #endif static int get_led_gpio(led_id_t mask) { -#ifdef STATUS_LED_BIT - if (STATUS_LED_BIT & mask) +#ifdef CONFIG_LED_STATUS0 + if (CONFIG_LED_STATUS_BIT & mask) return BEAGLE_LED_USR0; #endif -#ifdef STATUS_LED_BIT1 - if (STATUS_LED_BIT1 & mask) +#ifdef CONFIG_LED_STATUS1 + if (CONFIG_LED_STATUS_BIT1 & mask) return BEAGLE_LED_USR1; #endif |