]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fdt: Enable OF_HAS_PRIOR_STAGE for most boards with OF_BOARD
authorSimon Glass <sjg@chromium.org>
Fri, 17 Dec 2021 03:59:36 +0000 (20:59 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 23 Dec 2021 16:19:17 +0000 (11:19 -0500)
Use this new Kconfig instead of OF_BOARD, so we know for sure which boards
obtain their devicetree from a prior stage. Leave sandbox alone since it
does not. Also don't touch xilinx_versal_virt since it does not have a
specific TARGET Kconfig.

This option implies OF_BOARD for now, but with future work standard
passage may be used instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
[trini: Add rpi_4_32b and rpi_arm64 to the list of boards converted]
Signed-off-by: Tom Rini <trini@konsulko.com>
31 files changed:
arch/arm/Kconfig
arch/arm/mach-bcm283x/Kconfig
arch/powerpc/cpu/mpc85xx/Kconfig
board/emulation/qemu-riscv/Kconfig
configs/ae350_rv32_defconfig
configs/ae350_rv32_spl_defconfig
configs/ae350_rv32_spl_xip_defconfig
configs/ae350_rv64_defconfig
configs/ae350_rv64_spl_defconfig
configs/ae350_rv64_spl_xip_defconfig
configs/bcm7260_defconfig
configs/bcm7445_defconfig
configs/highbank_defconfig
configs/octeontx2_95xx_defconfig
configs/octeontx2_96xx_defconfig
configs/octeontx_81xx_defconfig
configs/octeontx_83xx_defconfig
configs/qemu-ppce500_defconfig
configs/qemu-riscv32_defconfig
configs/qemu-riscv32_smode_defconfig
configs/qemu-riscv32_spl_defconfig
configs/qemu-riscv64_defconfig
configs/qemu-riscv64_smode_defconfig
configs/qemu-riscv64_spl_defconfig
configs/qemu_arm64_defconfig
configs/qemu_arm_defconfig
configs/rpi_4_32b_defconfig
configs/rpi_4_defconfig
configs/rpi_arm64_defconfig
configs/vexpress_aemv8a_juno_defconfig
configs/xenguest_arm64_defconfig

index eed27af74e8fe2a247a87e2f6cf38a97aabc7aaf..85c964b7a18233ad45027a9c84c5fa89883bd3f7 100644 (file)
@@ -635,6 +635,7 @@ config ARCH_BCMSTB
        select GPIO_EXTRA_HEADER
        select OF_CONTROL
        imply CMD_DM
+       imply OF_HAS_PRIOR_STAGE
        help
          This enables support for Broadcom ARM-based set-top box
          chipsets, including the 7445 family of chips.
@@ -707,12 +708,12 @@ config ARCH_HIGHBANK
        select DM
        select DM_SERIAL
        select OF_CONTROL
-       select OF_BOARD
        select CLK
        select CLK_CCF
        select AHCI
        select DM_ETH
        select PHYS_64BIT
+       imply OF_HAS_PRIOR_STAGE
 
 config ARCH_INTEGRATOR
        bool "ARM Ltd. Integrator family"
@@ -935,13 +936,13 @@ config ARCH_APPLE
        select IOMMU
        select LINUX_KERNEL_IMAGE_HEADER
        select OF_CONTROL
-       select OF_BOARD
        select PINCTRL
        select POSITION_INDEPENDENT
        select USB
        imply CMD_DM
        imply CMD_GPT
        imply DISTRO_DEFAULTS
+       imply OF_HAS_PRIOR_STAGE
 
 config ARCH_OWL
        bool "Actions Semi OWL SoCs"
@@ -966,6 +967,7 @@ config ARCH_QEMU
        imply DM_RNG
        imply DM_RTC
        imply RTC_PL031
+       imply OF_HAS_PRIOR_STAGE
 
 config ARCH_RMOBILE
        bool "Renesas ARM SoCs"
@@ -1243,7 +1245,6 @@ config TARGET_VEXPRESS64_JUNO
        select PL01X_SERIAL
        select DM
        select OF_CONTROL
-       select OF_BOARD
        select CLK
        select DM_SERIAL
        select ARM_PSCI_FW
@@ -1251,6 +1252,7 @@ config TARGET_VEXPRESS64_JUNO
        select DM_ETH
        select BLK
        select USB
+       imply OF_HAS_PRIOR_STAGE
 
 config TARGET_TOTAL_COMPUTE
        bool "Support Total Compute Platform"
@@ -1907,6 +1909,7 @@ config ARCH_OCTEONTX
        select OF_LIVE
        select BOARD_LATE_INIT
        select SYS_CACHE_SHIFT_7
+       imply OF_HAS_PRIOR_STAGE
 
 config ARCH_OCTEONTX2
        bool "Support OcteonTX2 SoCs"
@@ -1918,6 +1921,7 @@ config ARCH_OCTEONTX2
        select OF_LIVE
        select BOARD_LATE_INIT
        select SYS_CACHE_SHIFT_7
+       imply OF_HAS_PRIOR_STAGE
 
 config TARGET_THUNDERX_88XX
        bool "Support ThunderX 88xx"
@@ -1954,6 +1958,8 @@ config TARGET_XENGUEST_ARM64
        select LINUX_KERNEL_IMAGE_HEADER
        select XEN_SERIAL
        select SSCANF
+       imply OF_HAS_PRIOR_STAGE
+
 endchoice
 
 config SUPPORT_PASSING_ATAGS
index b3287ce8bcea9d6cf5af272ba08bc7dd44e559b1..6ce278c6d29678c7062f406530ffc8fb26bd4fa7 100644 (file)
@@ -163,6 +163,7 @@ config TARGET_RPI_4_32B
 
          This option creates a build targeting the ARMv7/AArch32 ISA.
        select BCM2711_32B
+       imply OF_HAS_PRIOR_STAGE
 
 config TARGET_RPI_4
        bool "Raspberry Pi 4 64-bit build"
@@ -188,6 +189,7 @@ config TARGET_RPI_4
 
          This option creates a build targeting the ARMv8/AArch64 ISA.
        select BCM2711_64B
+       imply OF_HAS_PRIOR_STAGE
 
 config TARGET_RPI_ARM64
        bool "Raspberry Pi one binary 64-bit build"
@@ -195,6 +197,7 @@ config TARGET_RPI_ARM64
          Support for all armv8 based Raspberry Pi variants, such as
          the RPi 4 model B, in AArch64 (64-bit) mode.
        select ARM64
+       imply OF_HAS_PRIOR_STAGE
 
 endchoice
 
index 836aeddbe29f78111dde6c7363bef8d90ab04115..d71ca86ab0677c5b5ef7fd0a50db64d5ef61fb2d 100644 (file)
@@ -109,6 +109,7 @@ config TARGET_QEMU_PPCE500
        bool "Support qemu-ppce500"
        select ARCH_QEMU_E500
        select PHYS_64BIT
+       imply OF_HAS_PRIOR_STAGE
 
 config TARGET_T1024RDB
        bool "Support T1024RDB"
index 1bbf1bc84aff62f5747c51e61e3217cef0f90267..a380db61a0fd5ce15c7e42417f6dc71f2388c843 100644 (file)
@@ -65,5 +65,6 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        imply VIRTIO_BLK
        imply MTD_NOR_FLASH
        imply CFI_FLASH
+       imply OF_HAS_PRIOR_STAGE
 
 endif
index fe18a1cee4e70a9556fc41e5752b95b0fb80010c..f65f58cbefd7fade78c526959949ad4e310326c2 100644 (file)
@@ -17,7 +17,6 @@ CONFIG_CMD_SF_TEST=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_BOOTP_PREFER_SERVERIP=y
 CONFIG_CMD_CACHE=y
-CONFIG_OF_BOARD=y
 CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
index 9287544781f8426eb49ec93f3233bda37cbaa6d9..9324ed1f6cd76777421610d3d74ae7f5ff77cc5b 100644 (file)
@@ -21,7 +21,6 @@ CONFIG_CMD_SF_TEST=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_BOOTP_PREFER_SERVERIP=y
 CONFIG_CMD_CACHE=y
-CONFIG_OF_BOARD=y
 CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_BOOTP_SEND_HOSTNAME=y
index 18d114e24c431f70fd21cf6c52ba4c83e1516534..bd06c8ed8970de0f5058d96f5605e165965b4a57 100644 (file)
@@ -23,7 +23,6 @@ CONFIG_CMD_SF_TEST=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_BOOTP_PREFER_SERVERIP=y
 CONFIG_CMD_CACHE=y
-CONFIG_OF_BOARD=y
 CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_BOOTP_SEND_HOSTNAME=y
index 01016c238c8be474c2e754eaf0df88f8c78b366f..479c1ded58cbd6890bf987a64ff806d6b2d45e72 100644 (file)
@@ -18,7 +18,6 @@ CONFIG_CMD_SF_TEST=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_BOOTP_PREFER_SERVERIP=y
 CONFIG_CMD_CACHE=y
-CONFIG_OF_BOARD=y
 CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
index 42b93f52751cd000f7fad98e2004516e5b5bfca8..1ec993ccc5f5c9584ad78b3ad6e22262ad0d915d 100644 (file)
@@ -22,7 +22,6 @@ CONFIG_CMD_SF_TEST=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_BOOTP_PREFER_SERVERIP=y
 CONFIG_CMD_CACHE=y
-CONFIG_OF_BOARD=y
 CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_BOOTP_SEND_HOSTNAME=y
index 9071b7c65302aa85addb04c7971de8cd532a27b2..b6a97f27d1d5538c8d4afb638fa665d1dfae38ec 100644 (file)
@@ -24,7 +24,6 @@ CONFIG_CMD_SF_TEST=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_BOOTP_PREFER_SERVERIP=y
 CONFIG_CMD_CACHE=y
-CONFIG_OF_BOARD=y
 CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_BOOTP_SEND_HOSTNAME=y
index 2b527b6577075476d5bd732721353382fd797af5..d430dea9e3bd3e7a79d93e5baf83e05b832934ff 100644 (file)
@@ -27,7 +27,6 @@ CONFIG_CMD_EXT2=y
 CONFIG_CMD_EXT4=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_DOS_PARTITION=y
-CONFIG_OF_BOARD=y
 CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
index 3ae678ba56e4db805dc21ad1d1f6e69a36e2e010..de64161f8c168f91e84b814a78d9bf23f09b79c9 100644 (file)
@@ -28,7 +28,6 @@ CONFIG_CMD_EXT2=y
 CONFIG_CMD_EXT4=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_DOS_PARTITION=y
-CONFIG_OF_BOARD=y
 CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
index af40f7131843f95b41852e522be8758daddd0440..3e8bfcf73a69ea00bcbd900697009eb53a7fc80b 100644 (file)
@@ -22,7 +22,6 @@ CONFIG_AUTOBOOT_KEYED_CTRLC=y
 # CONFIG_DISPLAY_BOARDINFO is not set
 CONFIG_MISC_INIT_R=y
 # CONFIG_CMD_SETEXPR is not set
-CONFIG_OF_BOARD=y
 CONFIG_ENV_IS_IN_NVRAM=y
 CONFIG_ENV_ADDR=0xFFF88000
 CONFIG_SCSI_AHCI=y
index e3df390c94b5aed7bcc2150ede59c2d06db6dd0b..0dbb954273f0f2e9092b3f06546e3a7a62899dde 100644 (file)
@@ -64,7 +64,6 @@ CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_EFI_PARTITION=y
 CONFIG_PARTITION_TYPE_GUID=y
-CONFIG_OF_BOARD=y
 CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_USE_ENV_SPI_BUS=y
index 0478b3068a68bbe51ed669c76ae14e45dfed84c5..65fb8474e10f294fab3bc4fe1a8998f9a6681a20 100644 (file)
@@ -65,7 +65,6 @@ CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_EFI_PARTITION=y
 CONFIG_PARTITION_TYPE_GUID=y
-CONFIG_OF_BOARD=y
 CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_USE_ENV_SPI_BUS=y
index d871be8f812a1013436f2277f5b14bd6b36ddc9a..ea62be30631549c4bb5d4ffe1e76496cb3af594d 100644 (file)
@@ -66,7 +66,6 @@ CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_EFI_PARTITION=y
 CONFIG_PARTITION_TYPE_GUID=y
-CONFIG_OF_BOARD=y
 CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_USE_ENV_SPI_BUS=y
index 94b072bf6fad63db1f4d86df3a5cbb766a0a67d4..47ddc50e7b7684031941fb5b834f10669d842879 100644 (file)
@@ -63,7 +63,6 @@ CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_EFI_PARTITION=y
 CONFIG_PARTITION_TYPE_GUID=y
-CONFIG_OF_BOARD=y
 CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_USE_ENV_SPI_BUS=y
index 81d12d5f3c125035352e685159e17859383f6316..894203d75ba367d012b514b3f42018f7fc7c33c3 100644 (file)
@@ -27,7 +27,6 @@ CONFIG_CMD_PING=y
 CONFIG_CMD_EXT2=y
 CONFIG_DOS_PARTITION=y
 CONFIG_OF_CONTROL=y
-CONFIG_OF_BOARD=y
 CONFIG_ENV_OVERWRITE=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_NET_RANDOM_ETHADDR=y
index 4c0f51bd2aab402f0c154a4e484e3b702f4a9e02..b892fd6d6ecb3e32d8544fdb0732be295ba26d5c 100644 (file)
@@ -12,6 +12,5 @@ CONFIG_DISPLAY_BOARDINFO=y
 CONFIG_CMD_BOOTEFI_SELFTEST=y
 CONFIG_CMD_NVEDIT_EFI=y
 # CONFIG_CMD_MII is not set
-CONFIG_OF_BOARD=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_DM_MTD=y
index 19406080100ad5d9e515cb503b65ac2e66f329b9..b4856fd3852459413a32eafbd3922ff55b706137 100644 (file)
@@ -13,7 +13,6 @@ CONFIG_DISPLAY_BOARDINFO=y
 CONFIG_CMD_BOOTEFI_SELFTEST=y
 CONFIG_CMD_NVEDIT_EFI=y
 # CONFIG_CMD_MII is not set
-CONFIG_OF_BOARD=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_DM_MTD=y
 CONFIG_SYSRESET_SBI=y
index 8889b028c6b1f49358775d8a4bd0e219cb646b4e..efe8d390fd9980389d2d3d8f30dad6d11148de09 100644 (file)
@@ -15,7 +15,6 @@ CONFIG_DISPLAY_CPUINFO=y
 CONFIG_DISPLAY_BOARDINFO=y
 CONFIG_CMD_SBI=y
 # CONFIG_CMD_MII is not set
-CONFIG_OF_BOARD=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_DM_MTD=y
 CONFIG_SYSRESET_SBI=y
index cba975d703d9f260af2538ceaaaf285f759f8c7c..036484c7f7959db0b5865765a37fe691badaec34 100644 (file)
@@ -13,6 +13,5 @@ CONFIG_DISPLAY_BOARDINFO=y
 CONFIG_CMD_BOOTEFI_SELFTEST=y
 CONFIG_CMD_NVEDIT_EFI=y
 # CONFIG_CMD_MII is not set
-CONFIG_OF_BOARD=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_DM_MTD=y
index 6b7771488fe806615c50133e414139d678b3e766..e519bb6bb78d51cf8f5142e8a86f175e54033dc7 100644 (file)
@@ -16,7 +16,6 @@ CONFIG_DISPLAY_BOARDINFO=y
 CONFIG_CMD_BOOTEFI_SELFTEST=y
 CONFIG_CMD_NVEDIT_EFI=y
 # CONFIG_CMD_MII is not set
-CONFIG_OF_BOARD=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_DM_MTD=y
 CONFIG_SYSRESET_SBI=y
index 8f875949ec0a6052be5508a521f4538d39f94103..8b512372d6c36eed1cb82feded65cc93284359c8 100644 (file)
@@ -15,7 +15,6 @@ CONFIG_DISPLAY_CPUINFO=y
 CONFIG_DISPLAY_BOARDINFO=y
 CONFIG_CMD_SBI=y
 # CONFIG_CMD_MII is not set
-CONFIG_OF_BOARD=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_DM_MTD=y
 CONFIG_SYSRESET_SBI=y
index 7d03eb76d45c4bc0df923e0e773c23da41ee110c..5e41ea980f3b002dacbe7b195ec676d08f1ed3ca 100644 (file)
@@ -29,7 +29,6 @@ CONFIG_CMD_PCI=y
 CONFIG_CMD_USB=y
 CONFIG_CMD_TPM=y
 CONFIG_CMD_MTDPARTS=y
-CONFIG_OF_BOARD=y
 CONFIG_ENV_IS_IN_FLASH=y
 CONFIG_ENV_ADDR=0x4000000
 CONFIG_SCSI_AHCI=y
index 6bec0ae63447a2552f183ff16f35b1a3e82d1b65..4197cb0f92b42fe252a7904262e8a6ffdf61ad3e 100644 (file)
@@ -31,7 +31,6 @@ CONFIG_CMD_PCI=y
 CONFIG_CMD_USB=y
 CONFIG_CMD_TPM=y
 CONFIG_CMD_MTDPARTS=y
-CONFIG_OF_BOARD=y
 CONFIG_ENV_IS_IN_FLASH=y
 CONFIG_ENV_ADDR=0x4000000
 CONFIG_SCSI_AHCI=y
index 0d534b8a28d1b8760f4d63bd9c1945204e76b78c..8f87a4336d22aa1af7866ccb429eb60a5600029c 100644 (file)
@@ -21,7 +21,6 @@ CONFIG_CMD_MMC=y
 CONFIG_CMD_PCI=y
 CONFIG_CMD_USB=y
 CONFIG_CMD_FS_UUID=y
-CONFIG_OF_BOARD=y
 CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
index 0b3cadaced2218e0b03705cd5c486d97d83da221..461a7655ab9015e0d6cceae16cbc6e71c790d394 100644 (file)
@@ -21,7 +21,6 @@ CONFIG_CMD_MMC=y
 CONFIG_CMD_PCI=y
 CONFIG_CMD_USB=y
 CONFIG_CMD_FS_UUID=y
-CONFIG_OF_BOARD=y
 CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
index 0b5f766cfe7fb67771f371be6a8ac7f66cf196ea..351d247daeb7b2d6dc72e40ad5aff3524f3ea064 100644 (file)
@@ -20,7 +20,6 @@ CONFIG_CMD_MMC=y
 CONFIG_CMD_PCI=y
 CONFIG_CMD_USB=y
 CONFIG_CMD_FS_UUID=y
-CONFIG_OF_BOARD=y
 CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
 CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
 CONFIG_TFTP_TSIZE=y
index 0ccd990b80b3f2cbc13d60667c1dc12d70c11324..ffadfc03eeb270605476717c4214e1cc481351f5 100644 (file)
@@ -33,7 +33,6 @@ CONFIG_CMD_USB=y
 CONFIG_CMD_CACHE=y
 # CONFIG_CMD_SLEEP is not set
 CONFIG_CMD_UBI=y
-CONFIG_OF_BOARD=y
 CONFIG_ENV_IS_IN_FLASH=y
 CONFIG_ENV_ADDR=0xBFC0000
 CONFIG_SATA_SIL=y
index edce34346d3b65e980160225a03709fcbec04633..223bb782b7d38d1e86e996c1404f823bd882315e 100644 (file)
@@ -33,7 +33,6 @@ CONFIG_CMD_PVBLOCK=y
 # CONFIG_CMD_SLEEP is not set
 CONFIG_CMD_EXT4=y
 CONFIG_CMD_FAT=y
-CONFIG_OF_BOARD=y
 CONFIG_DM=y
 # CONFIG_MMC is not set
 # CONFIG_REQUIRE_SERIAL_CONSOLE is not set