]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: rk3399: Add weak led_setup()
authorJagan Teki <jagan@amarulasolutions.com>
Tue, 21 Jul 2020 15:06:00 +0000 (20:36 +0530)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 22 Jul 2020 12:55:13 +0000 (20:55 +0800)
Add weak led_setup() so that board which has an uncommon
led setup code that can make use of custom implementation.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/mach-rockchip/rk3399/rk3399.c

index 4fda93b15271e501c14d77afbf817ff0a8b2727d..c6434839719d84081b6ef6f3e96e06bdeb5eeeae 100644 (file)
@@ -241,8 +241,14 @@ static void rk3399_force_power_on_reset(void)
 }
 #endif
 
+void __weak led_setup(void)
+{
+}
+
 void spl_board_init(void)
 {
+       led_setup();
+
 #if defined(SPL_GPIO_SUPPORT)
        struct rockchip_cru *cru = rockchip_get_cru();