xref: /openbmc/u-boot/arch/Kconfig (revision 76e22222)
1config CREATE_ARCH_SYMLINK
2	bool
3
4config HAVE_ARCH_IOREMAP
5	bool
6
7choice
8	prompt "Architecture select"
9	default SANDBOX
10
11config ARC
12	bool "ARC architecture"
13	select HAVE_PRIVATE_LIBGCC
14	select SUPPORT_OF_CONTROL
15	select ARCH_EARLY_INIT_R
16	select CLK
17	select TIMER
18	select ARC_TIMER
19
20config ARM
21	bool "ARM architecture"
22	select CREATE_ARCH_SYMLINK
23	select HAVE_PRIVATE_LIBGCC if !ARM64
24	select SUPPORT_OF_CONTROL
25
26config M68K
27	bool "M68000 architecture"
28	select HAVE_PRIVATE_LIBGCC
29	select SYS_BOOT_GET_CMDLINE
30	select SYS_BOOT_GET_KBD
31
32config MICROBLAZE
33	bool "MicroBlaze architecture"
34	select SUPPORT_OF_CONTROL
35	imply CMD_IRQ
36
37config MIPS
38	bool "MIPS architecture"
39	select HAVE_ARCH_IOREMAP
40	select HAVE_PRIVATE_LIBGCC
41	select SUPPORT_OF_CONTROL
42
43config NDS32
44	bool "NDS32 architecture"
45	select SUPPORT_OF_CONTROL
46
47config NIOS2
48	bool "Nios II architecture"
49	select SUPPORT_OF_CONTROL
50	select OF_CONTROL
51	select DM
52	select CPU
53
54config PPC
55	bool "PowerPC architecture"
56	select HAVE_PRIVATE_LIBGCC
57	select SUPPORT_OF_CONTROL
58	select SYS_BOOT_GET_CMDLINE
59	select SYS_BOOT_GET_KBD
60
61config RISCV
62	bool "riscv architecture"
63	select SUPPORT_OF_CONTROL
64
65config SANDBOX
66	bool "Sandbox"
67	select BOARD_LATE_INIT
68	select SUPPORT_OF_CONTROL
69	select DM
70	select DM_KEYBOARD
71	select DM_SPI_FLASH
72	select DM_SERIAL
73	select DM_I2C
74	select DM_SPI
75	select DM_GPIO
76	select DM_MMC
77	select LZO
78	imply CMD_GETTIME
79	imply CMD_HASH
80	imply CMD_IO
81	imply CMD_IOTRACE
82	imply CMD_LZMADEC
83	imply CRC32_VERIFY
84	imply FAT_WRITE
85	imply HASH_VERIFY
86	imply LZMA
87	imply SCSI
88	imply CMD_SATA
89	imply CMD_SF_TEST
90
91config SH
92	bool "SuperH architecture"
93	select HAVE_PRIVATE_LIBGCC
94
95config X86
96	bool "x86 architecture"
97	select CREATE_ARCH_SYMLINK
98	select HAVE_PRIVATE_LIBGCC
99	select USE_PRIVATE_LIBGCC
100	select SUPPORT_OF_CONTROL
101	select OF_CONTROL
102	select DM
103	select DM_PCI
104	select PCI
105	select TIMER
106	select X86_TSC_TIMER
107	imply BLK
108	imply DM_ETH
109	imply DM_GPIO
110	imply DM_KEYBOARD
111	imply DM_MMC
112	imply DM_RTC
113	imply DM_SERIAL
114	imply DM_SCSI
115	imply DM_SPI
116	imply DM_SPI_FLASH
117	imply DM_USB
118	imply DM_VIDEO
119	imply CMD_FPGA_LOADMK
120	imply CMD_GETTIME
121	imply CMD_IO
122	imply CMD_IRQ
123	imply CMD_PCI
124	imply CMD_SF_TEST
125	imply CMD_ZBOOT
126	imply USB_HOST_ETHER
127	imply USB_ETHER_ASIX
128	imply USB_ETHER_SMSC95XX
129
130config XTENSA
131	bool "Xtensa architecture"
132	select CREATE_ARCH_SYMLINK
133	select SUPPORT_OF_CONTROL
134
135endchoice
136
137config SYS_ARCH
138	string
139	help
140	  This option should contain the architecture name to build the
141	  appropriate arch/<CONFIG_SYS_ARCH> directory.
142	  All the architectures should specify this option correctly.
143
144config SYS_CPU
145	string
146	help
147	  This option should contain the CPU name to build the correct
148	  arch/<CONFIG_SYS_ARCH>/cpu/<CONFIG_SYS_CPU> directory.
149
150	  This is optional.  For those targets without the CPU directory,
151	  leave this option empty.
152
153config SYS_SOC
154	string
155	help
156	  This option should contain the SoC name to build the directory
157	  arch/<CONFIG_SYS_ARCH>/cpu/<CONFIG_SYS_CPU>/<CONFIG_SYS_SOC>.
158
159	  This is optional.  For those targets without the SoC directory,
160	  leave this option empty.
161
162config SYS_VENDOR
163	string
164	help
165	  This option should contain the vendor name of the target board.
166	  If it is set and
167	  board/<CONFIG_SYS_VENDOR>/common/Makefile exists, the vendor common
168	  directory is compiled.
169	  If CONFIG_SYS_BOARD is also set, the sources under
170	  board/<CONFIG_SYS_VENDOR>/<CONFIG_SYS_BOARD> directory are compiled.
171
172	  This is optional.  For those targets without the vendor directory,
173	  leave this option empty.
174
175config SYS_BOARD
176	string
177	help
178	  This option should contain the name of the target board.
179	  If it is set, either board/<CONFIG_SYS_VENDOR>/<CONFIG_SYS_BOARD>
180	  or board/<CONFIG_SYS_BOARD> directory is compiled depending on
181	  whether CONFIG_SYS_VENDOR is set or not.
182
183	  This is optional.  For those targets without the board directory,
184	  leave this option empty.
185
186config SYS_CONFIG_NAME
187	string
188	help
189	  This option should contain the base name of board header file.
190	  The header file include/configs/<CONFIG_SYS_CONFIG_NAME>.h
191	  should be included from include/config.h.
192
193source "arch/arc/Kconfig"
194source "arch/arm/Kconfig"
195source "arch/m68k/Kconfig"
196source "arch/microblaze/Kconfig"
197source "arch/mips/Kconfig"
198source "arch/nds32/Kconfig"
199source "arch/nios2/Kconfig"
200source "arch/powerpc/Kconfig"
201source "arch/sandbox/Kconfig"
202source "arch/sh/Kconfig"
203source "arch/x86/Kconfig"
204source "arch/xtensa/Kconfig"
205source "arch/riscv/Kconfig"
206