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