summaryrefslogtreecommitdiff
path: root/src/soc/ucb
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/ucb')
-rw-r--r--src/soc/ucb/riscv/Kconfig21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/soc/ucb/riscv/Kconfig b/src/soc/ucb/riscv/Kconfig
index aa352d932b..ad48c1cb76 100644
--- a/src/soc/ucb/riscv/Kconfig
+++ b/src/soc/ucb/riscv/Kconfig
@@ -1,5 +1,4 @@
config SOC_UCB_RISCV
- select ARCH_RISCV_RV64
select ARCH_RISCV_S
select ARCH_RISCV_U
select ARCH_RISCV_PMP
@@ -15,6 +14,8 @@ config SOC_UCB_RISCV
if SOC_UCB_RISCV
+if ARCH_RISCV_RV64
+
config RISCV_ARCH
string
default "rv64imafd"
@@ -27,6 +28,24 @@ config RISCV_CODEMODEL
string
default "medany"
+endif
+
+if ARCH_RISCV_RV32
+
+config RISCV_ARCH
+ string
+ default "rv32im"
+
+config RISCV_ABI
+ string
+ default "ilp32"
+
+config RISCV_CODEMODEL
+ string
+ default "medany"
+
+endif
+
config RISCV_WORKING_HARTID
int
default 0