]> git.baikalelectronics.ru Git - uboot.git/commitdiff
cpu: Rename SPL_CPU_SUPPORT to SPL_CPU
authorSimon Glass <sjg@chromium.org>
Mon, 15 Mar 2021 05:11:18 +0000 (18:11 +1300)
committerSimon Glass <sjg@chromium.org>
Sat, 27 Mar 2021 02:04:31 +0000 (15:04 +1300)
The _SUPPORT suffix is from an earlier time and interferes with use of
the CONFIG_IS_ENABLED() macro. Rename the option to drop the suffix.

Tidy up the TODO that prompted this.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/riscv/cpu/ax25/Kconfig
arch/riscv/cpu/fu540/Kconfig
arch/riscv/cpu/generic/Kconfig
arch/x86/lib/spl.c
common/spl/Kconfig
configs/chromebook_coral_defconfig
configs/chromebook_link64_defconfig
configs/qemu-x86_64_defconfig
drivers/Makefile
drivers/timer/timer-uclass.c

index 327b74e20a0ed5bcf04d9b9a051dc9c44b8ff05d..941d963ece48ef4720de32c4a14cff26eeae438b 100644 (file)
@@ -6,7 +6,7 @@ config RISCV_NDS
        imply RISCV_TIMER if (RISCV_SMODE || SPL_RISCV_SMODE)
        imply ANDES_PLIC if (RISCV_MMODE || SPL_RISCV_MMODE)
        imply ANDES_PLMT_TIMER if (RISCV_MMODE || SPL_RISCV_MMODE)
-       imply SPL_CPU_SUPPORT
+       imply SPL_CPU
        imply SPL_OPENSBI
        imply SPL_LOAD_FIT
        help
index 61bd5c426ed0a02e6d65bb7f6d4c0c6a9239f218..616b25650f093098ba5b26f9f5cb50b29733d3aa 100644 (file)
@@ -13,7 +13,7 @@ config SIFIVE_FU540
        imply RISCV_TIMER if (RISCV_SMODE || SPL_RISCV_SMODE)
        imply SIFIVE_CLINT if (RISCV_MMODE || SPL_RISCV_MMODE)
        imply CMD_CPU
-       imply SPL_CPU_SUPPORT
+       imply SPL_CPU
        imply SPL_OPENSBI
        imply SPL_LOAD_FIT
        imply SMP
index f4c2e2643c91053112c0fd485176e341e7a3206c..198e36e969bb12f8f9f404acfcd36ea54ab3705b 100644 (file)
@@ -10,6 +10,6 @@ config GENERIC_RISCV
        imply RISCV_TIMER if (RISCV_SMODE || SPL_RISCV_SMODE)
        imply SIFIVE_CLINT if (RISCV_MMODE || SPL_RISCV_MMODE)
        imply CMD_CPU
-       imply SPL_CPU_SUPPORT
+       imply SPL_CPU
        imply SPL_OPENSBI
        imply SPL_LOAD_FIT
index 1bae1f4f321be9cb8a3a67195a3cb556c6ebcf43..b18c1cd6092126eb2f4ee6b61a8a5f4cff72d63d 100644 (file)
@@ -96,7 +96,7 @@ static int x86_spl_init(void)
        }
 #endif
        preloader_console_init();
-#ifndef CONFIG_TPL
+#if !defined(CONFIG_TPL) && !CONFIG_IS_ENABLED(CPU)
        ret = print_cpuinfo();
        if (ret) {
                debug("%s: print_cpuinfo() failed\n", __func__);
index 584f8483e2e4a2c3405921b07471eb1c7af52bf1..0711cbf9517233b68a6f12ba6ff4366207811c67 100644 (file)
@@ -500,7 +500,7 @@ config SPL_CACHE_SUPPORT
          future requests for that data can be served faster. Enable this option
          to build the drivers in drivers/cache as part of an SPL build.
 
-config SPL_CPU_SUPPORT
+config SPL_CPU
        bool "Support CPU drivers"
        help
          Enable this to support CPU drivers in SPL. These drivers can set
index e3756cf79caa93a8d25a2e88e2b22873d1a6f5d3..48239138c7bda0a711b320a2439eee5e43ae21e3 100644 (file)
@@ -43,7 +43,7 @@ CONFIG_BLOBLIST_ADDR=0x100000
 CONFIG_HANDOFF=y
 CONFIG_TPL_SYS_MALLOC_SIMPLE=y
 CONFIG_SPL_SEPARATE_BSS=y
-CONFIG_SPL_CPU_SUPPORT=y
+CONFIG_SPL_CPU=y
 CONFIG_SPL_DM_SPI_FLASH=y
 CONFIG_SPL_PCI=y
 # CONFIG_SPL_SPI_FLASH_TINY is not set
index 8f56ee3476da7ffddf5c2f78a3a036ded2cd6fde..872e33d75717dc8d4c98b421baeef603f062fe5f 100644 (file)
@@ -31,7 +31,7 @@ CONFIG_DISPLAY_BOARDINFO_LATE=y
 CONFIG_LAST_STAGE_INIT=y
 CONFIG_MISC_INIT_R=y
 CONFIG_SPL_SYS_MALLOC_SIMPLE=y
-CONFIG_SPL_CPU_SUPPORT=y
+CONFIG_SPL_CPU=y
 CONFIG_SPL_ENV_SUPPORT=y
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_DM_SPI_FLASH=y
index 99a489cab425c24103a371265b8b4bb4c3771198..4815d8af4e608ffa53a3442fbf0385635e8c71d4 100644 (file)
@@ -31,7 +31,7 @@ CONFIG_DISPLAY_BOARDINFO_LATE=y
 CONFIG_LAST_STAGE_INIT=y
 CONFIG_PCI_INIT_R=y
 CONFIG_SPL_SYS_MALLOC_SIMPLE=y
-CONFIG_SPL_CPU_SUPPORT=y
+CONFIG_SPL_CPU=y
 CONFIG_SPL_ENV_SUPPORT=y
 CONFIG_SPL_DM_SPI_FLASH=y
 CONFIG_SPL_NET_SUPPORT=y
index c562a719f74df8438d68819674a0e659cfda4d12..3510daba29f81e90f4fc1ab1322c2e4b466413a8 100644 (file)
@@ -38,7 +38,7 @@ ifdef CONFIG_SPL_BUILD
 
 obj-$(CONFIG_SPL_BOOTCOUNT_LIMIT) += bootcount/
 obj-$(CONFIG_SPL_CACHE_SUPPORT) += cache/
-obj-$(CONFIG_SPL_CPU_SUPPORT) += cpu/
+obj-$(CONFIG_SPL_CPU) += cpu/
 obj-$(CONFIG_SPL_CRYPTO_SUPPORT) += crypto/
 obj-$(CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
 obj-$(CONFIG_ARMADA_38X) += ddr/marvell/a38x/
index 6f00a5d0dba27ca278e27d20df863c8a3c449cd3..73b4a5cd27fa0d3aaa648ce03639ce3d0f2b5827 100644 (file)
@@ -83,11 +83,7 @@ static int timer_post_probe(struct udevice *dev)
        return 0;
 }
 
-/*
- * TODO: should be CONFIG_IS_ENABLED(CPU), but the SPL config has _SUPPORT on
- * the end...
- */
-#if defined(CONFIG_CPU) || defined(CONFIG_SPL_CPU_SUPPORT)
+#if CONFIG_IS_ENABLED(CPU)
 int timer_timebase_fallback(struct udevice *dev)
 {
        struct udevice *cpu;