Skip to contentSkip to conversation

rockchip: Use an external TPL binary on RK3308

PATCH Superseded Massimo Pegorer 2 participants 3 messages Sep 2, 2023 – Sep 4, 2023

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 rockchip: Use an external TPL binary on RK3308

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

Imply ROCKCHIP_EXTERNAL_TPL by default for RK3308 builds. Remove useless TPL_SERIAL.

---
 arch/arm/mach-rockchip/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-rockchip/Kconfig +1 -1
index a279582f4f..e8584de258 100644
@@ -159,6 +159,7 @@ config ROCKCHIP_RK3308
 	select SPL_ATF
 	select SPL_ATF_NO_PLATFORM_PARAM
 	select SPL_LOAD_FIT
+	imply ROCKCHIP_EXTERNAL_TPL
 	imply ROCKCHIP_COMMON_BOARD
 	imply SPL_ROCKCHIP_COMMON_BOARD
 	imply SPL_CLK
@@ -166,7 +167,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
Signature · 1 line
2.34.1
#1 lore raw

Il giorno sab 2 set 2023 alle ore 18:32 Massimo Pegorer <[email protected]> ha scritto:

Quoted 34 lines

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

Imply ROCKCHIP_EXTERNAL_TPL by default for RK3308 builds. Remove useless TPL_SERIAL.

---
 arch/arm/mach-rockchip/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-rockchip/Kconfig +1 -2
index a279582f4f..e8584de258 100644
@@ -159,6 +159,7 @@ config ROCKCHIP_RK3308
        select SPL_ATF
        select SPL_ATF_NO_PLATFORM_PARAM
        select SPL_LOAD_FIT
+       imply ROCKCHIP_EXTERNAL_TPL
        imply ROCKCHIP_COMMON_BOARD
        imply SPL_ROCKCHIP_COMMON_BOARD
        imply SPL_CLK
@@ -166,7 +167,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
--
Quoted 2 lines

2.34.1

I've just noticed that Jonas followed a different approach for RK3568 and RK3588:

config ROCKCHIP_EXTERNAL_TPL
bool "Use external TPL binary"
default y if ROCKCHIP_RK3568 || ROCKCHIP_RK3588

Is any one preferred? I slightly prefer the one I've done, as it gives a terse picture of what a SoC select/imply in a single place. Of course I can change it in a V2, if Jonas way is preferred, and to have a single congruent way to do things.

Thanks. Regards,
Massimo

#2 lore raw

Hi Massimo,

Quoted 40 lines · Massimo Pegorer

Il giorno sab 2 set 2023 alle ore 18:32 Massimo Pegorer <[email protected]> ha scritto:

Quoted 33 lines

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

Imply ROCKCHIP_EXTERNAL_TPL by default for RK3308 builds. Remove useless TPL_SERIAL.

---
  arch/arm/mach-rockchip/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-rockchip/Kconfig +1 -2
index a279582f4f..e8584de258 100644
@@ -159,6 +159,7 @@ config ROCKCHIP_RK3308
         select SPL_ATF
         select SPL_ATF_NO_PLATFORM_PARAM
         select SPL_LOAD_FIT
+       imply ROCKCHIP_EXTERNAL_TPL
         imply ROCKCHIP_COMMON_BOARD
         imply SPL_ROCKCHIP_COMMON_BOARD
         imply SPL_CLK
@@ -166,7 +167,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
--
Quoted 2 lines

2.34.1

I've just noticed that Jonas followed a different approach for RK3568 and RK3588:

Quoted 3 lines

config ROCKCHIP_EXTERNAL_TPL
bool "Use external TPL binary"
default y if ROCKCHIP_RK3568 || ROCKCHIP_RK3588

You can add RK3308 to default y.

Thanks,

- Kever

Quoted 8 lines

Is any one preferred? I slightly prefer the one I've done, as it gives a terse picture of what a SoC select/imply in a single place. Of course I can change it in a V2, if Jonas way is preferred, and to have a single congruent way to do things.

Thanks. Regards,
Massimo