blob: 732a357a99b93682eb71fbbada1e31dff8ba7dda [file] [log] [blame]
Bin Meng6b697752018-09-26 06:55:06 -07001menu "RISC-V architecture"
Rick Chen64d4ead2017-12-26 13:55:52 +08002 depends on RISCV
3
4config SYS_ARCH
5 default "riscv"
6
7choice
8 prompt "Target select"
9 optional
10
Rick Chenb66af372018-05-29 09:54:40 +080011config TARGET_AX25_AE350
12 bool "Support ax25-ae350"
Rick Chen64d4ead2017-12-26 13:55:52 +080013
Bin Meng8a8694d2018-09-26 06:55:21 -070014config TARGET_QEMU_VIRT
15 bool "Support QEMU Virt Board"
16
Rick Chen64d4ead2017-12-26 13:55:52 +080017endchoice
18
Rick Chen842d5802018-11-07 09:34:06 +080019# board-specific options below
Rick Chenb66af372018-05-29 09:54:40 +080020source "board/AndesTech/ax25-ae350/Kconfig"
Bin Meng8a8694d2018-09-26 06:55:21 -070021source "board/emulation/qemu-riscv/Kconfig"
Rick Chen64d4ead2017-12-26 13:55:52 +080022
Rick Chen842d5802018-11-07 09:34:06 +080023# platform-specific options below
24source "arch/riscv/cpu/ax25/Kconfig"
25
26# architecture-specific options below
27
Rick Chen64d4ead2017-12-26 13:55:52 +080028choice
Lukas Auer54ebfe72018-11-22 11:26:12 +010029 prompt "Base ISA"
30 default ARCH_RV32I
Rick Chen64d4ead2017-12-26 13:55:52 +080031
Lukas Auer54ebfe72018-11-22 11:26:12 +010032config ARCH_RV32I
33 bool "RV32I"
Rick Chen64d4ead2017-12-26 13:55:52 +080034 select 32BIT
35 help
Lukas Auer54ebfe72018-11-22 11:26:12 +010036 Choose this option to target the RV32I base integer instruction set.
Rick Chen64d4ead2017-12-26 13:55:52 +080037
Lukas Auer54ebfe72018-11-22 11:26:12 +010038config ARCH_RV64I
39 bool "RV64I"
Rick Chen64d4ead2017-12-26 13:55:52 +080040 select 64BIT
Lukas Auer7ab1df02018-11-22 11:26:13 +010041 select PHYS_64BIT
Rick Chen64d4ead2017-12-26 13:55:52 +080042 help
Lukas Auer54ebfe72018-11-22 11:26:12 +010043 Choose this option to target the RV64I base integer instruction set.
Rick Chen64d4ead2017-12-26 13:55:52 +080044
45endchoice
46
Lukas Auer002012f2018-11-22 11:26:14 +010047config RISCV_ISA_C
48 bool "Emit compressed instructions"
49 default y
50 help
51 Adds "C" to the ISA subsets that the toolchain is allowed to emit
52 when building U-Boot, which results in compressed instructions in the
53 U-Boot binary.
54
55config RISCV_ISA_A
56 def_bool y
57
Anup Patel89b39342018-12-03 10:57:40 +053058config RISCV_SMODE
59 bool "Run in S-Mode"
60 help
61 Enable this option to build U-Boot for RISC-V S-Mode
62
Rick Chen64d4ead2017-12-26 13:55:52 +080063config 32BIT
64 bool
65
66config 64BIT
67 bool
68
69endmenu