]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
nxp: Make board/freescale/common/Kconfig safe to include once in arch/Kconfig
authorTom Rini <trini@konsulko.com>
Thu, 16 Jun 2022 18:04:35 +0000 (14:04 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 5 Jul 2022 21:03:02 +0000 (17:03 -0400)
The way that we use this file currently means that we have to guard it
in every platform Kconfig.  But it is also required in all NXP
platforms, including non-reference platforms.  Make all options in it
have appropriate dependencies so that we can include it a single time
under arch/Kconfig

Signed-off-by: Tom Rini <trini@konsulko.com>
45 files changed:
arch/Kconfig
board/advantech/imx8mp_rsb3720a1/Kconfig
board/advantech/imx8qm_rom7720_a1/Kconfig
board/beacon/imx8mm/Kconfig
board/beacon/imx8mn/Kconfig
board/bsh/imx8mn_smm_s2/Kconfig
board/engicam/imx8mm/Kconfig
board/freescale/common/Kconfig
board/freescale/corenet_ds/Kconfig
board/freescale/imx8mn_evk/Kconfig
board/freescale/imx8mp_evk/Kconfig
board/freescale/imx8qm_mek/Kconfig
board/freescale/imx8qxp_mek/Kconfig
board/freescale/imx8ulp_evk/Kconfig
board/freescale/ls1012afrdm/Kconfig
board/freescale/ls1012aqds/Kconfig
board/freescale/ls1012ardb/Kconfig
board/freescale/ls1021aiot/Kconfig
board/freescale/ls1021aqds/Kconfig
board/freescale/ls1021atsn/Kconfig
board/freescale/ls1021atwr/Kconfig
board/freescale/ls1028a/Kconfig
board/freescale/ls1043aqds/Kconfig
board/freescale/ls1043ardb/Kconfig
board/freescale/ls1046afrwy/Kconfig
board/freescale/ls1046aqds/Kconfig
board/freescale/ls1046ardb/Kconfig
board/freescale/ls1088a/Kconfig
board/freescale/ls2080aqds/Kconfig
board/freescale/ls2080ardb/Kconfig
board/freescale/lx2160a/Kconfig
board/freescale/p1010rdb/Kconfig
board/freescale/p1_p2_rdb_pc/Kconfig
board/freescale/p2041rdb/Kconfig
board/freescale/t102xrdb/Kconfig
board/freescale/t104xrdb/Kconfig
board/freescale/t208xqds/Kconfig
board/freescale/t208xrdb/Kconfig
board/freescale/t4rdb/Kconfig
board/variscite/imx8mn_var_som/Kconfig
configs/kmcent2_defconfig
configs/pg_wcom_expu1_defconfig
configs/pg_wcom_expu1_update_defconfig
configs/pg_wcom_seli8_defconfig
configs/pg_wcom_seli8_update_defconfig

index d35a590f93c1043620c9509b0f285738b0b29d7d..1ad61ab345a2d9bf0a3ba82bc7681164e062c678 100644 (file)
@@ -451,6 +451,7 @@ source "arch/x86/Kconfig"
 source "arch/xtensa/Kconfig"
 source "arch/riscv/Kconfig"
 
+source "board/freescale/common/Kconfig"
 source "board/keymile/Kconfig"
 
 if MIPS || MICROBLAZE
index 4486ed6d335a0bdfa70d435f23c47b480716c9e7..95cac7c4f09f1d3d1ebdf01096b9c16ccc6a6dbd 100644 (file)
@@ -9,6 +9,4 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "imx8mp_rsb3720"
 
-source "board/freescale/common/Kconfig"
-
 endif
index 8bf3a7d34846981e75e8f08acd3973ebec59051d..c846537f7432a4596a60b69510a16caf44fc5621 100644 (file)
@@ -12,6 +12,4 @@ config SYS_CONFIG_NAME
 config IMX_CONFIG
        default "board/advantech/imx8qm_rom7720_a1/imximage.cfg"
 
-source "board/freescale/common/Kconfig"
-
 endif
index 63f064e8cb85ccbc2036e8cf4434e72e755596cb..e5d8aa3ec9cd580e75e797f1c7c51050bfd1dc27 100644 (file)
@@ -12,6 +12,4 @@ config SYS_CONFIG_NAME
 config IMX_CONFIG
        default "board/beacon/imx8mm/imximage-8mm-lpddr4.cfg"
 
-source "board/freescale/common/Kconfig"
-
 endif
index fb301397b1ad4ad59f2acd48079682353d332d34..e11286c5c3ac00d4aa4968b64c5b46cb4d202006 100644 (file)
@@ -18,6 +18,4 @@ config IMX8MN_BEACON_2GB_LPDDR
 config IMX_CONFIG
        default "board/beacon/imx8mn/imximage-8mn-lpddr4.cfg"
 
-source "board/freescale/common/Kconfig"
-
 endif
index f43d058f2188631800a56e7640a6d9ced3965ee5..041a9c78a66d93a4eba3ae3ea175c4ef98c56134 100644 (file)
@@ -22,8 +22,6 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        def_bool y
        select BSH_SMM_S2_DDR3L_256
 
-source "board/freescale/common/Kconfig"
-
 endif
 
 if TARGET_IMX8MN_BSH_SMM_S2PRO
@@ -44,6 +42,4 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        def_bool y
        select BSH_SMM_S2_DDR3L_512
 
-source "board/freescale/common/Kconfig"
-
 endif
index 5495b3bf99be44cdbc1e76439350dce7a8851bdb..3b3b93bb2f0a65fd7aebfeec0fcc961d4846de12 100644 (file)
@@ -12,6 +12,4 @@ config SYS_CONFIG_NAME
 config IMX_CONFIG
        default "arch/arm/mach-imx/imx8m/imximage-8mm-lpddr4.cfg"
 
-source "board/freescale/common/Kconfig"
-
 endif
index 195fc471a5b2a491a2ece467c3a1ae43cdfad531..85acdde44365414fb69df143ec09bbe1ecc04813 100644 (file)
@@ -16,7 +16,8 @@ config CHAIN_OF_TRUST
 
 config CMD_ESBC_VALIDATE
        bool "Enable the 'esbc_validate' and 'esbc_halt' commands"
-       default y if CHAIN_OF_TRUST
+       depends on CHAIN_OF_TRUST
+       default y
        help
          This option enables two commands used for secure booting:
 
@@ -25,26 +26,28 @@ config CMD_ESBC_VALIDATE
 
 config DEEP_SLEEP
        bool "Enable SoC deep sleep feature"
-       default y if ARCH_T1024 || ARCH_T1040 || ARCH_T1042 || ARCH_LS1021A
+       depends on ARCH_T1024 || ARCH_T1040 || ARCH_T1042 || ARCH_LS1021A
+       default y
        help
          Indicates this SoC supports deep sleep feature. If deep sleep is
          supported, core will start to execute uboot when wakes up.
 
 config FSL_USE_PCA9547_MUX
        bool "Enable PCA9547 I2C Mux on Freescale boards"
+       depends on PPC || ARCH_LS1021A || FSL_LSCH2 || FSL_LSCH3
        help
         This option enables the PCA9547 I2C mux on Freescale boards.
 
 config VID
        bool "Enable Freescale VID"
-       depends on I2C || DM_I2C
+       depends on (PPC || ARCH_LS1021A || FSL_LSCH2 || FSL_LSCH3) && (I2C || DM_I2C)
        help
         This option enables setting core voltage based on individual
         values saved in SoC fuses.
 
 config SPL_VID
        bool "Enable Freescale VID in SPL"
-       depends on I2C || DM_I2C
+       depends on (PPC || ARCH_LS1021A || FSL_LSCH2 || FSL_LSCH3) && (SPL_I2C || DM_SPL_I2C)
        help
         This option enables setting core voltage based on individual
         values saved in SoC fuses, in SPL.
@@ -103,6 +106,7 @@ endif
 
 config FSL_QIXIS
        bool "Enable QIXIS support"
+       depends on PPC || ARCH_LS1021A || FSL_LSCH2 || FSL_LSCH3
 
 config QIXIS_I2C_ACCESS
        bool "Access to QIXIS is over i2c"
index e92b0d099da7c2f6139e2c21190d4ce1bd00e09c..dbcd1afcbad16014774cacf2330ad44ac6310312 100644 (file)
@@ -9,8 +9,6 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "P3041DS"
 
-source "board/freescale/common/Kconfig"
-
 endif
 
 if TARGET_P4080DS
@@ -24,8 +22,6 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "P4080DS"
 
-source "board/freescale/common/Kconfig"
-
 endif
 
 if TARGET_P5040DS
@@ -39,6 +35,4 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "P5040DS"
 
-source "board/freescale/common/Kconfig"
-
 endif
index 0adf87bd42a115079c182fc482a845ba7d895c46..a148a9b998c5bb82546b22a536fc597c5c4dabf7 100644 (file)
@@ -15,6 +15,4 @@ config IMX8MN_LOW_DRIVE_MODE
 config IMX_CONFIG
        default "board/freescale/imx8mn_evk/imximage-8mn-ddr4.cfg"
 
-source "board/freescale/common/Kconfig"
-
 endif
index 42625fd58889fe69213e9a4ce26b4ffb939921ae..cafa6329a40b77f92cd572b57d69fe1958f4b8a6 100644 (file)
@@ -12,6 +12,4 @@ config SYS_CONFIG_NAME
 config IMX_CONFIG
        default "board/freescale/imx8mp_evk/imximage-8mp-lpddr4.cfg"
 
-source "board/freescale/common/Kconfig"
-
 endif
index aed6ab25ce189142519e56f9f3acf5769cafb5a2..5f2413f8dbfcfd196db68a5bc31730508376c139 100644 (file)
@@ -12,6 +12,4 @@ config SYS_CONFIG_NAME
 config IMX_CONFIG
        default "board/freescale/imx8qm_mek/imximage.cfg"
 
-source "board/freescale/common/Kconfig"
-
 endif
index b9aab3789ee4ad00fc0ff1c80caaff93eb68e6f7..6533b4d9535efb083451431101a919b56c3f17c8 100644 (file)
@@ -12,6 +12,4 @@ config SYS_CONFIG_NAME
 config IMX_CONFIG
        default "board/freescale/imx8qxp_mek/imximage.cfg"
 
-source "board/freescale/common/Kconfig"
-
 endif
index 1e461ee1da71467e4148c8269718b096bac7c377..4637b969be6dcbcb45411d510742ed19f649fa87 100644 (file)
@@ -9,6 +9,4 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "imx8ulp_evk"
 
-source "board/freescale/common/Kconfig"
-
 endif
index 4ac69d711748acc21ae1c036d40cefe347cad034..75de782afc9c038851cac5c22f8d0b59cfc00cf2 100644 (file)
@@ -89,7 +89,3 @@ config SYS_LS_PFE_ESBC_LENGTH
        hex "length of PFE Firmware HDR"
        default 0xc00
 endif
-
-if TARGET_LS1012AFRDM || TARGET_LS1012AFRWY
-source "board/freescale/common/Kconfig"
-endif
index 59b1a876655f7198face150d7fe14623201a0c36..991ba6044db8b1013c68060a2b4af6e8ba33ad43 100644 (file)
@@ -77,7 +77,4 @@ config PFE_SGMII_2500_PHY2_ADDR
 
 endif
 
-
-source "board/freescale/common/Kconfig"
-
 endif
index c4acea3ae2db3c7ba93bdf69306b32de42ca8eba..aa15f5a027e891d8aac8ed062c33a58f426a4935 100644 (file)
@@ -63,8 +63,6 @@ config PFE_EMAC2_PHY_ADDR
 
 endif
 
-source "board/freescale/common/Kconfig"
-
 endif
 
 if TARGET_LS1012A2G5RDB
@@ -119,6 +117,4 @@ config PFE_EMAC2_PHY_ADDR
 
 endif
 
-source "board/freescale/common/Kconfig"
-
 endif
index c6b16063a4a620af0321b000b69258837b73065b..4a12c1687fcede1eec51e52be85876fa9bad0eb5 100644 (file)
@@ -12,6 +12,4 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ls1021aiot"
 
-source "board/freescale/common/Kconfig"
-
 endif
index 60b8472990daf1edaffdd01a83afce789597dc92..119b9550410c2664ab9d959eef8b7e1a040f729f 100644 (file)
@@ -12,6 +12,4 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ls1021aqds"
 
-source "board/freescale/common/Kconfig"
-
 endif
index d999fa46900265f3db149e132ec46de479264636..aa42a06c663ff55cb762127901108158b778bc60 100644 (file)
@@ -13,6 +13,4 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ls1021atsn"
 
-source "board/freescale/common/Kconfig"
-
 endif
index a4641cbca09b0ac0f7d572cd4b504d6ebf9ca6c6..bc50b8d96689bb7fb44c3f06058a5df45d6dfd9a 100644 (file)
@@ -12,6 +12,4 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ls1021atwr"
 
-source "board/freescale/common/Kconfig"
-
 endif
index 40939816ad89a7051196e73ef09d39afd46b5a03..5c27f0f726dd019d3dbff281e1e405f87ecf317b 100644 (file)
@@ -32,8 +32,6 @@ config SYS_LS_PPA_ESBC_ADDR
 endif
 endif
 
-source "board/freescale/common/Kconfig"
-
 endif
 
 if TARGET_LS1028ARDB
@@ -58,6 +56,4 @@ config SYS_TEXT_BASE
        default 0x82000000 if TFABOOT
        default 0x20100000
 
-source "board/freescale/common/Kconfig"
-
 endif
index 182900efb7b28163d5b5bbccc765e4316bd2b229..4be445e8c8f815f6889312efbdaeb114acfe0e16 100644 (file)
@@ -28,6 +28,4 @@ config SYS_LS_PPA_ESBC_ADDR
 endif
 endif
 
-source "board/freescale/common/Kconfig"
-
 endif
index d66c7804b13e8ce80c8cc5b3df9c54f5b9191ec1..56502f9f9c634cfb5817d0fc7c5d89ffbe814c9d 100644 (file)
@@ -27,6 +27,4 @@ config SYS_LS_PPA_ESBC_ADDR
 endif
 endif
 
-source "board/freescale/common/Kconfig"
-
 endif
index 6a4c3e92f7ba4475b19405eb7c707b96a98078fc..68329d78caf38d4a31ee9a9b4a46c5b1c8eff1b7 100644 (file)
@@ -13,5 +13,4 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ls1046afrwy"
 
-source "board/freescale/common/Kconfig"
 endif
index 1616dcc683eb92b43dfd38c5b388aee1c1f42e08..adf325f4efd0d67113354b7204a7cd89b7c22cf9 100644 (file)
@@ -28,6 +28,4 @@ config SYS_LS_PPA_ESBC_ADDR
 endif
 endif
 
-source "board/freescale/common/Kconfig"
-
 endif
index 4c31e0e88572a3206f141e8f4ee648669aabcee8..1fb391c991c6c0d9321202244f7093f3808b0a36 100644 (file)
@@ -27,5 +27,4 @@ config SYS_LS_PPA_ESBC_ADDR
 endif
 endif
 
-source "board/freescale/common/Kconfig"
 endif
index 8bb828e3fd6685b5ae9e3509b034e99945bce292..f1a45236061bf2c72a93258a1f5b4d35a8d89e04 100644 (file)
@@ -26,7 +26,6 @@ config SYS_LS_PPA_ESBC_ADDR
 endif
 endif
 
-source "board/freescale/common/Kconfig"
 endif
 
 if TARGET_LS1088ARDB
@@ -57,5 +56,4 @@ config SYS_LS_PPA_ESBC_ADDR
 endif
 endif
 
-source "board/freescale/common/Kconfig"
 endif
index 6b2b64581d606e2c25a0e2ab43caeac5f6c1f851..1036f33c61fa5817edda34ada87d6e17bc906b98 100644 (file)
@@ -29,6 +29,4 @@ config SYS_LS_PPA_ESBC_ADDR
 endif
 endif
 
-source "board/freescale/common/Kconfig"
-
 endif
index 678d58257303066f44d002327a129e4aa6ad5477..c8b0b94596b5bf652eed27cac89eb92063ec8f91 100644 (file)
@@ -12,8 +12,6 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ls2080ardb"
 
-source "board/freescale/common/Kconfig"
-
 if FSL_LS_PPA
 config SYS_LS_PPA_FW_ADDR
        hex "PPA Firmware Addr"
@@ -30,6 +28,4 @@ config SYS_LS_PPA_ESBC_ADDR
 endif
 endif
 
-source "board/freescale/common/Kconfig"
-
 endif
index 7556f7dd21564712d24f857378fd000b2a4795f2..0e4b4158a7f1f44f073b3f9ab95204a613686775 100644 (file)
@@ -12,7 +12,6 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "lx2160ardb"
 
-source "board/freescale/common/Kconfig"
 endif
 
 if TARGET_LX2160AQDS
@@ -29,7 +28,6 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "lx2160aqds"
 
-source "board/freescale/common/Kconfig"
 endif
 
 if TARGET_LX2162AQDS
@@ -46,5 +44,4 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "lx2162aqds"
 
-source "board/freescale/common/Kconfig"
 endif
index 3adac4af1e3c9bc215666ddd38b936bd41fa4872..159bcc4f54d9208dfc3581f071509090e398b090 100644 (file)
@@ -9,6 +9,4 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "P1010RDB"
 
-source "board/freescale/common/Kconfig"
-
 endif
index db7b47a4635b9efcd6d5af49e09f983232e5ec64..cd36150f63776f1b45e429b83ca85697db0f6851 100644 (file)
@@ -11,6 +11,4 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "p1_p2_rdb_pc"
 
-source "board/freescale/common/Kconfig"
-
 endif
index 7e187dde725500ff5ecf725a7dd858d798b5ab2e..78e11214a5b815d15f7e294129cdf000cf879f1b 100644 (file)
@@ -9,6 +9,4 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "P2041RDB"
 
-source "board/freescale/common/Kconfig"
-
 endif
index 6deeb248a3006facbd873e66a4e7de4d2ddb80d7..d538386d4344ef6da5349cdab12bca6d067b268d 100644 (file)
@@ -9,6 +9,4 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "T102xRDB"
 
-source "board/freescale/common/Kconfig"
-
 endif
index e6e46fa126fbf7df6d1111516a53d7690211b448..e33d3173650ccd9d7bb9803fd63848bcdff10c0a 100644 (file)
@@ -11,6 +11,4 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "T104xRDB"
 
-source "board/freescale/common/Kconfig"
-
 endif
index 58a31b65278e55aad5aeda0bc3ece0ee48381a48..c419a59dbb627ac293faa97f6e9a3afcac667091 100644 (file)
@@ -12,6 +12,4 @@ config SYS_CONFIG_NAME
 config SRIO_PCIE_BOOT_SLAVE
        bool "Boot as a SRIO PCIe slave device"
 
-source "board/freescale/common/Kconfig"
-
 endif
index d4c061a5eabc48a27c216be4538be8d5b7a19fe2..35d884e6ccbd24b284f2602f0a68ca55eb3731aa 100644 (file)
@@ -12,6 +12,4 @@ config SYS_CONFIG_NAME
 config T2080RDB_REV_D
        bool "Support for T2080RDB revisions D and up"
 
-source "board/freescale/common/Kconfig"
-
 endif
index 542e574fed142b341b05104785ab1f0f4c115981..d93e4532ac4a4db8bb6619c140dce231d4f81453 100644 (file)
@@ -9,6 +9,4 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "T4240RDB"
 
-source "board/freescale/common/Kconfig"
-
 endif
index cfe6fc8c2c780de8891d7c8ed12a219d318a3f20..9a4003aa11b003125d5abc3c0da2de0143290789 100644 (file)
@@ -12,6 +12,4 @@ config SYS_CONFIG_NAME
 config IMX_CONFIG
        default "board/variscite/imx8mn_var_som/imximage-8mn-ddr4.cfg"
 
-source "board/freescale/common/Kconfig"
-
 endif
index 8540923f891152922ada9f73e71e75feed82795b..37529f21df39d048389a832b4aeae5d6b14cc5b9 100644 (file)
@@ -11,6 +11,7 @@ CONFIG_MPC85xx=y
 CONFIG_TARGET_KMCENT2=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
 CONFIG_ENABLE_36BIT_PHYS=y
+# CONFIG_DEEP_SLEEP is not set
 CONFIG_KM_DEF_NETDEV="eth2"
 CONFIG_KM_IVM_BUS=2
 CONFIG_MP=y
index c5d657408343c8a479f5f9e74d75b503e9b151c0..fe864c75b7f0e0d3e14e1e8f10e05450d6c16707 100644 (file)
@@ -18,6 +18,7 @@ CONFIG_SYS_CLK_FREQ=66666666
 CONFIG_SYS_LOAD_ADDR=0x82000000
 CONFIG_ENV_ADDR=0x60060000
 CONFIG_AHCI=y
+# CONFIG_DEEP_SLEEP is not set
 CONFIG_KM_DEF_NETDEV="eth2"
 CONFIG_KM_COMMON_ETH_INIT=y
 CONFIG_PIGGY_MAC_ADDRESS_OFFSET=3
index c2b079df379098f95daeeba3a679f002c3f776f9..787fe554bad291677f2fd8315f1a2aed19f56ef6 100644 (file)
@@ -17,6 +17,7 @@ CONFIG_SYS_BOOTCOUNT_ADDR=0x70000020
 CONFIG_SYS_LOAD_ADDR=0x82000000
 CONFIG_ENV_ADDR=0x60220000
 CONFIG_AHCI=y
+# CONFIG_DEEP_SLEEP is not set
 CONFIG_KM_DEF_NETDEV="eth2"
 CONFIG_KM_COMMON_ETH_INIT=y
 CONFIG_PIGGY_MAC_ADDRESS_OFFSET=3
index 56e922a241cc8ae7bab1054f4e09473898abeae8..51919dc6cbbba2f9508f92648a84fee6b7ec7dde 100644 (file)
@@ -18,6 +18,7 @@ CONFIG_SYS_CLK_FREQ=66666666
 CONFIG_SYS_LOAD_ADDR=0x82000000
 CONFIG_ENV_ADDR=0x60060000
 CONFIG_AHCI=y
+# CONFIG_DEEP_SLEEP is not set
 CONFIG_KM_DEF_NETDEV="eth2"
 CONFIG_KM_COMMON_ETH_INIT=y
 CONFIG_PIGGY_MAC_ADDRESS_OFFSET=3
index 9d25094a9a6b5604f46feaacaee6b6103ec008d3..0f22511dabc84abd7ac7240c73db13c09d308eae 100644 (file)
@@ -17,6 +17,7 @@ CONFIG_SYS_BOOTCOUNT_ADDR=0x70000020
 CONFIG_SYS_LOAD_ADDR=0x82000000
 CONFIG_ENV_ADDR=0x60220000
 CONFIG_AHCI=y
+# CONFIG_DEEP_SLEEP is not set
 CONFIG_KM_DEF_NETDEV="eth2"
 CONFIG_KM_COMMON_ETH_INIT=y
 CONFIG_PIGGY_MAC_ADDRESS_OFFSET=3