blob: 25f4a15b19f9ce21088b3aa4cb25e8336eda4327 [file] [log] [blame]
Masahiro Yamadaa350c6a2015-07-15 20:59:29 +09001config CREATE_ARCH_SYMLINK
2 bool
3
Masahiro Yamada9a387122016-06-28 10:48:42 +09004config HAVE_ARCH_IOREMAP
5 bool
6
Michal Simek35b7ca72020-11-04 15:33:20 +01007config NEEDS_MANUAL_RELOC
8 bool
9
Tom Riniab92b382021-08-26 11:47:59 -040010config SYS_CACHE_SHIFT_4
11 bool
12
13config SYS_CACHE_SHIFT_5
14 bool
15
16config SYS_CACHE_SHIFT_6
17 bool
18
19config SYS_CACHE_SHIFT_7
20 bool
21
22config SYS_CACHELINE_SIZE
23 int
24 default 128 if SYS_CACHE_SHIFT_7
25 default 64 if SYS_CACHE_SHIFT_6
26 default 32 if SYS_CACHE_SHIFT_5
27 default 16 if SYS_CACHE_SHIFT_4
28 # Fall-back for MIPS
29 default 32 if MIPS
30
Simon Glass0b2fa982020-12-16 21:20:06 -070031config LINKER_LIST_ALIGN
32 int
33 default 32 if SANDBOX
34 default 8 if ARM64 || X86
35 default 4
36 help
37 Force the each linker list to be aligned to this boundary. This
38 is required if ll_entry_get() is used, since otherwise the linker
39 may add padding into the table, thus breaking it.
40 See linker_lists.rst for full details.
41
Masahiro Yamada51631252014-07-30 14:08:15 +090042choice
43 prompt "Architecture select"
44 default SANDBOX
45
46config ARC
47 bool "ARC architecture"
Michal Simek5ed063d2018-07-23 15:55:13 +020048 select ARC_TIMER
49 select CLK
Michal Simek7b564322020-08-19 10:44:20 +020050 select DM
Alexey Brodkina67ef282015-02-03 13:58:20 +030051 select HAVE_PRIVATE_LIBGCC
Alexey Brodkin01496c42015-03-17 14:55:14 +030052 select SUPPORT_OF_CONTROL
Tom Riniab92b382021-08-26 11:47:59 -040053 select SYS_CACHE_SHIFT_7
Vlad Zakharov3daa7c72017-03-21 14:49:49 +030054 select TIMER
Masahiro Yamada51631252014-07-30 14:08:15 +090055
56config ARM
57 bool "ARM architecture"
Marek BehĂșn8f969652021-05-20 13:24:22 +020058 select ARCH_SUPPORTS_LTO
Masahiro Yamadaa350c6a2015-07-15 20:59:29 +090059 select CREATE_ARCH_SYMLINK
Masahiro Yamada64b77ed2015-07-03 16:13:09 +090060 select HAVE_PRIVATE_LIBGCC if !ARM64
Masahiro Yamada783e6a72014-09-22 19:59:05 +090061 select SUPPORT_OF_CONTROL
Masahiro Yamada51631252014-07-30 14:08:15 +090062
Masahiro Yamada51631252014-07-30 14:08:15 +090063config M68K
64 bool "M68000 architecture"
angelo@sysam.it6463fd82015-12-06 17:47:59 +010065 select HAVE_PRIVATE_LIBGCC
Michal Simek35b7ca72020-11-04 15:33:20 +010066 select NEEDS_MANUAL_RELOC
Derald D. Woods405fc832018-01-22 17:17:10 -060067 select SYS_BOOT_GET_CMDLINE
68 select SYS_BOOT_GET_KBD
Tom Riniab92b382021-08-26 11:47:59 -040069 select SYS_CACHE_SHIFT_4
Angelo Dureghelloabe0f872019-03-13 21:46:51 +010070 select SUPPORT_OF_CONTROL
Masahiro Yamada51631252014-07-30 14:08:15 +090071
72config MICROBLAZE
73 bool "MicroBlaze architecture"
Michal Simek35b7ca72020-11-04 15:33:20 +010074 select NEEDS_MANUAL_RELOC
Masahiro Yamada783e6a72014-09-22 19:59:05 +090075 select SUPPORT_OF_CONTROL
Simon Glass1b330892017-05-17 03:25:39 -060076 imply CMD_IRQ
Masahiro Yamada51631252014-07-30 14:08:15 +090077
78config MIPS
79 bool "MIPS architecture"
Masahiro Yamada9a387122016-06-28 10:48:42 +090080 select HAVE_ARCH_IOREMAP
Masahiro Yamada45ccec82014-10-24 01:30:43 +090081 select HAVE_PRIVATE_LIBGCC
Daniel Schwierzeck0fc13a92015-12-19 20:20:48 +010082 select SUPPORT_OF_CONTROL
Masahiro Yamada51631252014-07-30 14:08:15 +090083
84config NDS32
85 bool "NDS32 architecture"
rick86132af2017-04-17 14:41:58 +080086 select SUPPORT_OF_CONTROL
Masahiro Yamada51631252014-07-30 14:08:15 +090087
88config NIOS2
89 bool "Nios II architecture"
Thomas Choubcae80e2015-10-21 21:34:57 +080090 select CPU
Michal Simek5ed063d2018-07-23 15:55:13 +020091 select DM
92 select OF_CONTROL
93 select SUPPORT_OF_CONTROL
Michal Simek08a00cb2018-07-23 15:55:14 +020094 imply CMD_DM
Masahiro Yamada51631252014-07-30 14:08:15 +090095
Masahiro Yamada51631252014-07-30 14:08:15 +090096config PPC
97 bool "PowerPC architecture"
Masahiro Yamada45ccec82014-10-24 01:30:43 +090098 select HAVE_PRIVATE_LIBGCC
Simon Glassc1c61572015-02-07 11:51:35 -070099 select SUPPORT_OF_CONTROL
Derald D. Woods405fc832018-01-22 17:17:10 -0600100 select SYS_BOOT_GET_CMDLINE
101 select SYS_BOOT_GET_KBD
Masahiro Yamada51631252014-07-30 14:08:15 +0900102
Rick Chen068feb92017-12-26 13:55:58 +0800103config RISCV
Bin Meng117a4332018-09-26 06:55:06 -0700104 bool "RISC-V architecture"
Anup Patel7c8d2102019-02-25 08:14:04 +0000105 select CREATE_ARCH_SYMLINK
Rick Chen068feb92017-12-26 13:55:58 +0800106 select SUPPORT_OF_CONTROL
Bin Mengbf6cc822018-09-26 06:55:19 -0700107 select OF_CONTROL
108 select DM
Bin Mengcd1f45c2018-09-26 06:55:20 -0700109 imply DM_SERIAL
110 imply DM_ETH
111 imply DM_MMC
112 imply DM_SPI
113 imply DM_SPI_FLASH
114 imply BLK
115 imply CLK
116 imply MTD
117 imply TIMER
Bin Mengbf6cc822018-09-26 06:55:19 -0700118 imply CMD_DM
Lukas Auer8c59f202019-08-21 21:14:45 +0200119 imply SPL_DM
120 imply SPL_OF_CONTROL
121 imply SPL_LIBCOMMON_SUPPORT
122 imply SPL_LIBGENERIC_SUPPORT
123 imply SPL_SERIAL_SUPPORT
124 imply SPL_TIMER
Rick Chen068feb92017-12-26 13:55:58 +0800125
Masahiro Yamada51631252014-07-30 14:08:15 +0900126config SANDBOX
127 bool "Sandbox"
Marek BehĂșn94bb8912021-05-20 13:24:07 +0200128 select ARCH_SUPPORTS_LTO
Tom Rinie5ec4812017-01-22 19:43:11 -0500129 select BOARD_LATE_INIT
Michael Walleefc06442020-05-22 14:07:38 +0200130 select BZIP2
Heinrich Schuchardtb1ad4152020-10-27 20:29:22 +0100131 select CMD_POWEROFF
Masahiro Yamada58d423b2015-03-31 12:47:53 +0900132 select DM
Masahiro Yamada58d423b2015-03-31 12:47:53 +0900133 select DM_GPIO
Michal Simek5ed063d2018-07-23 15:55:13 +0200134 select DM_I2C
135 select DM_KEYBOARD
Simon Glass9a46bd32016-06-12 23:30:26 -0600136 select DM_MMC
Michal Simek5ed063d2018-07-23 15:55:13 +0200137 select DM_SERIAL
138 select DM_SPI
139 select DM_SPI_FLASH
Michael Walleefc06442020-05-22 14:07:38 +0200140 select GZIP_COMPRESSED
Adam Ford1811a922018-02-06 12:43:56 -0600141 select HAVE_BLOCK_DEVICE
Tom Rinid56b4b12017-07-22 18:36:16 -0400142 select LZO
Heinrich Schuchardt1c0bc802020-03-14 12:13:40 +0100143 select OF_BOARD_SETUP
Ramon Friedbb413332019-04-27 11:15:23 +0300144 select PCI_ENDPOINT
Michal Simek5ed063d2018-07-23 15:55:13 +0200145 select SPI
146 select SUPPORT_OF_CONTROL
Heinrich Schuchardtb1ad4152020-10-27 20:29:22 +0100147 select SYSRESET_CMD_POWEROFF
Tom Riniab92b382021-08-26 11:47:59 -0400148 select SYS_CACHE_SHIFT_4
Wasim Khan57c675d2021-03-08 16:48:16 +0100149 select IRQ
Kory Maincent95300f22021-05-04 19:31:23 +0200150 select SUPPORT_EXTENSION_SCAN
Bin Meng0f1caa92018-08-02 23:58:03 -0700151 imply BITREVERSE
Simon Glass919e7a82018-11-15 18:43:53 -0700152 select BLOBLIST
Marek BehĂșn1b457e72021-05-20 13:24:08 +0200153 imply LTO
Michal Simek08a00cb2018-07-23 15:55:14 +0200154 imply CMD_DM
Heinrich Schuchardt6ca5ff32020-11-12 00:29:59 +0100155 imply CMD_EXCEPTION
Simon Glassded48cd2017-05-17 03:25:44 -0600156 imply CMD_GETTIME
Simon Glass551c3932017-05-17 03:25:25 -0600157 imply CMD_HASH
Simon Glass594e8d12017-05-17 03:25:34 -0600158 imply CMD_IO
Simon Glass7d0f5c12017-05-17 03:25:36 -0600159 imply CMD_IOTRACE
Simon Glassee7c0e72017-05-17 03:25:43 -0600160 imply CMD_LZMADEC
Michal Simek5ed063d2018-07-23 15:55:13 +0200161 imply CMD_SATA
Tom Rinia4298dd2019-05-29 17:01:28 -0400162 imply CMD_SF
Michal Simek5ed063d2018-07-23 15:55:13 +0200163 imply CMD_SF_TEST
Tom Rini91d27a12017-06-02 11:03:50 -0400164 imply CRC32_VERIFY
165 imply FAT_WRITE
Rajan Vaja31b82172018-09-19 03:43:46 -0700166 imply FIRMWARE
Daniel Thompson221a9492017-05-19 17:26:58 +0100167 imply HASH_VERIFY
Tom Rini91d27a12017-06-02 11:03:50 -0400168 imply LZMA
Simon Glassfedb4282017-06-14 21:28:21 -0600169 imply SCSI
Jens Wiklanderfe39e8e2018-09-25 16:40:17 +0200170 imply TEE
Jens Wiklander0a60a812018-09-25 16:40:23 +0200171 imply AVB_VERIFY
172 imply LIBAVB
173 imply CMD_AVB
Igor Opaniuk7c591a82021-02-14 16:27:27 +0100174 imply SCP03
175 imply CMD_SCP03
Jens Wiklander0a60a812018-09-25 16:40:23 +0200176 imply UDP_FUNCTION_FASTBOOT
Bin Meng4f89d492018-10-15 02:21:26 -0700177 imply VIRTIO_MMIO
178 imply VIRTIO_PCI
179 imply VIRTIO_SANDBOX
180 imply VIRTIO_BLK
181 imply VIRTIO_NET
Simon Glass2a049572018-12-10 10:37:31 -0700182 imply DM_SOUND
Ramon Friedbb413332019-04-27 11:15:23 +0300183 imply PCI_SANDBOX_EP
Simon Glassc8821632019-02-16 20:24:49 -0700184 imply PCH
Alex Margineanec9594a2019-06-03 19:12:28 +0300185 imply PHYLIB
186 imply DM_MDIO
Alex Margineanc3d9f3f2019-07-12 10:13:53 +0300187 imply DM_MDIO_MUX
Simon Glass3b65ee32019-12-06 21:41:54 -0700188 imply ACPI_PMC
189 imply ACPI_PMC_SANDBOX
190 imply CMD_PMC
John Chau4a4830c2020-07-02 12:01:21 +0800191 imply CMD_CLONE
Simon Glassf158ba12020-11-05 10:33:38 -0700192 imply SILENT_CONSOLE
Simon Glass51bb3382020-11-05 10:33:48 -0700193 imply BOOTARGS_SUBST
Claudiu Manoilff98da02021-03-14 20:14:57 +0800194 imply PHY_FIXED
195 imply DM_DSA
Kory Maincent95300f22021-05-04 19:31:23 +0200196 imply CMD_EXTENSION
Masahiro Yamada51631252014-07-30 14:08:15 +0900197
198config SH
199 bool "SuperH architecture"
Masahiro Yamada45ccec82014-10-24 01:30:43 +0900200 select HAVE_PRIVATE_LIBGCC
Marek Vasut8c2c4632019-08-31 18:27:58 +0200201 select SUPPORT_OF_CONTROL
Masahiro Yamada51631252014-07-30 14:08:15 +0900202
Masahiro Yamada51631252014-07-30 14:08:15 +0900203config X86
204 bool "x86 architecture"
Simon Glass98987902019-04-25 21:58:45 -0600205 select SUPPORT_SPL
206 select SUPPORT_TPL
Masahiro Yamadaa350c6a2015-07-15 20:59:29 +0900207 select CREATE_ARCH_SYMLINK
Masahiro Yamada58d423b2015-03-31 12:47:53 +0900208 select DM
Bin Meng6bf89de2017-07-30 06:23:09 -0700209 select DM_PCI
Bin Meng3bf9a8e2018-10-15 02:21:16 -0700210 select HAVE_ARCH_IOMAP
Michal Simek5ed063d2018-07-23 15:55:13 +0200211 select HAVE_PRIVATE_LIBGCC
212 select OF_CONTROL
Bin Meng4f0faac2017-07-30 06:23:16 -0700213 select PCI
Michal Simek5ed063d2018-07-23 15:55:13 +0200214 select SUPPORT_OF_CONTROL
Tom Riniab92b382021-08-26 11:47:59 -0400215 select SYS_CACHE_SHIFT_6
Bin Meng0ce9c572017-07-30 06:23:07 -0700216 select TIMER
Michal Simek5ed063d2018-07-23 15:55:13 +0200217 select USE_PRIVATE_LIBGCC
Bin Meng0ce9c572017-07-30 06:23:07 -0700218 select X86_TSC_TIMER
Wasim Khan543d0912021-03-08 16:48:15 +0100219 select IRQ
Simon Glassbcd4e6f2020-07-19 13:55:52 -0600220 imply HAS_ROM if X86_RESET_VECTOR
Bin Meng24357df2017-07-30 19:24:02 -0700221 imply BLK
Michal Simek08a00cb2018-07-23 15:55:14 +0200222 imply CMD_DM
Simon Glassfe7604a2017-05-17 03:25:21 -0600223 imply CMD_FPGA_LOADMK
Simon Glassd91a9d72017-05-17 03:25:23 -0600224 imply CMD_GETTIME
Simon Glass594e8d12017-05-17 03:25:34 -0600225 imply CMD_IO
Simon Glass1b330892017-05-17 03:25:39 -0600226 imply CMD_IRQ
Bin Mengc11b17c2017-08-16 05:46:49 -0700227 imply CMD_PCI
Tom Rinia4298dd2019-05-29 17:01:28 -0400228 imply CMD_SF
Simon Glass719d36e2017-08-04 16:34:46 -0600229 imply CMD_SF_TEST
Simon Glasse7a815f2017-08-04 16:35:03 -0600230 imply CMD_ZBOOT
Michal Simek5ed063d2018-07-23 15:55:13 +0200231 imply DM_ETH
232 imply DM_GPIO
233 imply DM_KEYBOARD
234 imply DM_MMC
235 imply DM_RTC
236 imply DM_SCSI
237 imply DM_SERIAL
238 imply DM_SPI
239 imply DM_SPI_FLASH
240 imply DM_USB
241 imply DM_VIDEO
242 imply SYSRESET
Kever Yang09259fc2019-04-02 20:41:25 +0800243 imply SPL_SYSRESET
Michal Simek5ed063d2018-07-23 15:55:13 +0200244 imply SYSRESET_X86
Chris Packhamf58ad982017-08-28 20:50:46 +1200245 imply USB_ETHER_ASIX
246 imply USB_ETHER_SMSC95XX
Michal Simek5ed063d2018-07-23 15:55:13 +0200247 imply USB_HOST_ETHER
Simon Glassc8821632019-02-16 20:24:49 -0700248 imply PCH
Simon Glass31d52612019-05-02 10:52:24 -0600249 imply RTC_MC146818
Simon Glassd40d2c52020-07-16 21:22:39 -0600250 imply ACPIGEN if !QEMU
Simon Glass839d66c2020-11-05 06:32:17 -0700251 imply SYSINFO if GENERATE_SMBIOS_TABLE
252 imply SYSINFO_SMBIOS if GENERATE_SMBIOS_TABLE
Masahiro Yamada51631252014-07-30 14:08:15 +0900253
Simon Glass98987902019-04-25 21:58:45 -0600254 # Thing to enable for when SPL/TPL are enabled: SPL
255 imply SPL_DM
256 imply SPL_OF_LIBFDT
Simon Glass9ca00682021-07-10 21:14:31 -0600257 imply SPL_DRIVERS_MISC
Simon Glass83061db2021-07-10 21:14:30 -0600258 imply SPL_GPIO
Simon Glasse556d3d2019-12-06 21:42:51 -0700259 imply SPL_PINCTRL
Simon Glass98987902019-04-25 21:58:45 -0600260 imply SPL_LIBCOMMON_SUPPORT
261 imply SPL_LIBGENERIC_SUPPORT
262 imply SPL_SERIAL_SUPPORT
263 imply SPL_SPI_FLASH_SUPPORT
264 imply SPL_SPI_SUPPORT
265 imply SPL_OF_CONTROL
266 imply SPL_TIMER
267 imply SPL_REGMAP
268 imply SPL_SYSCON
269 # TPL
270 imply TPL_DM
Simon Glass9ca00682021-07-10 21:14:31 -0600271 imply TPL_DRIVERS_MISC
Simon Glass83061db2021-07-10 21:14:30 -0600272 imply TPL_GPIO
Simon Glasse556d3d2019-12-06 21:42:51 -0700273 imply TPL_PINCTRL
Simon Glass98987902019-04-25 21:58:45 -0600274 imply TPL_LIBCOMMON_SUPPORT
275 imply TPL_LIBGENERIC_SUPPORT
276 imply TPL_SERIAL_SUPPORT
Simon Glass98987902019-04-25 21:58:45 -0600277 imply TPL_OF_CONTROL
278 imply TPL_TIMER
279 imply TPL_REGMAP
280 imply TPL_SYSCON
281
Chris Zankelc978b522016-08-10 18:36:44 +0300282config XTENSA
283 bool "Xtensa architecture"
284 select CREATE_ARCH_SYMLINK
285 select SUPPORT_OF_CONTROL
286
Masahiro Yamada51631252014-07-30 14:08:15 +0900287endchoice
288
Masahiro Yamada3174e4e2014-09-14 03:01:48 +0900289config SYS_ARCH
290 string
291 help
292 This option should contain the architecture name to build the
293 appropriate arch/<CONFIG_SYS_ARCH> directory.
294 All the architectures should specify this option correctly.
295
296config SYS_CPU
297 string
298 help
299 This option should contain the CPU name to build the correct
300 arch/<CONFIG_SYS_ARCH>/cpu/<CONFIG_SYS_CPU> directory.
301
302 This is optional. For those targets without the CPU directory,
303 leave this option empty.
304
305config SYS_SOC
306 string
307 help
308 This option should contain the SoC name to build the directory
309 arch/<CONFIG_SYS_ARCH>/cpu/<CONFIG_SYS_CPU>/<CONFIG_SYS_SOC>.
310
311 This is optional. For those targets without the SoC directory,
312 leave this option empty.
313
314config SYS_VENDOR
315 string
316 help
317 This option should contain the vendor name of the target board.
318 If it is set and
319 board/<CONFIG_SYS_VENDOR>/common/Makefile exists, the vendor common
320 directory is compiled.
321 If CONFIG_SYS_BOARD is also set, the sources under
322 board/<CONFIG_SYS_VENDOR>/<CONFIG_SYS_BOARD> directory are compiled.
323
324 This is optional. For those targets without the vendor directory,
325 leave this option empty.
326
327config SYS_BOARD
328 string
329 help
330 This option should contain the name of the target board.
331 If it is set, either board/<CONFIG_SYS_VENDOR>/<CONFIG_SYS_BOARD>
332 or board/<CONFIG_SYS_BOARD> directory is compiled depending on
333 whether CONFIG_SYS_VENDOR is set or not.
334
335 This is optional. For those targets without the board directory,
336 leave this option empty.
337
338config SYS_CONFIG_NAME
339 string
340 help
341 This option should contain the base name of board header file.
342 The header file include/configs/<CONFIG_SYS_CONFIG_NAME>.h
343 should be included from include/config.h.
344
Vignesh Raghavendraadd49672019-04-22 21:43:32 +0530345config SYS_DISABLE_DCACHE_OPS
346 bool
347 help
348 This option disables dcache flush and dcache invalidation
349 operations. For example, on coherent systems where cache
350 operatios are not required, enable this option to avoid them.
351 Note that, its up to the individual architectures to implement
352 this functionality.
353
Masahiro Yamada51631252014-07-30 14:08:15 +0900354source "arch/arc/Kconfig"
355source "arch/arm/Kconfig"
Masahiro Yamada51631252014-07-30 14:08:15 +0900356source "arch/m68k/Kconfig"
357source "arch/microblaze/Kconfig"
358source "arch/mips/Kconfig"
359source "arch/nds32/Kconfig"
360source "arch/nios2/Kconfig"
Masahiro Yamada51631252014-07-30 14:08:15 +0900361source "arch/powerpc/Kconfig"
362source "arch/sandbox/Kconfig"
363source "arch/sh/Kconfig"
Masahiro Yamada51631252014-07-30 14:08:15 +0900364source "arch/x86/Kconfig"
Chris Zankelc978b522016-08-10 18:36:44 +0300365source "arch/xtensa/Kconfig"
Rick Chen068feb92017-12-26 13:55:58 +0800366source "arch/riscv/Kconfig"