blob: 0de77a75d7b8f4ee222baf3b9c752d573d08ac49 [file] [log] [blame]
Bin Meng117a4332018-09-26 06:55:06 -07001menu "RISC-V architecture"
Rick Chenf94c44e2017-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 Chen6f4dd622018-05-29 09:54:40 +080011config TARGET_AX25_AE350
12 bool "Support ax25-ae350"
Rick Chenf94c44e2017-12-26 13:55:52 +080013
Bin Meng510e3792018-09-26 06:55:21 -070014config TARGET_QEMU_VIRT
15 bool "Support QEMU Virt Board"
16
Rick Chenf94c44e2017-12-26 13:55:52 +080017endchoice
18
Rick Chen6f4dd622018-05-29 09:54:40 +080019source "board/AndesTech/ax25-ae350/Kconfig"
Bin Meng510e3792018-09-26 06:55:21 -070020source "board/emulation/qemu-riscv/Kconfig"
Rick Chenf94c44e2017-12-26 13:55:52 +080021
22choice
Lukas Auer862e2e72018-11-22 11:26:12 +010023 prompt "Base ISA"
24 default ARCH_RV32I
Rick Chenf94c44e2017-12-26 13:55:52 +080025
Lukas Auer862e2e72018-11-22 11:26:12 +010026config ARCH_RV32I
27 bool "RV32I"
Rick Chenf94c44e2017-12-26 13:55:52 +080028 select 32BIT
29 help
Lukas Auer862e2e72018-11-22 11:26:12 +010030 Choose this option to target the RV32I base integer instruction set.
Rick Chenf94c44e2017-12-26 13:55:52 +080031
Lukas Auer862e2e72018-11-22 11:26:12 +010032config ARCH_RV64I
33 bool "RV64I"
Rick Chenf94c44e2017-12-26 13:55:52 +080034 select 64BIT
Lukas Auer71158562018-11-22 11:26:13 +010035 select PHYS_64BIT
Rick Chenf94c44e2017-12-26 13:55:52 +080036 help
Lukas Auer862e2e72018-11-22 11:26:12 +010037 Choose this option to target the RV64I base integer instruction set.
Rick Chenf94c44e2017-12-26 13:55:52 +080038
39endchoice
40
Lukas Auerd57ffa62018-11-22 11:26:14 +010041config RISCV_ISA_C
42 bool "Emit compressed instructions"
43 default y
44 help
45 Adds "C" to the ISA subsets that the toolchain is allowed to emit
46 when building U-Boot, which results in compressed instructions in the
47 U-Boot binary.
48
49config RISCV_ISA_A
50 def_bool y
51
Rick Chenf94c44e2017-12-26 13:55:52 +080052config 32BIT
53 bool
54
55config 64BIT
56 bool
57
58endmenu