blob: fd1f5f87b6309ec5b9bca888c43b35c6e1c70568 [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
Randolph6c9c5ba2023-09-25 17:24:51 +080011config TARGET_ANDES_AE350
12 bool "Support Andes ae350"
Rick Chen64d4ead2017-12-26 13:55:52 +080013
Padmarao Begari4216f342019-05-28 15:47:51 +053014config TARGET_MICROCHIP_ICICLE
15 bool "Support Microchip PolarFire-SoC Icicle Board"
16
Kongyang Liub64fc0e2024-01-28 15:05:25 +080017config TARGET_MILKV_DUO
18 bool "Support Milk-v Duo Board"
19
Samuel Hollandbd6a54c2023-10-31 00:32:12 -050020config TARGET_OPENPITON_RISCV64
21 bool "Support RISC-V cores on OpenPiton SoC"
22
Bin Meng8a8694d2018-09-26 06:55:21 -070023config TARGET_QEMU_VIRT
24 bool "Support QEMU Virt Board"
Ɓukasz Stelmach1b100e52024-03-28 10:58:24 +010025 select BOARD_LATE_INIT
Bin Meng8a8694d2018-09-26 06:55:21 -070026
Bin Menge9ead4a2021-03-17 11:10:58 +080027config TARGET_SIFIVE_UNLEASHED
28 bool "Support SiFive Unleashed Board"
Anup Patel7a167f22019-02-25 08:15:19 +000029
Green Wan2e5da522021-05-27 06:52:13 -070030config TARGET_SIFIVE_UNMATCHED
31 bool "Support SiFive Unmatched Board"
Tom Rini3ef67ae2021-08-26 11:47:59 -040032 select SYS_CACHE_SHIFT_6
Green Wan2e5da522021-05-27 06:52:13 -070033
Samuel Hollandbd6a54c2023-10-31 00:32:12 -050034config TARGET_SIPEED_MAIX
35 bool "Support Sipeed Maix Board"
36 select SYS_CACHE_SHIFT_6
37
Yanhong Wang38678792023-03-29 11:42:20 +080038config TARGET_STARFIVE_VISIONFIVE2
39 bool "Support StarFive VisionFive2 Board"
Heinrich Schuchardt03a885b2023-09-07 13:21:28 +020040 select BOARD_LATE_INIT
Yanhong Wang38678792023-03-29 11:42:20 +080041
Yixun Lan5dfa9012023-07-08 19:24:32 +080042config TARGET_TH1520_LPI4A
43 bool "Support Sipeed's TH1520 Lichee PI 4A Board"
44 select SYS_CACHE_SHIFT_6
45
Michal Simek962c10a2023-11-06 12:56:47 +010046config TARGET_XILINX_MBV
47 bool "Support AMD/Xilinx MicroBlaze V"
48
Rick Chen64d4ead2017-12-26 13:55:52 +080049endchoice
50
Trevor Woernerba64b8b2019-05-03 09:40:59 -040051config SYS_ICACHE_OFF
52 bool "Do not enable icache"
Trevor Woernerba64b8b2019-05-03 09:40:59 -040053 help
54 Do not enable instruction cache in U-Boot.
55
Trevor Woerner43ec7e02019-05-03 09:41:00 -040056config SPL_SYS_ICACHE_OFF
57 bool "Do not enable icache in SPL"
58 depends on SPL
59 default SYS_ICACHE_OFF
60 help
61 Do not enable instruction cache in SPL.
62
Trevor Woernerba64b8b2019-05-03 09:40:59 -040063config SYS_DCACHE_OFF
64 bool "Do not enable dcache"
Trevor Woernerba64b8b2019-05-03 09:40:59 -040065 help
66 Do not enable data cache in U-Boot.
67
Trevor Woerner43ec7e02019-05-03 09:41:00 -040068config SPL_SYS_DCACHE_OFF
69 bool "Do not enable dcache in SPL"
70 depends on SPL
71 default SYS_DCACHE_OFF
72 help
73 Do not enable data cache in SPL.
74
Shengyu Qud1a32542023-08-09 21:11:31 +080075config SPL_ZERO_MEM_BEFORE_USE
76 bool "Zero memory before use"
77 depends on SPL
Shengyu Qud1a32542023-08-09 21:11:31 +080078 help
79 Zero stack/GD/malloc area in SPL before using them, this is needed for
80 Sifive core devices that uses L2 cache to store SPL.
81
Rick Chen842d5802018-11-07 09:34:06 +080082# board-specific options below
Leo Yu-Chi Liang5d0bbea2024-05-14 17:50:11 +080083source "board/andestech/ae350/Kconfig"
Bin Meng8a8694d2018-09-26 06:55:21 -070084source "board/emulation/qemu-riscv/Kconfig"
Padmarao Begari4216f342019-05-28 15:47:51 +053085source "board/microchip/mpfs_icicle/Kconfig"
Samuel Hollandbd6a54c2023-10-31 00:32:12 -050086source "board/openpiton/riscv64/Kconfig"
Bin Menge9ead4a2021-03-17 11:10:58 +080087source "board/sifive/unleashed/Kconfig"
Green Wan2e5da522021-05-27 06:52:13 -070088source "board/sifive/unmatched/Kconfig"
Sean Andersonedc32ab2020-06-24 06:41:25 -040089source "board/sipeed/maix/Kconfig"
Kongyang Liub64fc0e2024-01-28 15:05:25 +080090source "board/sophgo/milkv_duo/Kconfig"
Yanhong Wang38678792023-03-29 11:42:20 +080091source "board/starfive/visionfive2/Kconfig"
Samuel Hollandbd6a54c2023-10-31 00:32:12 -050092source "board/thead/th1520_lpi4a/Kconfig"
Michal Simek962c10a2023-11-06 12:56:47 +010093source "board/xilinx/mbv/Kconfig"
Rick Chen64d4ead2017-12-26 13:55:52 +080094
Rick Chen842d5802018-11-07 09:34:06 +080095# platform-specific options below
Leo Yu-Chi Liang5d0bbea2024-05-14 17:50:11 +080096source "arch/riscv/cpu/andes/Kconfig"
Kongyang Liuf7526742024-03-10 00:54:56 +080097source "arch/riscv/cpu/cv1800b/Kconfig"
Pragnesh Patel25269c02020-05-29 11:33:34 +053098source "arch/riscv/cpu/fu540/Kconfig"
Green Wan7f337432021-05-27 06:52:07 -070099source "arch/riscv/cpu/fu740/Kconfig"
Anup Patel1240cd62019-02-25 08:14:10 +0000100source "arch/riscv/cpu/generic/Kconfig"
Yanhong Wang38678792023-03-29 11:42:20 +0800101source "arch/riscv/cpu/jh7110/Kconfig"
Rick Chen842d5802018-11-07 09:34:06 +0800102
103# architecture-specific options below
104
Rick Chen64d4ead2017-12-26 13:55:52 +0800105choice
Lukas Auer54ebfe72018-11-22 11:26:12 +0100106 prompt "Base ISA"
107 default ARCH_RV32I
Rick Chen64d4ead2017-12-26 13:55:52 +0800108
Lukas Auer54ebfe72018-11-22 11:26:12 +0100109config ARCH_RV32I
110 bool "RV32I"
Rick Chen64d4ead2017-12-26 13:55:52 +0800111 select 32BIT
112 help
Lukas Auer54ebfe72018-11-22 11:26:12 +0100113 Choose this option to target the RV32I base integer instruction set.
Rick Chen64d4ead2017-12-26 13:55:52 +0800114
Lukas Auer54ebfe72018-11-22 11:26:12 +0100115config ARCH_RV64I
116 bool "RV64I"
Rick Chen64d4ead2017-12-26 13:55:52 +0800117 select 64BIT
Lukas Auer7ab1df02018-11-22 11:26:13 +0100118 select PHYS_64BIT
Rick Chen64d4ead2017-12-26 13:55:52 +0800119 help
Lukas Auer54ebfe72018-11-22 11:26:12 +0100120 Choose this option to target the RV64I base integer instruction set.
Rick Chen64d4ead2017-12-26 13:55:52 +0800121
122endchoice
123
Ben Dooks8a813c12023-09-05 13:12:53 +0100124config FRAMEPOINTER
125 bool "Build with frame pointer for stack unwinding"
126 help
127 Choose this option to use the frame pointer so the stack can be
128 unwound if needed. This is useful for tracing where faults came
129 from as the source may be several functions back
130
131 If you say Y here, then the code size will be increased due to
132 having to store the fp.
133
134config SPL_FRAMEPOINTER
135 bool "Build SPL with frame pointer for stack unwinding"
Heinrich Schuchardt512d41c2024-08-11 11:51:09 +0200136 depends on SPL
Ben Dooks8a813c12023-09-05 13:12:53 +0100137 help
138 Choose this option to use the frame pointer so the stack can be
139 unwound if needed. This is useful for tracing where faults came
140 from as the source may be several functions back
141
142 If you say Y here, then the code size will be increased due to
143 having to store the fp.
144
Lukas Auerecc5d832018-12-12 06:12:23 -0800145choice
146 prompt "Code Model"
147 default CMODEL_MEDLOW
148
149config CMODEL_MEDLOW
150 bool "medium low code model"
151 help
152 U-Boot and its statically defined symbols must lie within a single 2 GiB
153 address range and must lie between absolute addresses -2 GiB and +2 GiB.
154
155config CMODEL_MEDANY
156 bool "medium any code model"
157 help
158 U-Boot and its statically defined symbols must be within any single 2 GiB
159 address range.
160
161endchoice
162
Anup Patel27881772018-12-12 06:12:29 -0800163choice
164 prompt "Run Mode"
165 default RISCV_MMODE
166
167config RISCV_MMODE
168 bool "Machine"
169 help
170 Choose this option to build U-Boot for RISC-V M-Mode.
171
172config RISCV_SMODE
173 bool "Supervisor"
Heinrich Schuchardt20964b62023-09-23 01:35:26 +0200174 imply DEBUG_UART
Anup Patel27881772018-12-12 06:12:29 -0800175 help
176 Choose this option to build U-Boot for RISC-V S-Mode.
177
178endchoice
179
Lukas Auer61346592019-08-21 21:14:43 +0200180choice
181 prompt "SPL Run Mode"
182 default SPL_RISCV_MMODE
183 depends on SPL
184
185config SPL_RISCV_MMODE
186 bool "Machine"
187 help
188 Choose this option to build U-Boot SPL for RISC-V M-Mode.
189
190config SPL_RISCV_SMODE
191 bool "Supervisor"
192 help
193 Choose this option to build U-Boot SPL for RISC-V S-Mode.
194
195endchoice
196
Lukas Auer002012f2018-11-22 11:26:14 +0100197config RISCV_ISA_C
198 bool "Emit compressed instructions"
199 default y
200 help
201 Adds "C" to the ISA subsets that the toolchain is allowed to emit
202 when building U-Boot, which results in compressed instructions in the
203 U-Boot binary.
204
Heinrich Schuchardtc66c9502022-10-12 14:59:51 +0200205config RISCV_ISA_F
206 bool "Standard extension for Single-Precision Floating Point"
207 default y
208 help
209 Adds "F" to the ISA string passed to the compiler.
210
211config RISCV_ISA_D
212 bool "Standard extension for Double-Precision Floating Point"
213 depends on RISCV_ISA_F
214 default y
215 help
216 Adds "D" to the ISA string passed to the compiler and changes the
217 riscv32 ABI from ilp32 to ilp32d and the riscv64 ABI from lp64 to
218 lp64d.
219
Yu Chien Peter Lin60814cb2023-08-09 18:49:30 +0800220config RISCV_ISA_ZBB
221 bool "Zbb extension support for bit manipulation instructions"
222 help
223 Adds ZBB extension (basic bit manipulation) to the ISA subsets
224 that the toolchain is allowed to emit when building U-Boot.
225 The Zbb extension provides instructions to accelerate a number
226 of bit-specific operations (count bit population, sign extending,
227 bitrotation, etc) and enables optimized string routines.
228
229menu "Use assembly optimized implementation of string routines"
230
231config USE_ARCH_STRLEN
232 bool "Use an assembly optimized implementation of strlen"
233 default y
234 depends on RISCV_ISA_ZBB
235 help
236 Enable the generation of an optimized version of strlen using
237 Zbb extension.
238
239config SPL_USE_ARCH_STRLEN
240 bool "Use an assembly optimized implementation of strlen for SPL"
241 default y if USE_ARCH_STRLEN
242 depends on RISCV_ISA_ZBB
243 depends on SPL
244 help
245 Enable the generation of an optimized version of strlen using
246 Zbb extension.
247
248config TPL_USE_ARCH_STRLEN
249 bool "Use an assembly optimized implementation of strlen for TPL"
250 default y if USE_ARCH_STRLEN
251 depends on RISCV_ISA_ZBB
252 depends on TPL
253 help
254 Enable the generation of an optimized version of strlen using
255 Zbb extension.
256
257config USE_ARCH_STRCMP
258 bool "Use an assembly optimized implementation of strcmp"
259 default y
260 depends on RISCV_ISA_ZBB
261 help
262 Enable the generation of an optimized version of strcmp using
263 Zbb extension.
264
265config SPL_USE_ARCH_STRCMP
266 bool "Use an assembly optimized implementation of strcmp for SPL"
267 default y if USE_ARCH_STRCMP
268 depends on RISCV_ISA_ZBB
269 depends on SPL
270 help
271 Enable the generation of an optimized version of strcmp using
272 Zbb extension.
273
274config TPL_USE_ARCH_STRCMP
275 bool "Use an assembly optimized implementation of strcmp for TPL"
276 default y if USE_ARCH_STRCMP
277 depends on RISCV_ISA_ZBB
278 depends on TPL
279 help
280 Enable the generation of an optimized version of strcmp using
281 Zbb extension.
282
283config USE_ARCH_STRNCMP
284 bool "Use an assembly optimized implementation of strncmp"
285 default y
286 depends on RISCV_ISA_ZBB
287 help
288 Enable the generation of an optimized version of strncmp using
289 Zbb extension.
290
291config SPL_USE_ARCH_STRNCMP
292 bool "Use an assembly optimized implementation of strncmp for SPL"
293 default y if USE_ARCH_STRNCMP
294 depends on RISCV_ISA_ZBB
295 depends on SPL
296 help
297 Enable the generation of an optimized version of strncmp using
298 Zbb extension.
299
300config TPL_USE_ARCH_STRNCMP
301 bool "Use an assembly optimized implementation of strncmp for TPL"
302 default y if USE_ARCH_STRNCMP
303 depends on RISCV_ISA_ZBB
304 depends on TPL
305 help
306 Enable the generation of an optimized version of strncmp using
307 Zbb extension.
308
309endmenu
310
Lukas Auer002012f2018-11-22 11:26:14 +0100311config RISCV_ISA_A
312 def_bool y
313
Padmarao Begaria235d432021-01-15 08:20:35 +0530314config DMA_ADDR_T_64BIT
315 bool
316 default y if 64BIT
317
Bin Mengb5f03722023-06-21 23:11:46 +0800318config RISCV_ACLINT
Bin Mengb6ee5e12018-12-12 06:12:30 -0800319 bool
Bin Meng614b1d82021-05-11 20:04:12 +0800320 depends on RISCV_MMODE
Bin Meng08b8d262023-06-21 23:11:45 +0800321 select REGMAP
322 select SYSCON
Bin Meng614b1d82021-05-11 20:04:12 +0800323 help
Bin Mengb5f03722023-06-21 23:11:46 +0800324 The RISC-V ACLINT block holds memory-mapped control and status registers
Bin Meng614b1d82021-05-11 20:04:12 +0800325 associated with software and timer interrupts.
326
Bin Mengb5f03722023-06-21 23:11:46 +0800327config SPL_RISCV_ACLINT
Bin Meng614b1d82021-05-11 20:04:12 +0800328 bool
329 depends on SPL_RISCV_MMODE
Bin Meng08b8d262023-06-21 23:11:45 +0800330 select SPL_REGMAP
331 select SPL_SYSCON
Bin Mengb6ee5e12018-12-12 06:12:30 -0800332 help
Bin Mengb5f03722023-06-21 23:11:46 +0800333 The RISC-V ACLINT block holds memory-mapped control and status registers
Bin Mengb6ee5e12018-12-12 06:12:30 -0800334 associated with software and timer interrupts.
335
Zong Lic39544c2021-09-01 15:01:41 +0800336config SIFIVE_CACHE
337 bool
338 help
339 This enables the operations to configure SiFive cache
340
Yu Chien Peter Lin739cd6f2022-10-25 23:03:50 +0800341config ANDES_PLICSW
Rick Chen6df4ed02019-04-02 15:56:39 +0800342 bool
Lukas Auer61346592019-08-21 21:14:43 +0200343 depends on RISCV_MMODE || SPL_RISCV_MMODE
Rick Chen6df4ed02019-04-02 15:56:39 +0800344 select REGMAP
345 select SYSCON
Lukas Auer61346592019-08-21 21:14:43 +0200346 select SPL_REGMAP if SPL
347 select SPL_SYSCON if SPL
Rick Chen6df4ed02019-04-02 15:56:39 +0800348 help
Yu Chien Peter Lin739cd6f2022-10-25 23:03:50 +0800349 The Andes PLICSW block holds memory-mapped claim and pending
350 registers associated with software interrupt.
Rick Chen6df4ed02019-04-02 15:56:39 +0800351
Lukas Auer83d573d2019-03-17 19:28:32 +0100352config SMP
353 bool "Symmetric Multi-Processing"
Bin Meng49975222020-04-16 08:09:31 -0700354 depends on SBI_V01 || !RISCV_SMODE
Lukas Auer83d573d2019-03-17 19:28:32 +0100355 help
356 This enables support for systems with more than one CPU. If
357 you say N here, U-Boot will run on single and multiprocessor
358 machines, but will use only one CPU of a multiprocessor
359 machine. If you say Y here, U-Boot will run on many, but not
360 all, single processor machines.
361
Bin Mengb161f902020-04-16 08:09:30 -0700362config SPL_SMP
363 bool "Symmetric Multi-Processing in SPL"
364 depends on SPL && SPL_RISCV_MMODE
365 default y
366 help
367 This enables support for systems with more than one CPU in SPL.
368 If you say N here, U-Boot SPL will run on single and multiprocessor
369 machines, but will use only one CPU of a multiprocessor
370 machine. If you say Y here, U-Boot SPL will run on many, but not
371 all, single processor machines.
372
Lukas Auer83d573d2019-03-17 19:28:32 +0100373config NR_CPUS
374 int "Maximum number of CPUs (2-32)"
375 range 2 32
Bin Mengb161f902020-04-16 08:09:30 -0700376 depends on SMP || SPL_SMP
Lukas Auer83d573d2019-03-17 19:28:32 +0100377 default 8
378 help
379 On multiprocessor machines, U-Boot sets up a stack for each CPU.
380 Stack memory is pre-allocated. U-Boot must therefore know the
381 maximum number of CPUs that may be present.
382
Bin Mengee3bcd02020-03-09 19:35:28 -0700383config SBI
384 bool
385 default y if RISCV_SMODE || SPL_RISCV_SMODE
386
Bin Menga75325e2020-04-16 08:09:32 -0700387choice
388 prompt "SBI support"
Bin Meng3aecc4b2020-04-16 08:09:33 -0700389 default SBI_V02
Bin Menga75325e2020-04-16 08:09:32 -0700390
Bin Meng887d8092020-03-09 19:35:30 -0700391config SBI_V01
392 bool "SBI v0.1 support"
Bin Meng887d8092020-03-09 19:35:30 -0700393 depends on SBI
394 help
395 This config allows kernel to use SBI v0.1 APIs. This will be
396 deprecated in future once legacy M-mode software are no longer in use.
397
Bin Menga75325e2020-04-16 08:09:32 -0700398config SBI_V02
Heinrich Schuchardt693baee2022-11-08 15:53:12 +0100399 bool "SBI v0.2 or later support"
Bin Menga75325e2020-04-16 08:09:32 -0700400 depends on SBI
401 help
Heinrich Schuchardt693baee2022-11-08 15:53:12 +0100402 The SBI specification introduced the concept of extensions in version
403 v0.2. With this configuration option U-Boot can detect and use SBI
404 extensions. With the HSM extension introduced in SBI 0.2, only a
405 single hart needs to boot and enter the operating system. The booting
406 hart can bring up secondary harts one by one afterwards.
Bin Menga75325e2020-04-16 08:09:32 -0700407
Heinrich Schuchardt693baee2022-11-08 15:53:12 +0100408 Choose this option if OpenSBI release v0.7 or above is used together
Bin Menga75325e2020-04-16 08:09:32 -0700409 with U-Boot.
410
411endchoice
412
Lukas Auere79178b2019-03-17 19:28:34 +0100413config SBI_IPI
414 bool
Bin Mengee3bcd02020-03-09 19:35:28 -0700415 depends on SBI
Lukas Auer61346592019-08-21 21:14:43 +0200416 default y if RISCV_SMODE || SPL_RISCV_SMODE
Lukas Auere79178b2019-03-17 19:28:34 +0100417 depends on SMP
418
Rick Chene5e6c362019-04-30 13:49:33 +0800419config XIP
420 bool "XIP mode"
421 help
422 XIP (eXecute In Place) is a method for executing code directly
423 from a NOR flash memory without copying the code to ram.
424 Say yes here if U-Boot boots from flash directly.
425
Nikita Shubin7e5e0292022-09-02 11:47:39 +0300426config SPL_XIP
427 bool "Enable XIP mode for SPL"
428 help
429 If SPL starts in read-only memory (XIP for example) then we shouldn't
430 rely on lock variables (for example hart_lottery and available_harts_lock),
431 this affects only SPL, other stages should proceed as non-XIP.
432
Rick Chen9c4d5c12022-09-21 14:34:54 +0800433config AVAILABLE_HARTS
434 bool "Send IPI by available harts"
435 default y
436 help
437 By default, IPI sending mechanism will depend on available_harts.
438 If disable this, it will send IPI by CPUs node numbers of device tree.
439
Sean Andersone8b46a12019-12-25 00:27:44 -0500440config SHOW_REGS
441 bool "Show registers on unhandled exception"
Heinrich Schuchardt99e92102024-08-11 13:01:03 +0200442 help
443 By default only the program counter and the return address register
444 are shown in crash dumps. Enable this symbol to show all registers in
445 main U-Boot.
446
447config SPL_SHOW_REGS
448 bool "In SPL show registers on unhandled exception"
449 depends on SPL
450 help
451 By default only the program counter and the return address register
452 are shown in crash dumps. Enable this symbol to show all registers in
453 SPL.
Sean Andersone8b46a12019-12-25 00:27:44 -0500454
Sean Anderson7f4b6662020-06-24 06:41:19 -0400455config RISCV_PRIV_1_9
456 bool "Use version 1.9 of the RISC-V priviledged specification"
457 help
458 Older versions of the RISC-V priviledged specification had
459 separate counter enable CSRs for each privilege mode. Writing
460 to the unified mcounteren CSR on a processor implementing the
461 old specification will result in an illegal instruction
462 exception. In addition to counter CSR changes, the way virtual
463 memory is configured was also changed.
464
Lukas Auera3596652019-03-17 19:28:37 +0100465config STACK_SIZE_SHIFT
466 int
Lukas Auer03813702019-10-20 20:53:47 +0200467 default 14
Lukas Auera3596652019-03-17 19:28:37 +0100468
Bin Meng2bdcd052020-06-25 18:16:08 -0700469config OF_BOARD_FIXUP
Sean Anderson584a5ee2020-09-05 09:22:11 -0400470 default y if OF_SEPARATE && RISCV_SMODE
Bin Meng2bdcd052020-06-25 18:16:08 -0700471
Bin Mengce64bd32021-05-13 16:46:18 +0800472menu "Use assembly optimized implementation of memory routines"
473
Heinrich Schuchardt23caf662021-03-27 12:37:04 +0100474config USE_ARCH_MEMCPY
475 bool "Use an assembly optimized implementation of memcpy"
476 default y
477 help
478 Enable the generation of an optimized version of memcpy.
479 Such an implementation may be faster under some conditions
480 but may increase the binary size.
481
482config SPL_USE_ARCH_MEMCPY
483 bool "Use an assembly optimized implementation of memcpy for SPL"
484 default y if USE_ARCH_MEMCPY
485 depends on SPL
486 help
487 Enable the generation of an optimized version of memcpy.
488 Such an implementation may be faster under some conditions
489 but may increase the binary size.
490
491config TPL_USE_ARCH_MEMCPY
492 bool "Use an assembly optimized implementation of memcpy for TPL"
493 default y if USE_ARCH_MEMCPY
494 depends on TPL
495 help
496 Enable the generation of an optimized version of memcpy.
497 Such an implementation may be faster under some conditions
498 but may increase the binary size.
499
500config USE_ARCH_MEMMOVE
501 bool "Use an assembly optimized implementation of memmove"
502 default y
503 help
504 Enable the generation of an optimized version of memmove.
505 Such an implementation may be faster under some conditions
506 but may increase the binary size.
507
508config SPL_USE_ARCH_MEMMOVE
509 bool "Use an assembly optimized implementation of memmove for SPL"
510 default y if USE_ARCH_MEMCPY
511 depends on SPL
512 help
513 Enable the generation of an optimized version of memmove.
514 Such an implementation may be faster under some conditions
515 but may increase the binary size.
516
517config TPL_USE_ARCH_MEMMOVE
518 bool "Use an assembly optimized implementation of memmove for TPL"
519 default y if USE_ARCH_MEMCPY
520 depends on TPL
521 help
522 Enable the generation of an optimized version of memmove.
523 Such an implementation may be faster under some conditions
524 but may increase the binary size.
525
526config USE_ARCH_MEMSET
527 bool "Use an assembly optimized implementation of memset"
528 default y
529 help
530 Enable the generation of an optimized version of memset.
531 Such an implementation may be faster under some conditions
532 but may increase the binary size.
533
534config SPL_USE_ARCH_MEMSET
535 bool "Use an assembly optimized implementation of memset for SPL"
536 default y if USE_ARCH_MEMSET
537 depends on SPL
538 help
539 Enable the generation of an optimized version of memset.
540 Such an implementation may be faster under some conditions
541 but may increase the binary size.
542
543config TPL_USE_ARCH_MEMSET
544 bool "Use an assembly optimized implementation of memset for TPL"
545 default y if USE_ARCH_MEMSET
546 depends on TPL
547 help
548 Enable the generation of an optimized version of memset.
549 Such an implementation may be faster under some conditions
550 but may increase the binary size.
551
Rick Chen64d4ead2017-12-26 13:55:52 +0800552endmenu
Bin Mengce64bd32021-05-13 16:46:18 +0800553
Randolphb1bc7a72023-10-12 14:35:04 +0800554config SPL_LOAD_FIT_OPENSBI_OS_BOOT
555 bool "Enable SPL (OpenSBI OS boot mode) applying linux from FIT"
556 depends on SPL_LOAD_FIT
557 help
558 Use fw_dynamic from the FIT image, and u-boot SPL will invoke it directly.
559 This is a shortcut boot flow, from u-boot SPL -> OpenSBI -> u-boot proper
560 -> linux to u-boot SPL -> OpenSBI -> linux.
561
Bin Mengce64bd32021-05-13 16:46:18 +0800562endmenu