Bin Meng | 117a433 | 2018-09-26 06:55:06 -0700 | [diff] [blame] | 1 | menu "RISC-V architecture" |
Rick Chen | f94c44e | 2017-12-26 13:55:52 +0800 | [diff] [blame] | 2 | depends on RISCV |
| 3 | |
| 4 | config SYS_ARCH |
| 5 | default "riscv" |
| 6 | |
| 7 | choice |
| 8 | prompt "Target select" |
| 9 | optional |
| 10 | |
Rick Chen | 6f4dd62 | 2018-05-29 09:54:40 +0800 | [diff] [blame] | 11 | config TARGET_AX25_AE350 |
| 12 | bool "Support ax25-ae350" |
Rick Chen | f94c44e | 2017-12-26 13:55:52 +0800 | [diff] [blame] | 13 | |
Bin Meng | 510e379 | 2018-09-26 06:55:21 -0700 | [diff] [blame] | 14 | config TARGET_QEMU_VIRT |
| 15 | bool "Support QEMU Virt Board" |
| 16 | |
Anup Patel | 3fda026 | 2019-02-25 08:15:19 +0000 | [diff] [blame] | 17 | config TARGET_SIFIVE_FU540 |
| 18 | bool "Support SiFive FU540 Board" |
| 19 | |
Rick Chen | f94c44e | 2017-12-26 13:55:52 +0800 | [diff] [blame] | 20 | endchoice |
| 21 | |
Trevor Woerner | a0aba8a | 2019-05-03 09:40:59 -0400 | [diff] [blame^] | 22 | config SYS_ICACHE_OFF |
| 23 | bool "Do not enable icache" |
| 24 | default n |
| 25 | help |
| 26 | Do not enable instruction cache in U-Boot. |
| 27 | |
| 28 | config SYS_DCACHE_OFF |
| 29 | bool "Do not enable dcache" |
| 30 | default n |
| 31 | help |
| 32 | Do not enable data cache in U-Boot. |
| 33 | |
Rick Chen | 52923c6 | 2018-11-07 09:34:06 +0800 | [diff] [blame] | 34 | # board-specific options below |
Rick Chen | 6f4dd62 | 2018-05-29 09:54:40 +0800 | [diff] [blame] | 35 | source "board/AndesTech/ax25-ae350/Kconfig" |
Bin Meng | 510e379 | 2018-09-26 06:55:21 -0700 | [diff] [blame] | 36 | source "board/emulation/qemu-riscv/Kconfig" |
Anup Patel | 3fda026 | 2019-02-25 08:15:19 +0000 | [diff] [blame] | 37 | source "board/sifive/fu540/Kconfig" |
Rick Chen | f94c44e | 2017-12-26 13:55:52 +0800 | [diff] [blame] | 38 | |
Rick Chen | 52923c6 | 2018-11-07 09:34:06 +0800 | [diff] [blame] | 39 | # platform-specific options below |
| 40 | source "arch/riscv/cpu/ax25/Kconfig" |
Anup Patel | fdff1f9 | 2019-02-25 08:14:10 +0000 | [diff] [blame] | 41 | source "arch/riscv/cpu/generic/Kconfig" |
Rick Chen | 52923c6 | 2018-11-07 09:34:06 +0800 | [diff] [blame] | 42 | |
| 43 | # architecture-specific options below |
| 44 | |
Rick Chen | f94c44e | 2017-12-26 13:55:52 +0800 | [diff] [blame] | 45 | choice |
Lukas Auer | 862e2e7 | 2018-11-22 11:26:12 +0100 | [diff] [blame] | 46 | prompt "Base ISA" |
| 47 | default ARCH_RV32I |
Rick Chen | f94c44e | 2017-12-26 13:55:52 +0800 | [diff] [blame] | 48 | |
Lukas Auer | 862e2e7 | 2018-11-22 11:26:12 +0100 | [diff] [blame] | 49 | config ARCH_RV32I |
| 50 | bool "RV32I" |
Rick Chen | f94c44e | 2017-12-26 13:55:52 +0800 | [diff] [blame] | 51 | select 32BIT |
| 52 | help |
Lukas Auer | 862e2e7 | 2018-11-22 11:26:12 +0100 | [diff] [blame] | 53 | Choose this option to target the RV32I base integer instruction set. |
Rick Chen | f94c44e | 2017-12-26 13:55:52 +0800 | [diff] [blame] | 54 | |
Lukas Auer | 862e2e7 | 2018-11-22 11:26:12 +0100 | [diff] [blame] | 55 | config ARCH_RV64I |
| 56 | bool "RV64I" |
Rick Chen | f94c44e | 2017-12-26 13:55:52 +0800 | [diff] [blame] | 57 | select 64BIT |
Lukas Auer | 7115856 | 2018-11-22 11:26:13 +0100 | [diff] [blame] | 58 | select PHYS_64BIT |
Rick Chen | f94c44e | 2017-12-26 13:55:52 +0800 | [diff] [blame] | 59 | help |
Lukas Auer | 862e2e7 | 2018-11-22 11:26:12 +0100 | [diff] [blame] | 60 | Choose this option to target the RV64I base integer instruction set. |
Rick Chen | f94c44e | 2017-12-26 13:55:52 +0800 | [diff] [blame] | 61 | |
| 62 | endchoice |
| 63 | |
Lukas Auer | 8176ea4 | 2018-12-12 06:12:23 -0800 | [diff] [blame] | 64 | choice |
| 65 | prompt "Code Model" |
| 66 | default CMODEL_MEDLOW |
| 67 | |
| 68 | config CMODEL_MEDLOW |
| 69 | bool "medium low code model" |
| 70 | help |
| 71 | U-Boot and its statically defined symbols must lie within a single 2 GiB |
| 72 | address range and must lie between absolute addresses -2 GiB and +2 GiB. |
| 73 | |
| 74 | config CMODEL_MEDANY |
| 75 | bool "medium any code model" |
| 76 | help |
| 77 | U-Boot and its statically defined symbols must be within any single 2 GiB |
| 78 | address range. |
| 79 | |
| 80 | endchoice |
| 81 | |
Anup Patel | 3cfc825 | 2018-12-12 06:12:29 -0800 | [diff] [blame] | 82 | choice |
| 83 | prompt "Run Mode" |
| 84 | default RISCV_MMODE |
| 85 | |
| 86 | config RISCV_MMODE |
| 87 | bool "Machine" |
| 88 | help |
| 89 | Choose this option to build U-Boot for RISC-V M-Mode. |
| 90 | |
| 91 | config RISCV_SMODE |
| 92 | bool "Supervisor" |
| 93 | help |
| 94 | Choose this option to build U-Boot for RISC-V S-Mode. |
| 95 | |
| 96 | endchoice |
| 97 | |
Lukas Auer | d57ffa6 | 2018-11-22 11:26:14 +0100 | [diff] [blame] | 98 | config RISCV_ISA_C |
| 99 | bool "Emit compressed instructions" |
| 100 | default y |
| 101 | help |
| 102 | Adds "C" to the ISA subsets that the toolchain is allowed to emit |
| 103 | when building U-Boot, which results in compressed instructions in the |
| 104 | U-Boot binary. |
| 105 | |
| 106 | config RISCV_ISA_A |
| 107 | def_bool y |
| 108 | |
Rick Chen | f94c44e | 2017-12-26 13:55:52 +0800 | [diff] [blame] | 109 | config 32BIT |
| 110 | bool |
| 111 | |
| 112 | config 64BIT |
| 113 | bool |
| 114 | |
Bin Meng | 644a3cd | 2018-12-12 06:12:30 -0800 | [diff] [blame] | 115 | config SIFIVE_CLINT |
| 116 | bool |
| 117 | depends on RISCV_MMODE |
| 118 | select REGMAP |
| 119 | select SYSCON |
| 120 | help |
| 121 | The SiFive CLINT block holds memory-mapped control and status registers |
| 122 | associated with software and timer interrupts. |
| 123 | |
Rick Chen | 0d38946 | 2019-04-02 15:56:39 +0800 | [diff] [blame] | 124 | config ANDES_PLIC |
| 125 | bool |
| 126 | depends on RISCV_MMODE |
| 127 | select REGMAP |
| 128 | select SYSCON |
| 129 | help |
| 130 | The Andes PLIC block holds memory-mapped claim and pending registers |
| 131 | associated with software interrupt. |
| 132 | |
Rick Chen | a1f2487 | 2019-04-02 15:56:40 +0800 | [diff] [blame] | 133 | config ANDES_PLMT |
| 134 | bool |
| 135 | depends on RISCV_MMODE |
| 136 | select REGMAP |
| 137 | select SYSCON |
| 138 | help |
| 139 | The Andes PLMT block holds memory-mapped mtime register |
| 140 | associated with timer tick. |
| 141 | |
Anup Patel | 511107d | 2018-12-12 06:12:31 -0800 | [diff] [blame] | 142 | config RISCV_RDTIME |
| 143 | bool |
| 144 | default y if RISCV_SMODE |
| 145 | help |
| 146 | The provides the riscv_get_time() API that is implemented using the |
| 147 | standard rdtime instruction. This is the case for S-mode U-Boot, and |
| 148 | is useful for processors that support rdtime in M-mode too. |
| 149 | |
Bin Meng | 92b64fe | 2018-12-12 06:12:33 -0800 | [diff] [blame] | 150 | config SYS_MALLOC_F_LEN |
| 151 | default 0x1000 |
| 152 | |
Lukas Auer | fa33f08 | 2019-03-17 19:28:32 +0100 | [diff] [blame] | 153 | config SMP |
| 154 | bool "Symmetric Multi-Processing" |
| 155 | help |
| 156 | This enables support for systems with more than one CPU. If |
| 157 | you say N here, U-Boot will run on single and multiprocessor |
| 158 | machines, but will use only one CPU of a multiprocessor |
| 159 | machine. If you say Y here, U-Boot will run on many, but not |
| 160 | all, single processor machines. |
| 161 | |
| 162 | config NR_CPUS |
| 163 | int "Maximum number of CPUs (2-32)" |
| 164 | range 2 32 |
| 165 | depends on SMP |
| 166 | default 8 |
| 167 | help |
| 168 | On multiprocessor machines, U-Boot sets up a stack for each CPU. |
| 169 | Stack memory is pre-allocated. U-Boot must therefore know the |
| 170 | maximum number of CPUs that may be present. |
| 171 | |
Lukas Auer | f152feb | 2019-03-17 19:28:34 +0100 | [diff] [blame] | 172 | config SBI_IPI |
| 173 | bool |
| 174 | default y if RISCV_SMODE |
| 175 | depends on SMP |
| 176 | |
Rick Chen | bdce389 | 2019-04-30 13:49:33 +0800 | [diff] [blame] | 177 | config XIP |
| 178 | bool "XIP mode" |
| 179 | help |
| 180 | XIP (eXecute In Place) is a method for executing code directly |
| 181 | from a NOR flash memory without copying the code to ram. |
| 182 | Say yes here if U-Boot boots from flash directly. |
| 183 | |
Lukas Auer | 3dea63c | 2019-03-17 19:28:37 +0100 | [diff] [blame] | 184 | config STACK_SIZE_SHIFT |
| 185 | int |
| 186 | default 13 |
| 187 | |
Rick Chen | f94c44e | 2017-12-26 13:55:52 +0800 | [diff] [blame] | 188 | endmenu |