mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
rockchip: rk3188: 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>
This commit is contained in:
parent
5c5435093a
commit
e2f8ba8a5f
|
@ -6,6 +6,7 @@
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <hang.h>
|
#include <hang.h>
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
|
#include <led.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <syscon.h>
|
#include <syscon.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
|
@ -105,6 +106,7 @@ int rk_board_late_init(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_SPL_BUILD
|
#ifdef CONFIG_SPL_BUILD
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
static int setup_led(void)
|
static int setup_led(void)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_SPL_LED
|
#ifdef CONFIG_SPL_LED
|
||||||
|
@ -120,7 +122,7 @@ static int setup_led(void)
|
||||||
debug("%s: get=%d\n", __func__, ret);
|
debug("%s: get=%d\n", __func__, ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
ret = led_set_on(dev, 1);
|
ret = led_set_state(dev, LEDST_ON);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user