]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: allow to build SPI images even without HAS_ROM option
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>
Fri, 2 Sep 2022 13:10:54 +0000 (15:10 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Sun, 4 Sep 2022 12:00:39 +0000 (20:00 +0800)
This prepares for the creation of a u-boot-rockchip-spi.bin image
similar to u-boot-rockchip.bin to the exception it's destined for
SPI-NOR flashes instead of MMC storage medium.

Cc: Quentin Schulz <foss+uboot@0leil.net>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk3288-u-boot.dtsi
arch/arm/dts/rk3399-u-boot.dtsi
arch/arm/mach-rockchip/Kconfig

index 9eb696b1411146e3399c5545415b17a7b1e93c65..e411445ed69f94d898dbaa965d1de4fe1831f9ca 100644 (file)
@@ -56,7 +56,7 @@
        };
 };
 
-#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
+#if defined(CONFIG_ROCKCHIP_SPI_IMAGE) && defined(CONFIG_HAS_ROM)
 &binman {
        rom {
                filename = "u-boot.rom";
index 716b9a433a100f6eb1458ce81bade1e9dac27a0b..3c1a15fe51b78bc0cbac8e08911565c167c6034c 100644 (file)
@@ -60,7 +60,7 @@
 
 };
 
-#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
+#if defined(CONFIG_ROCKCHIP_SPI_IMAGE) && defined(CONFIG_HAS_ROM)
 &binman {
        rom {
                filename = "u-boot.rom";
index c561a77e6a18afe5fb4b3a9fed3254a84ad671f2..b46cea2f91c437508783a7f126641391b7c6c7e0 100644 (file)
@@ -425,12 +425,10 @@ config SPL_MMC
 
 config ROCKCHIP_SPI_IMAGE
        bool "Build a SPI image for rockchip"
-       depends on HAS_ROM
        help
          Some Rockchip SoCs support booting from SPI flash. Enable this
-         option to produce a 4MB SPI-flash image (called u-boot.rom)
-         containing U-Boot. The image is built by binman. U-Boot sits near
-         the start of the image.
+         option to produce a SPI-flash image containing U-Boot. The image
+         is built by binman. U-Boot sits near the start of the image.
 
 config LNX_KRNL_IMG_TEXT_OFFSET_BASE
        default SYS_TEXT_BASE