]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: Add Kconfig entry for MACH_TYPE
authorTom Rini <trini@konsulko.com>
Mon, 30 Aug 2021 13:16:31 +0000 (09:16 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 7 Sep 2021 20:22:31 +0000 (16:22 -0400)
As part of migrating support for ATAGs to Kconfig, add an option for
setting and passing MACH_TYPE.

Signed-off-by: Tom Rini <trini@konsulko.com>
arch/arm/Kconfig
configs/ds109_defconfig
configs/ds414_defconfig
configs/icnova-a20-swac_defconfig
configs/nokia_rx51_defconfig
include/configs/nokia_rx51.h

index dbf5ceb9d25bb4a483d44f19f657458eb8393cb9..21f17c202f6cb1712e9f59a84fbdfcdf18af2988 100644 (file)
@@ -1937,6 +1937,20 @@ config SERIAL_TAG
        bool "Pass system serial number via ATAG"
        depends on SUPPORT_PASSING_ATAGS
 
+config STATIC_MACH_TYPE
+       bool "Statically define the Machine ID number"
+       help
+         When booting via ATAGs, enable this option if we know the correct
+         machine ID number to use at compile time.  Some systems will be
+         passed the number dynamically by whatever loads U-Boot.
+
+config MACH_TYPE
+       int "Machine ID number"
+       depends on STATIC_MACH_TYPE
+       help
+         When booting via ATAGs, the machine type must be passed as a number.
+         For the full list see https://www.arm.linux.org.uk/developer/machines
+
 config ARCH_SUPPORT_TFABOOT
        bool
 
index e06b7fdf1a3ca499e31f1a143fae90c91efcc003..d7e865111f4d9b3060414ed9c6d4a007220ea9b7 100644 (file)
@@ -6,6 +6,8 @@ CONFIG_ARCH_KIRKWOOD=y
 CONFIG_SUPPORT_PASSING_ATAGS=y
 CONFIG_CMDLINE_TAG=y
 CONFIG_INITRD_TAG=y
+CONFIG_STATIC_MACH_TYPE=y
+CONFIG_MACH_TYPE=527
 CONFIG_SYS_TEXT_BASE=0x600000
 CONFIG_NR_DRAM_BANKS=2
 CONFIG_TARGET_DS109=y
index de5d85cbda6d7fc280138fb8cd8cfb1eaa068afe..6402e253d1d4e9a20068989b3d07f3eb876cc5e0 100644 (file)
@@ -4,6 +4,8 @@ CONFIG_ARCH_MVEBU=y
 CONFIG_SUPPORT_PASSING_ATAGS=y
 CONFIG_CMDLINE_TAG=y
 CONFIG_INITRD_TAG=y
+CONFIG_STATIC_MACH_TYPE=y
+CONFIG_MACH_TYPE=3036
 CONFIG_SYS_TEXT_BASE=0x00800000
 CONFIG_SPL_LIBCOMMON_SUPPORT=y
 CONFIG_SPL_LIBGENERIC_SUPPORT=y
index c759d7e2357f52b1d09d9721b337d1136b573798..de766b226bb5c524d0e6673305ee19b0b7691046 100644 (file)
@@ -4,6 +4,8 @@ CONFIG_SUPPORT_PASSING_ATAGS=y
 CONFIG_CMDLINE_TAG=y
 CONFIG_INITRD_TAG=y
 CONFIG_SERIAL_TAG=y
+CONFIG_STATIC_MACH_TYPE=y
+CONFIG_MACH_TYPE=4283
 CONFIG_DEFAULT_DEVICE_TREE="sun7i-a20-icnova-swac"
 CONFIG_SPL=y
 CONFIG_MACH_SUN7I=y
index e6e8f2af51e52305dccc634d03a20a28b06975b7..69784d972ad54b34c4342b31cb9d520a92966b6c 100644 (file)
@@ -6,6 +6,8 @@ CONFIG_SUPPORT_PASSING_ATAGS=y
 CONFIG_CMDLINE_TAG=y
 CONFIG_INITRD_TAG=y
 CONFIG_REVISION_TAG=y
+CONFIG_STATIC_MACH_TYPE=y
+CONFIG_MACH_TYPE=1955
 CONFIG_SYS_TEXT_BASE=0x80008000
 CONFIG_NR_DRAM_BANKS=2
 CONFIG_SYS_MALLOC_LEN=0xc0000
index 972df00d43f20bbeca65f999ccadf9d880560678..b37e05406e92a4b5eb8c24fe72baabd9ca8a2ab9 100644 (file)
@@ -23,8 +23,6 @@
  */
 #define CONFIG_SYS_L2CACHE_OFF         /* pretend there is no L2 CACHE */
 
-#define CONFIG_MACH_TYPE               MACH_TYPE_NOKIA_RX51
-
 #include <asm/arch/cpu.h>              /* get chip and board defs */
 #include <asm/arch/omap.h>
 #include <asm/arch/mem.h>