Skip to contentSkip to conversation

rockchip: rk3288: Use ft_system_setup instead of ft_board_setup

PATCH In review John Keeping 2 participants 2 messages Feb 23, 2023 – Feb 28, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rockchip: rk3288: Use ft_system_setup instead of ft_board_setup

ft_board_setup() should be availble for use in board files but using it in the rk3288 machine file blocks this functionality.

ft_system_setup() is the more appropriate function to use in a machine definition.

---
 arch/arm/mach-rockchip/Kconfig         | 2 +-
 arch/arm/mach-rockchip/rk3288/rk3288.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-rockchip/Kconfig +1 -1
index b678ec41318..3fbfd1b1564 100644
@@ -119,7 +119,7 @@ config ROCKCHIP_RK322X
 config ROCKCHIP_RK3288
 	bool "Support Rockchip RK3288"
 	select CPU_V7A
-	select OF_BOARD_SETUP
+	select OF_SYSTEM_SETUP
 	select SKIP_LOWLEVEL_INIT_ONLY
 	select SUPPORT_SPL
 	select SPL
arch/arm/mach-rockchip/rk3288/rk3288.c +1 -1
index 3ad2887575d..26c7e41cd89 100644
@@ -138,7 +138,7 @@ static int ft_rk3288w_setup(void *blob)
 	return ret;
 }
 
-int ft_board_setup(void *blob, struct bd_info *bd)
+int ft_system_setup(void *blob, struct bd_info *bd)
 {
 	if (soc_is_rk3288w())
 		return ft_rk3288w_setup(blob);
Signature · 1 line
2.39.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · John Keeping

ft_board_setup() should be availble for use in board files but using it in the rk3288 machine file blocks this functionality.

ft_system_setup() is the more appropriate function to use in a machine definition.

Thanks,
- Kever

Quoted 31 lines
---
  arch/arm/mach-rockchip/Kconfig         | 2 +-
  arch/arm/mach-rockchip/rk3288/rk3288.c | 2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-rockchip/Kconfig +1 -1
index b678ec41318..3fbfd1b1564 100644
@@ -119,7 +119,7 @@ config ROCKCHIP_RK322X
  config ROCKCHIP_RK3288
  	bool "Support Rockchip RK3288"
  	select CPU_V7A
-	select OF_BOARD_SETUP
+	select OF_SYSTEM_SETUP
  	select SKIP_LOWLEVEL_INIT_ONLY
  	select SUPPORT_SPL
  	select SPL
arch/arm/mach-rockchip/rk3288/rk3288.c +1 -1
index 3ad2887575d..26c7e41cd89 100644
@@ -138,7 +138,7 @@ static int ft_rk3288w_setup(void *blob)
  	return ret;
  }
 
-int ft_board_setup(void *blob, struct bd_info *bd)
+int ft_system_setup(void *blob, struct bd_info *bd)
  {
  	if (soc_is_rk3288w())
  		return ft_rk3288w_setup(blob);