diff options
| author | Quentin Schulz <[email protected]> | 2025-11-19 18:19:55 +0100 |
|---|---|---|
| committer | Tien Fong Chee <[email protected]> | 2025-12-01 14:29:37 +0800 |
| commit | da09bb6a6c1f40dd5fec18ee5c946ebf5722b7ad (patch) | |
| tree | 36a352564297e5f3fd5bb19c4b235eb5ce34cde2 /board | |
| parent | 0af9efa7c1873b2d52eaa82d67a8c67351a7f8ca (diff) | |
board: softing: vining: migrate to modern LED framework
This migrates from the legacy LED API to use the modern LED framework
which makes use of the FDT.
Signed-off-by: Quentin Schulz <[email protected]>
Acked-by: Tien Fong Chee <[email protected]>
Diffstat (limited to 'board')
| -rw-r--r-- | board/softing/vining_fpga/socfpga.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/board/softing/vining_fpga/socfpga.c b/board/softing/vining_fpga/socfpga.c index ec2c7ea3631..475c19f2781 100644 --- a/board/softing/vining_fpga/socfpga.c +++ b/board/softing/vining_fpga/socfpga.c @@ -8,7 +8,7 @@ #include <env.h> #include <init.h> #include <net.h> -#include <status_led.h> +#include <led.h> #include <asm/arch/reset_manager.h> #include <asm/global_data.h> #include <asm/io.h> @@ -24,10 +24,16 @@ DECLARE_GLOBAL_DATA_PTR; int board_late_init(void) { const unsigned int usb_nrst_gpio = 35; + struct udevice *dev; int ret; - status_led_set(1, CONFIG_LED_STATUS_ON); - status_led_set(2, CONFIG_LED_STATUS_ON); + ret = led_get_by_label("status_1", &dev); + if (!ret) + led_set_state(dev, LEDST_ON); + + ret = led_get_by_label("status_2", &dev); + if (!ret) + led_set_state(dev, LEDST_ON); /* Address of boot parameters for ATAG (if ATAG is used) */ gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100; |
