rockchip: rk3399: do not generate u-boot.rom anymore
authorQuentin Schulz <quentin.schulz@cherry.de>
Mon, 5 May 2025 14:47:18 +0000 (16:47 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Tue, 6 May 2025 07:57:38 +0000 (15:57 +0800)
This was only used on RK3399 Gru Chromebooks and their maintainer
(Simon) agreed[1] to its removal on the basis that the generic
u-boot-rockchip-spi.bin is now enough, so let's do that.

At the same time, remove HAS_ROM symbol from the Gru Chromebooks config
since they were used only for that.

Make sure u-boot-rockchip-spi.bin has the same size of u-boot.rom for
Chromebooks as that seems to be important.

[1] https://lore.kernel.org/u-boot/CAFLszTh-SewFod8dEOF3+e-wCE1qFF0CyxxR8CbQwy3BRW3k6w@mail.gmail.com/

Reviewed-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: Simon Glass <sjg@chromium.org> # chromebook-kevin
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
arch/arm/dts/rk3399-gru-u-boot.dtsi
arch/arm/dts/rk3399-u-boot.dtsi
arch/arm/mach-rockchip/rk3399/Kconfig

index 5517176..dfc7be4 100644 (file)
        };
 };
 
+#if defined(CONFIG_ROCKCHIP_SPI_IMAGE)
 &binman {
-       rom {
+       simple-bin-spi {
                size = <0x800000>;
        };
 };
+#endif
 
 &cros_ec {
        ec-interrupt = <&gpio0 RK_PA1 GPIO_ACTIVE_LOW>;
index 70f35b6..587eef9 100644 (file)
        };
 };
 
-#if defined(CONFIG_ROCKCHIP_SPI_IMAGE) && defined(CONFIG_HAS_ROM)
-&binman {
-       multiple-images;
-       rom {
-               filename = "u-boot.rom";
-               size = <0x400000>;
-               pad-byte = <0xff>;
-
-               mkimage {
-                       args = "-n rk3399 -T rkspi";
-                       multiple-data-files;
-#ifdef CONFIG_ROCKCHIP_EXTERNAL_TPL
-                       rockchip-tpl {
-                       };
-#elif defined(CONFIG_TPL)
-                       u-boot-tpl {
-                       };
-#endif
-                       u-boot-spl {
-                       };
-               };
-               fit {
-                       type = "blob";
-                       filename = "u-boot.itb";
-                       offset = <CONFIG_SYS_SPI_U_BOOT_OFFS>;
-               };
-               u-boot {
-                       offset = <0x300000>;
-               };
-               fdtmap {
-               };
-       };
-};
-#endif /* CONFIG_ROCKCHIP_SPI_IMAGE && CONFIG_HAS_ROM */
-
 &cru {
        bootph-all;
 };
index b243020..5c21b08 100644 (file)
@@ -5,7 +5,6 @@ choice
 
 config TARGET_CHROMEBOOK_BOB
        bool "Asus Flip C101PA Chromebook (RK3399)"
-       select HAS_ROM
        select ROCKCHIP_SPI_IMAGE
        help
          Bob is a small RK3299-based device similar in apperance to Minnie.
@@ -16,7 +15,6 @@ config TARGET_CHROMEBOOK_BOB
 
 config TARGET_CHROMEBOOK_KEVIN
        bool "Samsung Chromebook Plus (RK3399)"
-       select HAS_ROM
        select ROCKCHIP_SPI_IMAGE
        help
          Kevin is a RK3399-based convertible chromebook. It has two USB 3.0