summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Chotard <[email protected]>2025-11-14 17:23:37 +0100
committerPatrice Chotard <[email protected]>2025-12-05 11:39:41 +0100
commitea8345598a7141d04f4d48106e41a8f88f0cc42c (patch)
tree64971b8f7fe0a91b26c7dcb1022bee733de425e8
parent62081e5d2fbcae945b04fca3530b0ca51d865c2f (diff)
board: st: Update LED management for stm32mp2
Remove get_led() and setup_led() which became obsolete since led_boot_on() introduction. led_boot_on() is automatically called from board_r.c Signed-off-by: Patrice Chotard <[email protected]> Reviewed-by: Quentin Schulz <[email protected]>
-rw-r--r--board/st/stm32mp2/stm32mp2.c38
1 files changed, 1 insertions, 37 deletions
diff --git a/board/st/stm32mp2/stm32mp2.c b/board/st/stm32mp2/stm32mp2.c
index a72056e12d6..7bc7d2a608f 100644
--- a/board/st/stm32mp2/stm32mp2.c
+++ b/board/st/stm32mp2/stm32mp2.c
@@ -58,41 +58,6 @@ int checkboard(void)
return 0;
}
-static int get_led(struct udevice **dev, char *led_string)
-{
- const char *led_name;
- int ret;
-
- led_name = ofnode_conf_read_str(led_string);
- if (!led_name) {
- log_debug("could not find %s config string\n", led_string);
- return -ENOENT;
- }
- ret = led_get_by_label(led_name, dev);
- if (ret) {
- log_debug("get=%d\n", ret);
- return ret;
- }
-
- return 0;
-}
-
-static int setup_led(enum led_state_t cmd)
-{
- struct udevice *dev;
- int ret;
-
- if (!CONFIG_IS_ENABLED(LED))
- return 0;
-
- ret = get_led(&dev, "u-boot,boot-led");
- if (ret)
- return ret;
-
- ret = led_set_state(dev, cmd);
- return ret;
-}
-
static void check_user_button(void)
{
struct udevice *button;
@@ -118,7 +83,6 @@ static void check_user_button(void)
/* board dependent setup after realloc */
int board_init(void)
{
- setup_led(LEDST_ON);
check_user_button();
return 0;
@@ -222,5 +186,5 @@ int board_late_init(void)
void board_quiesce_devices(void)
{
- setup_led(LEDST_OFF);
+ led_boot_off();
}