Include the rockchip-u-boot.dtsi file with 64-bit boards and enable binman
so that these boards can also use it, rather than using special Makefile
rules and scripts.

This does not change the Makefile nor remove any scripts, but sets it up
so that this is possible.

Signed-off-by: Simon Glass <s...@chromium.org>
Reviewed-by: Alper Nebi Yasak <alpernebiya...@gmail.com>
---

(no changes since v1)

 arch/arm/dts/rk3368-u-boot.dtsi             | 1 +
 arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi | 2 +-
 arch/arm/dts/rk3399-u-boot.dtsi             | 3 +++
 arch/arm/mach-rockchip/Kconfig              | 6 ++++++
 4 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/arch/arm/dts/rk3368-u-boot.dtsi b/arch/arm/dts/rk3368-u-boot.dtsi
index 811d59ac346..4c0a6ff1561 100644
--- a/arch/arm/dts/rk3368-u-boot.dtsi
+++ b/arch/arm/dts/rk3368-u-boot.dtsi
@@ -3,6 +3,7 @@
  * Copyright (c) 2020 Theobroma Systems Design und Consulting GmbH
  */
 
+#include "rockchip-u-boot.dtsi"
 #include <dt-bindings/memory/rk3368-dmc.h>
 #include "rockchip-u-boot.dtsi"
 
diff --git a/arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi 
b/arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi
index f8335c74a74..1af3bbfb3d3 100644
--- a/arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi
+++ b/arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi
@@ -46,7 +46,7 @@
 
 &binman {
        simple-bin {
-               blob {
+               fit {
                        offset = <((CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR - 
64) * 512)>;
                };
        };
diff --git a/arch/arm/dts/rk3399-u-boot.dtsi b/arch/arm/dts/rk3399-u-boot.dtsi
index 3c1a15fe51b..63da02489d3 100644
--- a/arch/arm/dts/rk3399-u-boot.dtsi
+++ b/arch/arm/dts/rk3399-u-boot.dtsi
@@ -62,6 +62,8 @@
 
 #if defined(CONFIG_ROCKCHIP_SPI_IMAGE) && defined(CONFIG_HAS_ROM)
 &binman {
+       multiple-images;
+#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
        rom {
                filename = "u-boot.rom";
                size = <0x400000>;
@@ -81,6 +83,7 @@
                fdtmap {
                };
        };
+#endif /* CONFIG_ROCKCHIP_SPI_IMAGE */
 };
 #endif
 
diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
index 69d51ff3789..90d42650211 100644
--- a/arch/arm/mach-rockchip/Kconfig
+++ b/arch/arm/mach-rockchip/Kconfig
@@ -15,6 +15,7 @@ config ROCKCHIP_PX30
        select DEBUG_UART_BOARD_INIT
        imply ROCKCHIP_COMMON_BOARD
        imply SPL_ROCKCHIP_COMMON_BOARD
+       imply BINMAN
        help
          The Rockchip PX30 is a ARM-based SoC with a quad-core Cortex-A35
          including NEON and GPU, Mali-400 graphics, several DDR3 options
@@ -168,6 +169,7 @@ config ROCKCHIP_RK3308
        imply SPL_SERIAL
        imply TPL_SERIAL
        imply SPL_SEPARATE_BSS
+       imply BINMAN
        help
          The Rockchip RK3308 is a ARM-based Soc which embedded with quad
          Cortex-A35 and highly integrated audio interfaces.
@@ -189,6 +191,7 @@ config ROCKCHIP_RK3328
        select ENABLE_ARM_SOC_BOOT0_HOOK
        select DEBUG_UART_BOARD_INIT
        select SYS_NS16550
+       imply BINMAN
        help
          The Rockchip RK3328 is a ARM-based SoC with a quad-core Cortex-A53.
          including NEON and GPU, 1MB L2 cache, Mali-T7 graphics, two
@@ -208,6 +211,7 @@ config ROCKCHIP_RK3368
        imply SPL_SERIAL
        imply TPL_SERIAL
        imply TPL_ROCKCHIP_COMMON_BOARD
+       imply BINMAN
        help
          The Rockchip RK3368 is a ARM-based SoC with a octa-core (organised
          into a big and little cluster with 4 cores each) Cortex-A53 including
@@ -266,6 +270,7 @@ config ROCKCHIP_RK3399
        imply TPL_ROCKCHIP_COMMON_BOARD
        imply SYS_BOOTCOUNT_SINGLEWORD if BOOTCOUNT_LIMIT
        imply CMD_BOOTCOUNT if BOOTCOUNT_LIMIT
+       imply BINMAN
        help
          The Rockchip RK3399 is a ARM-based SoC with a dual-core Cortex-A72
          and quad-core Cortex-A53.
@@ -286,6 +291,7 @@ config ROCKCHIP_RK3568
        select SYSCON
        select BOARD_LATE_INIT
        imply ROCKCHIP_COMMON_BOARD
+       imply BINMAN
        help
          The Rockchip RK3568 is a ARM-based SoC with quad-core Cortex-A55,
          including NEON and GPU, 512K L3 cache, Mali-G52 based graphics,
-- 
2.38.1.431.g37b22c650d-goog

Reply via email to