mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
led: remove support for green status led in legacy API
The last user of it was removed in a previous commit so let's remove its support entirely. Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Reviewed-by: Heiko Schocher <hs@nabladev.com>
This commit is contained in:
@@ -45,9 +45,6 @@ static const led_tbl_t led_commands[] = {
|
||||
{ "5", CONFIG_LED_STATUS_BIT5, NULL, NULL, NULL },
|
||||
#endif
|
||||
#endif
|
||||
#ifdef CONFIG_LED_STATUS_GREEN
|
||||
{ "green", CONFIG_LED_STATUS_GREEN, green_led_off, green_led_on, NULL },
|
||||
#endif
|
||||
#ifdef CONFIG_LED_STATUS_RED
|
||||
{ "red", CONFIG_LED_STATUS_RED, red_led_off, red_led_on, NULL },
|
||||
#endif
|
||||
@@ -162,9 +159,6 @@ U_BOOT_CMD(
|
||||
"5|"
|
||||
#endif
|
||||
#endif
|
||||
#ifdef CONFIG_LED_STATUS_GREEN
|
||||
"green|"
|
||||
#endif
|
||||
#ifdef CONFIG_LED_STATUS_RED
|
||||
"red|"
|
||||
#endif
|
||||
|
||||
@@ -67,8 +67,6 @@ DECLARE_GLOBAL_DATA_PTR;
|
||||
*/
|
||||
__weak void red_led_on(void) {}
|
||||
__weak void red_led_off(void) {}
|
||||
__weak void green_led_on(void) {}
|
||||
__weak void green_led_off(void) {}
|
||||
|
||||
/*
|
||||
* Why is gd allocated a register? Prior to reloc it might be better to
|
||||
|
||||
@@ -58,8 +58,7 @@ CONFIG_STATUS_LED_BOOT is the LED to light when the board is booting.
|
||||
This must be a valid LED number (0-5).
|
||||
|
||||
CONFIG_STATUS_LED_RED is the red LED. It is used to signal errors. This must be
|
||||
a valid LED number (0-5). Other similar color LED's macros are
|
||||
CONFIG_STATUS_LED_GREEN.
|
||||
a valid LED number (0-5).
|
||||
|
||||
General LED functions
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
@@ -81,8 +80,6 @@ The functions names explain their purpose.
|
||||
|
||||
- red_LED_on
|
||||
- red_LED_off
|
||||
- green_LED_on
|
||||
- green_LED_off
|
||||
|
||||
These are weakly defined in arch/arm/lib/board.c to noops. Where applicable, define
|
||||
these functions in the board specific source.
|
||||
|
||||
@@ -414,20 +414,6 @@ config LED_STATUS_RED
|
||||
|
||||
endif # LED_STATUS_RED_ENABLE
|
||||
|
||||
config LED_STATUS_GREEN_ENABLE
|
||||
bool "Enable green LED"
|
||||
help
|
||||
Enable green status LED.
|
||||
|
||||
if LED_STATUS_GREEN_ENABLE
|
||||
|
||||
config LED_STATUS_GREEN
|
||||
int "Green LED identification"
|
||||
help
|
||||
Valid enabled LED device number (0-5).
|
||||
|
||||
endif # LED_STATUS_GREEN_ENABLE
|
||||
|
||||
config LED_STATUS_CMD
|
||||
bool "Enable status LED commands"
|
||||
|
||||
|
||||
@@ -67,16 +67,4 @@ void red_led_off(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LED_STATUS_GREEN
|
||||
void green_led_on(void)
|
||||
{
|
||||
__led_set(CONFIG_LED_STATUS_GREEN, CONFIG_LED_STATUS_ON);
|
||||
}
|
||||
|
||||
void green_led_off(void)
|
||||
{
|
||||
__led_set(CONFIG_LED_STATUS_GREEN, CONFIG_LED_STATUS_OFF);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_GPIO_LED_STUBS */
|
||||
|
||||
@@ -72,13 +72,9 @@ static inline void status_led_boot_blink(void) { }
|
||||
#ifndef __ASSEMBLY__
|
||||
void red_led_on(void);
|
||||
void red_led_off(void);
|
||||
void green_led_on(void);
|
||||
void green_led_off(void);
|
||||
#else
|
||||
.extern red_led_on
|
||||
.extern red_led_off
|
||||
.extern green_led_on
|
||||
.extern green_led_off
|
||||
#endif
|
||||
|
||||
#endif /* _STATUS_LED_H_ */
|
||||
|
||||
Reference in New Issue
Block a user