summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSuniel Mahesh <sunil@amarulasolutions.com>2020-02-03 19:20:05 +0530
committerKever Yang <kever.yang@rock-chips.com>2020-02-19 16:45:38 +0800
commit5a6d3d1fbca70d7f528c685292d64c4cd0106aa6 (patch)
tree4c6ce97d7956e7f73dd47d77225686f49a4287ae /arch
parent01892d230dd456278cd28c3b8de109202f910238 (diff)
board: roc-pc-rk3399: Add support for onboard LED's and push button to indicate power mode
Added support for onboard LED's and push button. When powered board will be in low power mode(yellow LED), on button press, board enters full power mode (red LED) and boots u-boot. Signed-off-by: Suniel Mahesh <sunil@amarulasolutions.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-rockchip/tpl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-rockchip/tpl.c b/arch/arm/mach-rockchip/tpl.c
index 31a3eb4c28..a2b8d31cbd 100644
--- a/arch/arm/mach-rockchip/tpl.c
+++ b/arch/arm/mach-rockchip/tpl.c
@@ -40,11 +40,18 @@ __weak void rockchip_stimer_init(void)
TIMER_CONTROL_REG);
}
+__weak int board_early_init_f(void)
+{
+ return 0;
+}
+
void board_init_f(ulong dummy)
{
struct udevice *dev;
int ret;
+ board_early_init_f();
+
#if defined(CONFIG_DEBUG_UART) && defined(CONFIG_TPL_SERIAL_SUPPORT)
/*
* Debug UART can be used from here if required: