Skip to contentSkip to conversation

rockchip: Kconfig: Enable external TPL binary for rk3308

PATCH In review Massimo Pegorer 3 participants 3 messages Sep 9, 2023 – Sep 12, 2023

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

PATCH v2 1/2 rockchip: Kconfig: Enable external TPL binary for rk3308

There is no support to initialize DRAM on rk3308 SoC using U-Boot TPL or SPL, and therefore an external TPL binary must be used to package a bootable u-boot-rockchip.bin image.

Default ROCKCHIP_EXTERNAL_TPL to yes if ROCKCHIP_RK3308. Remove useless TPL_SERIAL.

---
 arch/arm/mach-rockchip/Kconfig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm/mach-rockchip/Kconfig +1 -2
index a279582f4f..3b044269bd 100644
@@ -166,7 +166,6 @@ config ROCKCHIP_RK3308
 	imply SPL_SYSCON
 	imply SPL_RAM
 	imply SPL_SERIAL
-	imply TPL_SERIAL
 	imply SPL_SEPARATE_BSS
 	help
 	  The Rockchip RK3308 is a ARM-based Soc which embedded with quad
@@ -436,7 +435,7 @@ config TPL_ROCKCHIP_COMMON_BOARD
 
 config ROCKCHIP_EXTERNAL_TPL
 	bool "Use external TPL binary"
-	default y if ROCKCHIP_RK3568 || ROCKCHIP_RK3588
+	default y if ROCKCHIP_RK3308 || ROCKCHIP_RK3568 || ROCKCHIP_RK3588
 	help
 	  Some Rockchip SoCs require an external TPL to initialize DRAM.
 	  Enable this option and build with ROCKCHIP_TPL=/path/to/ddr.bin to
Signature · 1 line
2.34.1
Tested-by on v2 1/2
#1 lore raw

hi,

Quoted 11 lines · Massimo Pegorer

There is no support to initialize DRAM on rk3308 SoC using U-Boot TPL or SPL, and therefore an external TPL binary must be used to package a bootable u-boot-rockchip.bin image.

Default ROCKCHIP_EXTERNAL_TPL to yes if ROCKCHIP_RK3308. Remove useless TPL_SERIAL.

---
  arch/arm/mach-rockchip/Kconfig | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)

thank you very much for your work!

Quoted 21 lines
arch/arm/mach-rockchip/Kconfig +1 -2
index a279582f4f..3b044269bd 100644
@@ -166,7 +166,6 @@ config ROCKCHIP_RK3308
  	imply SPL_SYSCON
  	imply SPL_RAM
  	imply SPL_SERIAL
-	imply TPL_SERIAL
  	imply SPL_SEPARATE_BSS
  	help
  	  The Rockchip RK3308 is a ARM-based Soc which embedded with quad
@@ -436,7 +435,7 @@ config TPL_ROCKCHIP_COMMON_BOARD
 
  config ROCKCHIP_EXTERNAL_TPL
  	bool "Use external TPL binary"
-	default y if ROCKCHIP_RK3568 || ROCKCHIP_RK3588
+	default y if ROCKCHIP_RK3308 || ROCKCHIP_RK3568 || ROCKCHIP_RK3588
  	help
  	  Some Rockchip SoCs require an external TPL to initialize DRAM.
  	  Enable this option and build with ROCKCHIP_TPL=/path/to/ddr.bin to
Reviewed-by on v2 1/2
#2 lore raw
In reply to Massimo Pegorer
Quoted 8 lines · Massimo Pegorer

There is no support to initialize DRAM on rk3308 SoC using U-Boot TPL or SPL, and therefore an external TPL binary must be used to package a bootable u-boot-rockchip.bin image.

Default ROCKCHIP_EXTERNAL_TPL to yes if ROCKCHIP_RK3308. Remove useless TPL_SERIAL.

Thanks,
- Kever

Quoted 25 lines
---
  arch/arm/mach-rockchip/Kconfig | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm/mach-rockchip/Kconfig +1 -2
index a279582f4f..3b044269bd 100644
@@ -166,7 +166,6 @@ config ROCKCHIP_RK3308
  	imply SPL_SYSCON
  	imply SPL_RAM
  	imply SPL_SERIAL
-	imply TPL_SERIAL
  	imply SPL_SEPARATE_BSS
  	help
  	  The Rockchip RK3308 is a ARM-based Soc which embedded with quad
@@ -436,7 +435,7 @@ config TPL_ROCKCHIP_COMMON_BOARD
 
  config ROCKCHIP_EXTERNAL_TPL
  	bool "Use external TPL binary"
-	default y if ROCKCHIP_RK3568 || ROCKCHIP_RK3588
+	default y if ROCKCHIP_RK3308 || ROCKCHIP_RK3568 || ROCKCHIP_RK3588
  	help
  	  Some Rockchip SoCs require an external TPL to initialize DRAM.
  	  Enable this option and build with ROCKCHIP_TPL=/path/to/ddr.bin to