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