aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorKever Yang2020-08-20 17:32:52 +0800
committerKever Yang2020-08-21 19:56:19 +0800
commitb5b81f2490628650137c9fee3679c995f5fac757 (patch)
treebff75d91d964618563d9814ef1ed6d2ee7b3f6d7 /board
parente2f8ba8a5f5b100f08118793743cfe5064b8c381 (diff)
rockchip: firefly-rk3288: Fix the code support for SPL_LED
Fix the build error for the wrong code when CONFIG_SPL_LED is enabled. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'board')
-rw-r--r--board/firefly/firefly-rk3288/firefly-rk3288.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/board/firefly/firefly-rk3288/firefly-rk3288.c b/board/firefly/firefly-rk3288/firefly-rk3288.c
index 1965985a0f4..bd8a32cf7b3 100644
--- a/board/firefly/firefly-rk3288/firefly-rk3288.c
+++ b/board/firefly/firefly-rk3288/firefly-rk3288.c
@@ -5,9 +5,11 @@
#include <common.h>
#include <hang.h>
+#include <led.h>
#include <log.h>
#ifdef CONFIG_SPL_BUILD
+DECLARE_GLOBAL_DATA_PTR;
static int setup_led(void)
{
#ifdef CONFIG_SPL_LED
@@ -23,7 +25,7 @@ static int setup_led(void)
debug("%s: get=%d\n", __func__, ret);
return ret;
}
- ret = led_set_on(dev, 1);
+ ret = led_set_state(dev, LEDST_ON);
if (ret)
return ret;
#endif