]> git.ipfire.org Git - thirdparty/u-boot.git/blame - arch/Kconfig
sandbox: move sandbox specifics to booti_setup()
[thirdparty/u-boot.git] / arch / Kconfig
CommitLineData
ba1ed5b0 1config ARCH_MAP_SYSMEM
11232139 2 depends on SANDBOX
ba1ed5b0
TR
3 def_bool y
4
a350c6a6
MY
5config CREATE_ARCH_SYMLINK
6 bool
7
9a387128
MY
8config HAVE_ARCH_IOREMAP
9 bool
10
ab92b38a
TR
11config SYS_CACHE_SHIFT_4
12 bool
13
14config SYS_CACHE_SHIFT_5
15 bool
16
17config SYS_CACHE_SHIFT_6
18 bool
19
20config SYS_CACHE_SHIFT_7
21 bool
22
24c4ac84
DC
23config 32BIT
24 bool
25
26config 64BIT
27 bool
28
ab92b38a
TR
29config SYS_CACHELINE_SIZE
30 int
31 default 128 if SYS_CACHE_SHIFT_7
32 default 64 if SYS_CACHE_SHIFT_6
33 default 32 if SYS_CACHE_SHIFT_5
34 default 16 if SYS_CACHE_SHIFT_4
35 # Fall-back for MIPS
36 default 32 if MIPS
37
0b2fa98a
SG
38config LINKER_LIST_ALIGN
39 int
40 default 32 if SANDBOX
41 default 8 if ARM64 || X86
42 default 4
43 help
44 Force the each linker list to be aligned to this boundary. This
45 is required if ll_entry_get() is used, since otherwise the linker
46 may add padding into the table, thus breaking it.
47 See linker_lists.rst for full details.
48
51631259
MY
49choice
50 prompt "Architecture select"
51 default SANDBOX
52
53config ARC
54 bool "ARC architecture"
5ed063d1 55 select ARC_TIMER
3daa7c7b 56 select CLK
7b56432c 57 select DM
5ed063d1
MS
58 select HAVE_PRIVATE_LIBGCC
59 select SUPPORT_OF_CONTROL
ab92b38a 60 select SYS_CACHE_SHIFT_7
3daa7c7b 61 select TIMER
83505a7e
TR
62 select SYS_BIG_ENDIAN if CPU_BIG_ENDIAN
63 select SYS_LITTLE_ENDIAN if !CPU_BIG_ENDIAN
51631259
MY
64
65config ARM
66 bool "ARM architecture"
8f969651 67 select ARCH_SUPPORTS_LTO
a350c6a6 68 select CREATE_ARCH_SYMLINK
64b77ed2 69 select HAVE_PRIVATE_LIBGCC if !ARM64
01537235 70 select SUPPORT_ACPI
783e6a72 71 select SUPPORT_OF_CONTROL
51631259 72
51631259
MY
73config M68K
74 bool "M68000 architecture"
6463fd8f 75 select HAVE_PRIVATE_LIBGCC
1e48392e 76 select USE_PRIVATE_LIBGCC
405fc830
DW
77 select SYS_BOOT_GET_CMDLINE
78 select SYS_BOOT_GET_KBD
ab92b38a 79 select SYS_CACHE_SHIFT_4
abe0f879 80 select SUPPORT_OF_CONTROL
51631259
MY
81
82config MICROBLAZE
83 bool "MicroBlaze architecture"
783e6a72 84 select SUPPORT_OF_CONTROL
a36d8672
MS
85 imply CMD_TIMER
86 imply SPL_REGMAP if SPL
87 imply SPL_TIMER if SPL
88 imply TIMER
89 imply XILINX_TIMER
51631259
MY
90
91config MIPS
92 bool "MIPS architecture"
9a387128 93 select HAVE_ARCH_IOREMAP
45ccec8f 94 select HAVE_PRIVATE_LIBGCC
0fc13a90 95 select SUPPORT_OF_CONTROL
1dd56db5 96 select SPL_SEPARATE_BSS if SPL
51631259 97
51631259
MY
98config NIOS2
99 bool "Nios II architecture"
bcae80e9 100 select CPU
5ed063d1 101 select DM
448e2b63 102 select DM_EVENT
5ed063d1
MS
103 select OF_CONTROL
104 select SUPPORT_OF_CONTROL
08a00cba 105 imply CMD_DM
51631259 106
51631259
MY
107config PPC
108 bool "PowerPC architecture"
45ccec8f 109 select HAVE_PRIVATE_LIBGCC
c1c61573 110 select SUPPORT_OF_CONTROL
405fc830
DW
111 select SYS_BOOT_GET_CMDLINE
112 select SYS_BOOT_GET_KBD
51631259 113
068feb9b 114config RISCV
117a433d 115 bool "RISC-V architecture"
7c8d210b 116 select CREATE_ARCH_SYMLINK
b17e280b 117 select SUPPORT_ACPI
068feb9b 118 select SUPPORT_OF_CONTROL
bf6cc82c
BM
119 select OF_CONTROL
120 select DM
448e2b63 121 select DM_EVENT
57b9900c 122 imply SPL_SEPARATE_BSS if SPL
cd1f45c2 123 imply DM_SERIAL
cd1f45c2
BM
124 imply DM_MMC
125 imply DM_SPI
126 imply DM_SPI_FLASH
127 imply BLK
128 imply CLK
129 imply MTD
130 imply TIMER
bf6cc82c 131 imply CMD_DM
8c59f202
LA
132 imply SPL_DM
133 imply SPL_OF_CONTROL
134 imply SPL_LIBCOMMON_SUPPORT
135 imply SPL_LIBGENERIC_SUPPORT
2a736066 136 imply SPL_SERIAL
8c59f202 137 imply SPL_TIMER
068feb9b 138
51631259
MY
139config SANDBOX
140 bool "Sandbox"
94bb891e 141 select ARCH_SUPPORTS_LTO
e5ec4815 142 select BOARD_LATE_INIT
efc06448 143 select BZIP2
512369a7 144 select CMD_POWEROFF if CMDLINE
58d423b8 145 select DM
448e2b63 146 select DM_EVENT
0518e7a2 147 select DM_FUZZING_ENGINE
5ed063d1
MS
148 select DM_GPIO
149 select DM_I2C
558e1257 150 select DM_KEYBOARD
5ed063d1 151 select DM_MMC
58d423b8 152 select DM_SERIAL
58d423b8 153 select DM_SPI
5ed063d1 154 select DM_SPI_FLASH
efc06448 155 select GZIP_COMPRESSED
68e54040 156 select IO_TRACE
d56b4b19 157 select LZO
db04ff42 158 select MTD
1c0bc80a 159 select OF_BOARD_SETUP
bb413337 160 select PCI_ENDPOINT
5ed063d1
MS
161 select SPI
162 select SUPPORT_OF_CONTROL
512369a7 163 select SYSRESET_CMD_POWEROFF if CMD_POWEROFF
ab92b38a 164 select SYS_CACHE_SHIFT_4
57c675d6 165 select IRQ
512369a7 166 select SUPPORT_EXTENSION_SCAN if CMDLINE
e1722fcb 167 select SUPPORT_ACPI
0f1caa98 168 imply BITREVERSE
919e7a8f 169 select BLOBLIST
1b457e75 170 imply LTO
08a00cba 171 imply CMD_DM
6ca5ff3f 172 imply CMD_EXCEPTION
ded48cdc 173 imply CMD_GETTIME
551c3934 174 imply CMD_HASH
594e8d1c 175 imply CMD_IO
7d0f5c13 176 imply CMD_IOTRACE
ee7c0e71 177 imply CMD_LZMADEC
a4298dda 178 imply CMD_SF
5ed063d1 179 imply CMD_SF_TEST
91d27a17
TR
180 imply CRC32_VERIFY
181 imply FAT_WRITE
31b8217e 182 imply FIRMWARE
0518e7a2 183 imply FUZZING_ENGINE_SANDBOX
221a949e 184 imply HASH_VERIFY
91d27a17 185 imply LZMA
fe39e8e0 186 imply TEE
0a60a81b
JW
187 imply AVB_VERIFY
188 imply LIBAVB
189 imply CMD_AVB
d3adee1d 190 imply PARTITION_TYPE_GUID
7c591a84
IO
191 imply SCP03
192 imply CMD_SCP03
0a60a81b 193 imply UDP_FUNCTION_FASTBOOT
4f89d494
BM
194 imply VIRTIO_MMIO
195 imply VIRTIO_PCI
196 imply VIRTIO_SANDBOX
197 imply VIRTIO_BLK
198 imply VIRTIO_NET
2a049572 199 imply DM_SOUND
bb413337 200 imply PCI_SANDBOX_EP
c882163b 201 imply PCH
ec9594a5
AM
202 imply PHYLIB
203 imply DM_MDIO
c3d9f3f8 204 imply DM_MDIO_MUX
0992a90d 205 imply ACPI
3b65ee34
SG
206 imply ACPI_PMC
207 imply ACPI_PMC_SANDBOX
208 imply CMD_PMC
4a4830cf 209 imply CMD_CLONE
f158ba15 210 imply SILENT_CONSOLE
51bb3384 211 imply BOOTARGS_SUBST
ff98da06
CM
212 imply PHY_FIXED
213 imply DM_DSA
95300f20 214 imply CMD_EXTENSION
93e1edff 215 imply KEYBOARD
6405ab7a 216 imply PHYSMEM
437992d3 217 imply GENERATE_ACPI_TABLE
059df562 218 imply BINMAN
04291ee0
AG
219 imply CMD_MBR
220 imply CMD_MMC
909b15ca
SG
221 imply BOOTSTD_DEFAULTS if BOOTSTD_FULL && CMDLINE
222 imply BOOTMETH_DISTRO if BOOTSTD_FULL && CMDLINE
223 imply CMD_SYSBOOT if BOOTSTD_FULL
51631259
MY
224
225config SH
226 bool "SuperH architecture"
45ccec8f 227 select HAVE_PRIVATE_LIBGCC
8c2c4635 228 select SUPPORT_OF_CONTROL
51631259 229
51631259
MY
230config X86
231 bool "x86 architecture"
98987902
SG
232 select SUPPORT_SPL
233 select SUPPORT_TPL
a350c6a6 234 select CREATE_ARCH_SYMLINK
58d423b8 235 select DM
3bf9a8e8 236 select HAVE_ARCH_IOMAP
5ed063d1
MS
237 select HAVE_PRIVATE_LIBGCC
238 select OF_CONTROL
4f0faacb 239 select PCI
e1722fcb 240 select SUPPORT_ACPI
5ed063d1 241 select SUPPORT_OF_CONTROL
ab92b38a 242 select SYS_CACHE_SHIFT_6
0ce9c576 243 select TIMER
5ed063d1 244 select USE_PRIVATE_LIBGCC
0ce9c576 245 select X86_TSC_TIMER
543d091e 246 select IRQ
bcd4e6f3 247 imply HAS_ROM if X86_RESET_VECTOR
24357dfd 248 imply BLK
08a00cba 249 imply CMD_DM
5ed063d1
MS
250 imply CMD_FPGA_LOADMK
251 imply CMD_GETTIME
252 imply CMD_IO
253 imply CMD_IRQ
254 imply CMD_PCI
a4298dda 255 imply CMD_SF
5ed063d1 256 imply CMD_SF_TEST
4f0faacb
BM
257 imply DM_GPIO
258 imply DM_KEYBOARD
b7c6baef 259 imply DM_MMC
4f0faacb 260 imply DM_RTC
b630f8b3 261 imply SCSI
5ed063d1 262 imply DM_SERIAL
db04ff42 263 imply MTD
4f0faacb
BM
264 imply DM_SPI
265 imply DM_SPI_FLASH
266 imply DM_USB
91caa3bb 267 imply LAST_STAGE_INIT
b86986c7 268 imply VIDEO
b37b7b20 269 imply SYSRESET
09259fce 270 imply SPL_SYSRESET
b37b7b20 271 imply SYSRESET_X86
f58ad98a
CP
272 imply USB_ETHER_ASIX
273 imply USB_ETHER_SMSC95XX
5ed063d1 274 imply USB_HOST_ETHER
c882163b 275 imply PCH
6405ab7a 276 imply PHYSMEM
31d5261d 277 imply RTC_MC146818
0992a90d 278 imply ACPI
27ba6289 279 imply ACPIGEN if !QEMU && !EFI_APP
839d66cd
SG
280 imply SYSINFO if GENERATE_SMBIOS_TABLE
281 imply SYSINFO_SMBIOS if GENERATE_SMBIOS_TABLE
d6b318de 282 imply TIMESTAMP
51631259 283
98987902
SG
284 # Thing to enable for when SPL/TPL are enabled: SPL
285 imply SPL_DM
286 imply SPL_OF_LIBFDT
9ca00684 287 imply SPL_DRIVERS_MISC
83061dbd 288 imply SPL_GPIO
e556d3d6 289 imply SPL_PINCTRL
98987902
SG
290 imply SPL_LIBCOMMON_SUPPORT
291 imply SPL_LIBGENERIC_SUPPORT
2a736066 292 imply SPL_SERIAL
98987902 293 imply SPL_SPI_FLASH_SUPPORT
ea2ca7e1 294 imply SPL_SPI
98987902
SG
295 imply SPL_OF_CONTROL
296 imply SPL_TIMER
297 imply SPL_REGMAP
298 imply SPL_SYSCON
299 # TPL
300 imply TPL_DM
9ca00684 301 imply TPL_DRIVERS_MISC
83061dbd 302 imply TPL_GPIO
e556d3d6 303 imply TPL_PINCTRL
98987902
SG
304 imply TPL_LIBCOMMON_SUPPORT
305 imply TPL_LIBGENERIC_SUPPORT
2a736066 306 imply TPL_SERIAL
98987902
SG
307 imply TPL_OF_CONTROL
308 imply TPL_TIMER
309 imply TPL_REGMAP
310 imply TPL_SYSCON
311
c978b524
CZ
312config XTENSA
313 bool "Xtensa architecture"
314 select CREATE_ARCH_SYMLINK
315 select SUPPORT_OF_CONTROL
316
51631259
MY
317endchoice
318
3174e4e8
MY
319config SYS_ARCH
320 string
321 help
322 This option should contain the architecture name to build the
323 appropriate arch/<CONFIG_SYS_ARCH> directory.
324 All the architectures should specify this option correctly.
325
326config SYS_CPU
327 string
328 help
329 This option should contain the CPU name to build the correct
330 arch/<CONFIG_SYS_ARCH>/cpu/<CONFIG_SYS_CPU> directory.
331
332 This is optional. For those targets without the CPU directory,
333 leave this option empty.
334
335config SYS_SOC
336 string
337 help
338 This option should contain the SoC name to build the directory
339 arch/<CONFIG_SYS_ARCH>/cpu/<CONFIG_SYS_CPU>/<CONFIG_SYS_SOC>.
340
341 This is optional. For those targets without the SoC directory,
342 leave this option empty.
343
344config SYS_VENDOR
345 string
346 help
347 This option should contain the vendor name of the target board.
348 If it is set and
349 board/<CONFIG_SYS_VENDOR>/common/Makefile exists, the vendor common
350 directory is compiled.
351 If CONFIG_SYS_BOARD is also set, the sources under
352 board/<CONFIG_SYS_VENDOR>/<CONFIG_SYS_BOARD> directory are compiled.
353
354 This is optional. For those targets without the vendor directory,
355 leave this option empty.
356
357config SYS_BOARD
358 string
359 help
360 This option should contain the name of the target board.
361 If it is set, either board/<CONFIG_SYS_VENDOR>/<CONFIG_SYS_BOARD>
362 or board/<CONFIG_SYS_BOARD> directory is compiled depending on
363 whether CONFIG_SYS_VENDOR is set or not.
364
365 This is optional. For those targets without the board directory,
366 leave this option empty.
367
368config SYS_CONFIG_NAME
3dd14868
TR
369 string "Board header file" if ARCH_MESON || ARCH_VERSAL || \
370 ARCH_VERSAL_NET || ARCH_ZYNQ || ARCH_ZYNQMP || \
371 ARCH_ZYNQMP_R5 || MICROBLAZE || NIOS2
372 default "meson64" if ARCH_MESON
373 default "microblaze-generic" if MICROBLAZE
374 default "xilinx_versal" if ARCH_VERSAL
375 default "xilinx_versal_net" if ARCH_VERSAL_NET
376 default "xilinx_zynqmp" if ARCH_ZYNQMP
377 default "xilinx_zynqmp_r5" if ARCH_ZYNQMP_R5
378 default "zynq-common" if ARCH_ZYNQ
3174e4e8
MY
379 help
380 This option should contain the base name of board header file.
381 The header file include/configs/<CONFIG_SYS_CONFIG_NAME>.h
382 should be included from include/config.h.
383
add49671
VR
384config SYS_DISABLE_DCACHE_OPS
385 bool
386 help
387 This option disables dcache flush and dcache invalidation
388 operations. For example, on coherent systems where cache
389 operatios are not required, enable this option to avoid them.
390 Note that, its up to the individual architectures to implement
391 this functionality.
392
be7dbb60 393config SYS_IMMR
dd2986ac 394 hex "Address for the Internal Memory-Mapped Registers (IMMR) window"
be7dbb60
TR
395 depends on PPC || FSL_LSCH2 || FSL_LSCH3 || ARCH_LS1021A
396 default 0xFF000000 if MPC8xx
397 default 0xF0000000 if ARCH_MPC8313
398 default 0xE0000000 if MPC83xx && !ARCH_MPC8313
399 default 0x01000000 if ARCH_LS1021A || FSL_LSCH2 || FSL_LSCH3
39f42fe2
T
400 default 0xFFE00000 if ARCH_P1010 || ARCH_P1011 || ARCH_P1020 || \
401 ARCH_P1021 || ARCH_P1024 || ARCH_P1025 || \
402 ARCH_P2020
be7dbb60
TR
403 default SYS_CCSRBAR_DEFAULT
404 help
405 Address for the Internal Memory-Mapped Registers (IMMR) window used
406 to configure the features of many Freescale / NXP SoCs.
407
e52fca22
TR
408config MONITOR_IS_IN_RAM
409 bool "U-Boot is loaded in to RAM by a pre-loader"
410 depends on M68K || NIOS2
411
c394e8d0 412menu "Skipping low level initialization functions"
11232139 413 depends on ARM || MIPS || RISCV
c394e8d0
HS
414
415config SKIP_LOWLEVEL_INIT
416 bool "Skip calls to certain low level initialization functions"
a2ac2b96
TR
417 help
418 If enabled, then certain low level initializations (like setting up
419 the memory controller) are omitted and/or U-Boot does not relocate
420 itself into RAM.
421 Normally this variable MUST NOT be defined. The only exception is
422 when U-Boot is loaded (to RAM) by some other boot loader or by a
423 debugger which performs these initializations itself.
424
425config SPL_SKIP_LOWLEVEL_INIT
c394e8d0
HS
426 bool "Skip calls to certain low level initialization functions in SPL"
427 depends on SPL
a2ac2b96
TR
428 help
429 If enabled, then certain low level initializations (like setting up
430 the memory controller) are omitted and/or U-Boot does not relocate
431 itself into RAM.
432 Normally this variable MUST NOT be defined. The only exception is
433 when U-Boot is loaded (to RAM) by some other boot loader or by a
434 debugger which performs these initializations itself.
435
436config TPL_SKIP_LOWLEVEL_INIT
c394e8d0 437 bool "Skip calls to certain low level initialization functions in TPL"
a2ac2b96
TR
438 depends on SPL && ARM
439 help
440 If enabled, then certain low level initializations (like setting up
441 the memory controller) are omitted and/or U-Boot does not relocate
442 itself into RAM.
443 Normally this variable MUST NOT be defined. The only exception is
444 when U-Boot is loaded (to RAM) by some other boot loader or by a
445 debugger which performs these initializations itself.
446
447config SKIP_LOWLEVEL_INIT_ONLY
c394e8d0 448 bool "Skip call to lowlevel_init during early boot ONLY"
a2ac2b96
TR
449 depends on ARM
450 help
451 This allows just the call to lowlevel_init() to be skipped. The
452 normal CP15 init (such as enabling the instruction cache) is still
453 performed.
454
455config SPL_SKIP_LOWLEVEL_INIT_ONLY
c394e8d0 456 bool "Skip call to lowlevel_init during early SPL boot ONLY"
a2ac2b96
TR
457 depends on SPL && ARM
458 help
459 This allows just the call to lowlevel_init() to be skipped. The
460 normal CP15 init (such as enabling the instruction cache) is still
461 performed.
462
463config TPL_SKIP_LOWLEVEL_INIT_ONLY
c394e8d0 464 bool "Skip call to lowlevel_init during early TPL boot ONLY"
a2ac2b96
TR
465 depends on TPL && ARM
466 help
467 This allows just the call to lowlevel_init() to be skipped. The
468 normal CP15 init (such as enabling the instruction cache) is still
469 performed.
470
c394e8d0
HS
471endmenu
472
8c778f78
TR
473config SYS_HAS_NONCACHED_MEMORY
474 bool "Enable reserving a non-cached memory area for drivers"
475 depends on (ARM || MIPS) && (RTL8169 || MEDIATEK_ETH)
476 help
477 This is useful for drivers that would otherwise require a lot of
478 explicit cache maintenance. For some drivers it's also impossible to
479 properly maintain the cache. For example if the regions that need to
480 be flushed are not a multiple of the cache-line size, *and* padding
481 cannot be allocated between the regions to align them (i.e. if the
482 HW requires a contiguous array of regions, and the size of each
483 region is not cache-aligned), then a flush of one region may result
484 in overwriting data that hardware has written to another region in
485 the same cache-line. This can happen for example in network drivers
486 where descriptors for buffers are typically smaller than the CPU
487 cache-line (e.g. 16 bytes vs. 32 or 64 bytes).
488
489config SYS_NONCACHED_MEMORY
490 hex "Size in bytes of the non-cached memory area"
491 depends on SYS_HAS_NONCACHED_MEMORY
492 default 0x100000
493 help
494 Size of non-cached memory area. This area of memory will be typically
495 located right below the malloc() area and mapped uncached in the MMU.
496
51631259
MY
497source "arch/arc/Kconfig"
498source "arch/arm/Kconfig"
51631259
MY
499source "arch/m68k/Kconfig"
500source "arch/microblaze/Kconfig"
501source "arch/mips/Kconfig"
51631259 502source "arch/nios2/Kconfig"
51631259
MY
503source "arch/powerpc/Kconfig"
504source "arch/sandbox/Kconfig"
505source "arch/sh/Kconfig"
51631259 506source "arch/x86/Kconfig"
c978b524 507source "arch/xtensa/Kconfig"
068feb9b 508source "arch/riscv/Kconfig"
c6c0e56f 509
d622b089
TR
510if ARM || M68K || PPC
511
512source "arch/Kconfig.nxp"
513
514endif
515
c6c0e56f 516source "board/keymile/Kconfig"
89e81e6c 517
10fd6d64 518if MIPS || MICROBLAZE
89e81e6c
MS
519
520choice
521 prompt "Endianness selection"
522 help
523 Some MIPS boards can be configured for either little or big endian
524 byte order. These modes require different U-Boot images. In general there
525 is one preferred byteorder for a particular system but some systems are
526 just as commonly used in the one or the other endianness.
527
528config SYS_BIG_ENDIAN
529 bool "Big endian"
10fd6d64 530 depends on (SUPPORTS_BIG_ENDIAN && MIPS) || MICROBLAZE
89e81e6c
MS
531
532config SYS_LITTLE_ENDIAN
533 bool "Little endian"
10fd6d64 534 depends on (SUPPORTS_LITTLE_ENDIAN && MIPS) || MICROBLAZE
89e81e6c
MS
535
536endchoice
537
538endif