]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mvebu: Set CPU for U-Boot SPL binary in kwbimage
authorPali Rohár <pali@kernel.org>
Wed, 12 Jan 2022 17:20:44 +0000 (18:20 +0100)
committerStefan Roese <sr@denx.de>
Fri, 14 Jan 2022 10:39:16 +0000 (11:39 +0100)
kwbimage needs to know CPU type, so set it in kwbimage config file.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/arm/mach-mvebu/Makefile
arch/arm/mach-mvebu/kwbimage.cfg.in

index 8066d827b090c65fa20dcad1605673ebdfd8c10c..82a366ad0fd080bb09f991423e353ee5dd636750 100644 (file)
@@ -31,6 +31,14 @@ obj-$(CONFIG_MVEBU_EFUSE) += efuse.o
 
 extra-y += kwbimage.cfg
 
+ifneq ($(CONFIG_ARMADA_370)$(CONFIG_ARMADA_XP),)
+       KWB_REPLACE += CPU
+       KWB_CFG_CPU = SHEEVA
+else ifneq ($(CONFIG_ARMADA_375)$(CONFIG_ARMADA_38X)$(CONFIG_ARMADA_39X),)
+       KWB_REPLACE += CPU
+       KWB_CFG_CPU = A9
+endif
+
 KWB_REPLACE += BOOT_FROM
 ifneq ($(CONFIG_MVEBU_SPL_BOOT_DEVICE_SPI),)
        KWB_CFG_BOOT_FROM=spi
index 049d23c6ef088213c37ffb718c8a7a2da9f0db22..8e720daf4820e4598cdaaba28436ca5a9e95b9dd 100644 (file)
@@ -5,6 +5,9 @@
 # Armada 38x uses version 1 image format
 VERSION                1
 
+# Type of the CPU core
+#@CPU
+
 # Boot Media configurations
 #@BOOT_FROM