diff mbox series

[v6,1/5] rockchip: rk3399: Add weak led_setup()

Message ID 20200721150604.35410-2-jagan@amarulasolutions.com (mailing list archive)
State New, archived
Headers show
Series [v6,1/5] rockchip: rk3399: Add weak led_setup() | expand

Commit Message

Jagan Teki July 21, 2020, 3:06 p.m. UTC
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>
---
Changes for v6:
- new patch

 arch/arm/mach-rockchip/rk3399/rk3399.c | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Kever Yang July 22, 2020, 12:12 p.m. UTC | #1
On 2020/7/21 下午11:06, Jagan Teki wrote:
> 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>

Thanks,
- Kever

> ---
> Changes for v6:
> - new patch
>
>   arch/arm/mach-rockchip/rk3399/rk3399.c | 6 ++++++
>   1 file changed, 6 insertions(+)
>
> diff --git a/arch/arm/mach-rockchip/rk3399/rk3399.c b/arch/arm/mach-rockchip/rk3399/rk3399.c
> index 4fda93b152..c643483971 100644
> --- a/arch/arm/mach-rockchip/rk3399/rk3399.c
> +++ b/arch/arm/mach-rockchip/rk3399/rk3399.c
> @@ -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();
>
diff mbox series

Patch

diff --git a/arch/arm/mach-rockchip/rk3399/rk3399.c b/arch/arm/mach-rockchip/rk3399/rk3399.c
index 4fda93b152..c643483971 100644
--- a/arch/arm/mach-rockchip/rk3399/rk3399.c
+++ b/arch/arm/mach-rockchip/rk3399/rk3399.c
@@ -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();