Browse Source

configs: starfive_dubhe_fpga_defconfig: Enable Dubhe SMP

Signed-off-by: Wei Liang Lim <weiliang.lim@starfivetech.com>
Wei Liang Lim 7 months ago
parent
commit
ea34117e3e
2 changed files with 4 additions and 3 deletions
  1. 3 1
      arch/riscv/cpu/dubhe/Kconfig
  2. 1 2
      configs/starfive_dubhe_fpga_defconfig

+ 3 - 1
arch/riscv/cpu/dubhe/Kconfig

@@ -4,17 +4,19 @@
 
 config STARFIVE_DUBHE
 	bool
+	select SUPPORT_SPL
 	select BINMAN if SPL
 	select ARCH_EARLY_INIT_R
 	imply CPU
 	imply CPU_RISCV
 	imply RISCV_TIMER if (RISCV_SMODE || SPL_RISCV_SMODE)
 	imply SIFIVE_CLINT if RISCV_MMODE
-	imply SPL_SIFIVE_CLINT if SPL_RISCV_MMODE
+	imply SPL_RISCV_ACLINT
 	imply CMD_CPU
 	imply SPL_CPU
 	imply SPL_OPENSBI
 	imply SPL_LOAD_FIT
+	imply SMP
 	imply MII
 
 config SYS_CACHELINE_SIZE

+ 1 - 2
configs/starfive_dubhe_fpga_defconfig

@@ -3,14 +3,12 @@ CONFIG_SYS_MALLOC_F_LEN=0x3000
 CONFIG_NR_DRAM_BANKS=1
 CONFIG_SPL_DM_SPI=y
 CONFIG_DEFAULT_DEVICE_TREE="dubhe_fpga"
-CONFIG_SUPPORT_SPL=y
 CONFIG_SPL=y
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI_SUPPORT=y
 CONFIG_TARGET_STARFIVE_DUBHE_FPGA=y
 CONFIG_ARCH_RV64I=y
 CONFIG_RISCV_SMODE=y
-# CONFIG_SPL_SMP is not set
 CONFIG_SPL_OPENSBI_LOAD_ADDR=0x80100000
 CONFIG_FIT=y
 CONFIG_USE_BOOTARGS=y
@@ -82,3 +80,4 @@ CONFIG_SPL_RAM_DEVICE=y
 CONFIG_DISPLAY_CPUINFO=y
 CONFIG_DISPLAY_BOARDINFO=y
 CONFIG_DISPLAY_BOARDINFO_LATE=y
+CONFIG_NR_CPUS=2