| 1 |
# SPDX-License-Identifier: GPL-2.0-only |
| 2 |
|
| 3 |
config SOC_SIFIVE_FU740 |
| 4 |
bool |
| 5 |
select ARCH_RISCV_RV64 |
| 6 |
select ARCH_RISCV_S |
| 7 |
select ARCH_RISCV_U |
| 8 |
select ARCH_RISCV_PMP |
| 9 |
select ARCH_BOOTBLOCK_RISCV |
| 10 |
select ARCH_VERSTAGE_RISCV |
| 11 |
select ARCH_ROMSTAGE_RISCV |
| 12 |
select ARCH_RAMSTAGE_RISCV |
| 13 |
select DRIVERS_UART_SIFIVE |
| 14 |
select RISCV_USE_ARCH_TIMER |
| 15 |
select UART_OVERRIDE_REFCLK |
| 16 |
select RISCV_HAS_OPENSBI |
| 17 |
|
| 18 |
config SEPARATE_ROMSTAGE |
| 19 |
default n if SOC_SIFIVE_FU740 |
| 20 |
|
| 21 |
if SOC_SIFIVE_FU740 |
| 22 |
|
| 23 |
config MEMLAYOUT_LD_FILE |
| 24 |
string |
| 25 |
default "src/soc/sifive/fu740/memlayout.ld" |
| 26 |
|
| 27 |
config RISCV_ARCH |
| 28 |
string |
| 29 |
default "rv64imac" |
| 30 |
|
| 31 |
config RISCV_ABI |
| 32 |
string |
| 33 |
default "lp64" |
| 34 |
|
| 35 |
config RISCV_CODEMODEL |
| 36 |
string |
| 37 |
default "medany" |
| 38 |
|
| 39 |
# 4x U7 cores (RV64IMAFDC) + 1x S7 core (RV64IMAC) |
| 40 |
config MAX_CPUS |
| 41 |
int |
| 42 |
default 5 |
| 43 |
|
| 44 |
config RISCV_WORKING_HARTID |
| 45 |
int |
| 46 |
default 1 # use U7 core as S7 core does not support supervisor mode |
| 47 |
|
| 48 |
config OPENSBI_PLATFORM |
| 49 |
string |
| 50 |
default "generic" |
| 51 |
|
| 52 |
config OPENSBI_TEXT_START |
| 53 |
hex |
| 54 |
default 0x80000000 |
| 55 |
|
| 56 |
config OPENSBI_FW_DYNAMIC_BOOT_HART |
| 57 |
int |
| 58 |
default 1 |
| 59 |
help |
| 60 |
Choose the first U74 core as boot hart since |
| 61 |
hart 0 is the S7 which does not support Supervisor mode |
| 62 |
|
| 63 |
config RISCV_SOC_HAS_MENVCFG |
| 64 |
bool |
| 65 |
default n |
| 66 |
|
| 67 |
endif |