mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
No user of the legacy LED API anymore (except Sunxi with the PinePhone but that is now a Sunxi-specific implementation), so let's remove anything related. Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
55 lines
998 B
C
55 lines
998 B
C
|
|
#ifdef CONFIG_GPIO_LED_STUBS
|
|
|
|
/* 'generic' override of colored LED stubs, to use GPIO functions instead */
|
|
|
|
#ifdef CONFIG_LED_STATUS_RED
|
|
void red_led_on(void)
|
|
{
|
|
__led_set(CONFIG_LED_STATUS_RED, CONFIG_LED_STATUS_ON);
|
|
}
|
|
|
|
void red_led_off(void)
|
|
{
|
|
__led_set(CONFIG_LED_STATUS_RED, CONFIG_LED_STATUS_OFF);
|
|
}
|
|
#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
|
|
|
|
#ifdef CONFIG_LED_STATUS_YELLOW
|
|
void yellow_led_on(void)
|
|
{
|
|
__led_set(CONFIG_LED_STATUS_YELLOW, CONFIG_LED_STATUS_ON);
|
|
}
|
|
|
|
void yellow_led_off(void)
|
|
{
|
|
__led_set(CONFIG_LED_STATUS_YELLOW, CONFIG_LED_STATUS_OFF);
|
|
}
|
|
#endif
|
|
|
|
#ifdef CONFIG_LED_STATUS_BLUE
|
|
void blue_led_on(void)
|
|
{
|
|
__led_set(CONFIG_LED_STATUS_BLUE, CONFIG_LED_STATUS_ON);
|
|
}
|
|
|
|
void blue_led_off(void)
|
|
{
|
|
__led_set(CONFIG_LED_STATUS_BLUE, CONFIG_LED_STATUS_OFF);
|
|
}
|
|
#endif
|
|
|
|
#endif /* CONFIG_GPIO_LED_STUBS */
|