From 5a6d3d1fbca70d7f528c685292d64c4cd0106aa6 Mon Sep 17 00:00:00 2001 From: Suniel Mahesh Date: Mon, 3 Feb 2020 19:20:05 +0530 Subject: 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 Reviewed-by: Kever Yang --- arch/arm/mach-rockchip/tpl.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'arch') diff --git a/arch/arm/mach-rockchip/tpl.c b/arch/arm/mach-rockchip/tpl.c index 31a3eb4c285..a2b8d31cbd7 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: -- cgit v1.3.1