]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: sifive/fu540: kconfig: Move FU540 driver related options to the SoC level
authorBin Meng <bin.meng@windriver.com>
Mon, 3 Aug 2020 06:09:04 +0000 (23:09 -0700)
committerAndes <uboot@andestech.com>
Fri, 14 Aug 2020 06:38:53 +0000 (14:38 +0800)
All FU540 driver related options should be in the SoC level Kconfig.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Rick Chen <rick@andestech.com>
Reviewed-by: Pragnesh Patel <pragnesh.patel@sifive.com>
Tested-by: Pragnesh Patel <pragnesh.patel@sifive.com>
arch/riscv/cpu/fu540/Kconfig
board/sifive/fu540/Kconfig

index 2dcad8e27f7f069e925d14641d1197c9bf73841d..53e19635c8311cf443eeb698e6fd88d94a405498 100644 (file)
@@ -5,6 +5,9 @@
 config SIFIVE_FU540
        bool
        select ARCH_EARLY_INIT_R
+       select SUPPORT_SPL
+       select RAM
+       select SPL_RAM if SPL
        imply CPU
        imply CPU_RISCV
        imply RISCV_TIMER
@@ -13,6 +16,25 @@ config SIFIVE_FU540
        imply SPL_CPU_SUPPORT
        imply SPL_OPENSBI
        imply SPL_LOAD_FIT
+       imply SMP
+       imply CLK_SIFIVE
+       imply CLK_SIFIVE_FU540_PRCI
+       imply SIFIVE_SERIAL
+       imply MACB
+       imply MII
+       imply SPI
+       imply SPI_SIFIVE
+       imply MMC
+       imply MMC_SPI
+       imply MMC_BROKEN_CD
+       imply CMD_MMC
+       imply DM_GPIO
+       imply SIFIVE_GPIO
+       imply CMD_GPIO
+       imply MISC
+       imply SIFIVE_OTP
+       imply DM_PWM
+       imply PWM_SIFIVE
 
 if ENV_IS_IN_SPI_FLASH
 
index f3217f62c43e0bfe81ca89c77a4e2e0da51d1f22..fc281209ebdb47ab3b3e7b4497d0b56506338942 100644 (file)
@@ -26,10 +26,7 @@ config SPL_OPENSBI_LOAD_ADDR
 config BOARD_SPECIFIC_OPTIONS # dummy
        def_bool y
        select SIFIVE_FU540
-       select SUPPORT_SPL
        select ENV_IS_IN_SPI_FLASH
-       select RAM
-       select SPL_RAM if SPL
        imply CMD_DHCP
        imply CMD_EXT2
        imply CMD_EXT4
@@ -40,34 +37,15 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        imply CMD_NET
        imply CMD_PING
        imply CMD_SF
-       imply CLK_SIFIVE
-       imply CLK_SIFIVE_FU540_PRCI
        imply DOS_PARTITION
        imply EFI_PARTITION
        imply IP_DYN
        imply ISO_PARTITION
-       imply MACB
-       imply MII
        imply NET_RANDOM_ETHADDR
        imply PHY_LIB
        imply PHY_MSCC
-       imply SIFIVE_SERIAL
-       imply SPI
-       imply SPI_SIFIVE
        imply SPI_FLASH
        imply SPI_FLASH_ISSI
-       imply MMC
-       imply MMC_SPI
-       imply MMC_BROKEN_CD
-       imply CMD_MMC
-       imply DM_GPIO
-       imply SIFIVE_GPIO
-       imply CMD_GPIO
-       imply SMP
-       imply MISC
-       imply SIFIVE_OTP
-       imply DM_PWM
-       imply PWM_SIFIVE
        imply SYSRESET
        imply SYSRESET_GPIO