xref: /openbmc/u-boot/arch/arm/Kconfig (revision d10fc50f)
1menu "ARM architecture"
2	depends on ARM
3
4config SYS_ARCH
5	default "arm"
6
7config ARM64
8	bool
9	select PHYS_64BIT
10	select SYS_CACHE_SHIFT_6
11
12if ARM64
13config POSITION_INDEPENDENT
14	bool "Generate position-independent pre-relocation code"
15	help
16	  U-Boot expects to be linked to a specific hard-coded address, and to
17	  be loaded to and run from that address. This option lifts that
18	  restriction, thus allowing the code to be loaded to and executed
19	  from almost any address. This logic relies on the relocation
20	  information that is embedded into the binary to support U-Boot
21	  relocating itself to the top-of-RAM later during execution.
22
23config SYS_INIT_SP_BSS_OFFSET
24	int
25	help
26	  U-Boot typically uses a hard-coded value for the stack pointer
27	  before relocation. Define this option to instead calculate the
28	  initial SP at run-time. This is useful to avoid hard-coding addresses
29	  into U-Boot, so that can be loaded and executed at arbitrary
30	  addresses and thus avoid using arbitrary addresses at runtime. This
31	  option's value is the offset added to &_bss_start in order to
32	  calculate the stack pointer. This offset should be large enough so
33	  that the early malloc region, global data (gd), and early stack usage
34	  do not overlap any appended DTB.
35
36config LINUX_KERNEL_IMAGE_HEADER
37	bool
38	help
39	  Place a Linux kernel image header at the start of the U-Boot binary.
40	  The format of the header is described in the Linux kernel source at
41	  Documentation/arm64/booting.txt. This feature is useful since the
42	  image header reports the amount of memory (BSS and similar) that
43	  U-Boot needs to use, but which isn't part of the binary.
44
45if LINUX_KERNEL_IMAGE_HEADER
46config LNX_KRNL_IMG_TEXT_OFFSET_BASE
47	hex
48	help
49	  The value subtracted from CONFIG_SYS_TEXT_BASE to calculate the
50	  TEXT_OFFSET value written in to the Linux kernel image header.
51endif
52endif
53
54config STATIC_RELA
55	bool
56	default y if ARM64 && !POSITION_INDEPENDENT
57
58config DMA_ADDR_T_64BIT
59	bool
60	default y if ARM64
61
62config HAS_VBAR
63	bool
64
65config HAS_THUMB2
66	bool
67
68# Used for compatibility with asm files copied from the kernel
69config ARM_ASM_UNIFIED
70	bool
71	default y
72
73# Used for compatibility with asm files copied from the kernel
74config THUMB2_KERNEL
75	bool
76
77# If set, the workarounds for these ARM errata are applied early during U-Boot
78# startup. Note that in general these options force the workarounds to be
79# applied; no CPU-type/version detection exists, unlike the similar options in
80# the Linux kernel. Do not set these options unless they apply!  Also note that
81# the following can be machine specific errata. These do have ability to
82# provide rudimentary version and machine specific checks, but expect no
83# product checks:
84# CONFIG_ARM_ERRATA_430973
85# CONFIG_ARM_ERRATA_454179
86# CONFIG_ARM_ERRATA_621766
87# CONFIG_ARM_ERRATA_798870
88# CONFIG_ARM_ERRATA_801819
89config ARM_ERRATA_430973
90	bool
91
92config ARM_ERRATA_454179
93	bool
94
95config ARM_ERRATA_621766
96	bool
97
98config ARM_ERRATA_716044
99	bool
100
101config ARM_ERRATA_725233
102	bool
103
104config ARM_ERRATA_742230
105	bool
106
107config ARM_ERRATA_743622
108	bool
109
110config ARM_ERRATA_751472
111	bool
112
113config ARM_ERRATA_761320
114	bool
115
116config ARM_ERRATA_773022
117	bool
118
119config ARM_ERRATA_774769
120	bool
121
122config ARM_ERRATA_794072
123	bool
124
125config ARM_ERRATA_798870
126	bool
127
128config ARM_ERRATA_801819
129	bool
130
131config ARM_ERRATA_826974
132	bool
133
134config ARM_ERRATA_828024
135	bool
136
137config ARM_ERRATA_829520
138	bool
139
140config ARM_ERRATA_833069
141	bool
142
143config ARM_ERRATA_833471
144	bool
145
146config ARM_ERRATA_845369
147       bool
148
149config ARM_ERRATA_852421
150	bool
151
152config ARM_ERRATA_852423
153	bool
154
155config ARM_ERRATA_855873
156	bool
157
158config CPU_ARM720T
159	bool
160	select SYS_CACHE_SHIFT_5
161
162config CPU_ARM920T
163	bool
164	select SYS_CACHE_SHIFT_5
165
166config CPU_ARM926EJS
167	bool
168	select SYS_CACHE_SHIFT_5
169
170config CPU_ARM946ES
171	bool
172	select SYS_CACHE_SHIFT_5
173
174config CPU_ARM1136
175	bool
176	select SYS_CACHE_SHIFT_5
177
178config CPU_ARM1176
179	bool
180	select HAS_VBAR
181	select SYS_CACHE_SHIFT_5
182
183config CPU_V7
184	bool
185	select HAS_VBAR
186	select HAS_THUMB2
187	select SYS_CACHE_SHIFT_6
188
189config CPU_V7M
190	bool
191	select HAS_THUMB2
192	select THUMB2_KERNEL
193	select SYS_CACHE_SHIFT_5
194
195config CPU_PXA
196	bool
197	select SYS_CACHE_SHIFT_5
198
199config CPU_SA1100
200	bool
201	select SYS_CACHE_SHIFT_5
202
203config SYS_CPU
204	default "arm720t" if CPU_ARM720T
205	default "arm920t" if CPU_ARM920T
206	default "arm926ejs" if CPU_ARM926EJS
207	default "arm946es" if CPU_ARM946ES
208	default "arm1136" if CPU_ARM1136
209	default "arm1176" if CPU_ARM1176
210	default "armv7" if CPU_V7
211	default "armv7m" if CPU_V7M
212	default "pxa" if CPU_PXA
213	default "sa1100" if CPU_SA1100
214	default "armv8" if ARM64
215
216config SYS_ARM_ARCH
217	int
218	default 4 if CPU_ARM720T
219	default 4 if CPU_ARM920T
220	default 5 if CPU_ARM926EJS
221	default 5 if CPU_ARM946ES
222	default 6 if CPU_ARM1136
223	default 6 if CPU_ARM1176
224	default 7 if CPU_V7
225	default 7 if CPU_V7M
226	default 5 if CPU_PXA
227	default 4 if CPU_SA1100
228	default 8 if ARM64
229
230config SYS_CACHE_SHIFT_5
231	bool
232
233config SYS_CACHE_SHIFT_6
234	bool
235
236config SYS_CACHE_SHIFT_7
237	bool
238
239config SYS_CACHELINE_SIZE
240	int
241	default 128 if SYS_CACHE_SHIFT_7
242	default 64 if SYS_CACHE_SHIFT_6
243	default 32 if SYS_CACHE_SHIFT_5
244
245config ARM_SMCCC
246	bool "Support for ARM SMC Calling Convention (SMCCC)"
247	depends on CPU_V7 || ARM64
248	select ARM_PSCI_FW
249	help
250	  Say Y here if you want to enable ARM SMC Calling Convention.
251	  This should be enabled if U-Boot needs to communicate with system
252	  firmware (for example, PSCI) according to SMCCC.
253
254config SEMIHOSTING
255	bool "support boot from semihosting"
256	help
257	  In emulated environments, semihosting is a way for
258	  the hosted environment to call out to the emulator to
259	  retrieve files from the host machine.
260
261config SYS_THUMB_BUILD
262	bool "Build U-Boot using the Thumb instruction set"
263	depends on !ARM64
264	help
265	   Use this flag to build U-Boot using the Thumb instruction set for
266	   ARM architectures. Thumb instruction set provides better code
267	   density. For ARM architectures that support Thumb2 this flag will
268	   result in Thumb2 code generated by GCC.
269
270config SPL_SYS_THUMB_BUILD
271	bool "Build SPL using the Thumb instruction set"
272	default y if SYS_THUMB_BUILD
273	depends on !ARM64
274	help
275	   Use this flag to build SPL using the Thumb instruction set for
276	   ARM architectures. Thumb instruction set provides better code
277	   density. For ARM architectures that support Thumb2 this flag will
278	   result in Thumb2 code generated by GCC.
279
280config SYS_L2CACHE_OFF
281	bool "L2cache off"
282	help
283	  If SoC does not support L2CACHE or one do not want to enable
284	  L2CACHE, choose this option.
285
286config ENABLE_ARM_SOC_BOOT0_HOOK
287	bool "prepare BOOT0 header"
288	help
289	  If the SoC's BOOT0 requires a header area filled with (magic)
290	  values, then choose this option, and create a define called
291	  ARM_SOC_BOOT0_HOOK which contains the required assembler
292	  preprocessor code.
293
294config ARM_CORTEX_CPU_IS_UP
295	bool
296	default n
297
298config USE_ARCH_MEMCPY
299	bool "Use an assembly optimized implementation of memcpy"
300	default y
301	depends on !ARM64
302	help
303	  Enable the generation of an optimized version of memcpy.
304	  Such implementation may be faster under some conditions
305	  but may increase the binary size.
306
307config SPL_USE_ARCH_MEMCPY
308	bool "Use an assembly optimized implementation of memcpy for SPL"
309	default y if USE_ARCH_MEMCPY
310	depends on !ARM64
311	help
312	  Enable the generation of an optimized version of memcpy.
313	  Such implementation may be faster under some conditions
314	  but may increase the binary size.
315
316config USE_ARCH_MEMSET
317	bool "Use an assembly optimized implementation of memset"
318	default y
319	depends on !ARM64
320	help
321	  Enable the generation of an optimized version of memset.
322	  Such implementation may be faster under some conditions
323	  but may increase the binary size.
324
325config SPL_USE_ARCH_MEMSET
326	bool "Use an assembly optimized implementation of memset for SPL"
327	default y if USE_ARCH_MEMSET
328	depends on !ARM64
329	help
330	  Enable the generation of an optimized version of memset.
331	  Such implementation may be faster under some conditions
332	  but may increase the binary size.
333
334config ARM64_SUPPORT_AARCH32
335	bool "ARM64 system support AArch32 execution state"
336	default y if ARM64 && !TARGET_THUNDERX_88XX
337	help
338	  This ARM64 system supports AArch32 execution state.
339
340choice
341	prompt "Target select"
342	default TARGET_HIKEY
343
344config ARCH_AT91
345	bool "Atmel AT91"
346	select SPL_BOARD_INIT if SPL
347
348config TARGET_EDB93XX
349	bool "Support edb93xx"
350	select CPU_ARM920T
351	select PL010_SERIAL
352
353config TARGET_ASPENITE
354	bool "Support aspenite"
355	select CPU_ARM926EJS
356
357config TARGET_GPLUGD
358	bool "Support gplugd"
359	select CPU_ARM926EJS
360
361config ARCH_DAVINCI
362	bool "TI DaVinci"
363	select CPU_ARM926EJS
364	imply CMD_SAVES
365	help
366	  Support for TI's DaVinci platform.
367
368config KIRKWOOD
369	bool "Marvell Kirkwood"
370	select CPU_ARM926EJS
371	select BOARD_EARLY_INIT_F
372	select ARCH_MISC_INIT
373
374config ARCH_MVEBU
375	bool "Marvell MVEBU family (Armada XP/375/38x/3700/7K/8K)"
376	select OF_CONTROL
377	select OF_SEPARATE
378	select DM
379	select DM_ETH
380	select DM_SERIAL
381	select DM_SPI
382	select DM_SPI_FLASH
383
384config TARGET_DEVKIT3250
385	bool "Support devkit3250"
386	select CPU_ARM926EJS
387	select SUPPORT_SPL
388
389config TARGET_WORK_92105
390	bool "Support work_92105"
391	select CPU_ARM926EJS
392	select SUPPORT_SPL
393
394config TARGET_APF27
395	bool "Support apf27"
396	select CPU_ARM926EJS
397	select SUPPORT_SPL
398
399config TARGET_APX4DEVKIT
400	bool "Support apx4devkit"
401	select CPU_ARM926EJS
402	select SUPPORT_SPL
403	select PL011_SERIAL
404
405config TARGET_XFI3
406	bool "Support xfi3"
407	select CPU_ARM926EJS
408	select SUPPORT_SPL
409	select PL011_SERIAL
410
411config TARGET_M28EVK
412	bool "Support m28evk"
413	select CPU_ARM926EJS
414	select SUPPORT_SPL
415	select PL011_SERIAL
416
417config TARGET_MX23EVK
418	bool "Support mx23evk"
419	select CPU_ARM926EJS
420	select SUPPORT_SPL
421	select BOARD_EARLY_INIT_F
422	select PL011_SERIAL
423
424config TARGET_MX28EVK
425	bool "Support mx28evk"
426	select CPU_ARM926EJS
427	select SUPPORT_SPL
428	select BOARD_EARLY_INIT_F
429	select PL011_SERIAL
430
431config TARGET_MX23_OLINUXINO
432	bool "Support mx23_olinuxino"
433	select CPU_ARM926EJS
434	select SUPPORT_SPL
435	select BOARD_EARLY_INIT_F
436	select PL011_SERIAL
437
438config TARGET_BG0900
439	bool "Support bg0900"
440	select CPU_ARM926EJS
441	select SUPPORT_SPL
442	select PL011_SERIAL
443
444config TARGET_SANSA_FUZE_PLUS
445	bool "Support sansa_fuze_plus"
446	select CPU_ARM926EJS
447	select SUPPORT_SPL
448	select PL011_SERIAL
449
450config TARGET_SC_SPS_1
451	bool "Support sc_sps_1"
452	select CPU_ARM926EJS
453	select SUPPORT_SPL
454	select PL011_SERIAL
455
456config ORION5X
457	bool "Marvell Orion"
458	select CPU_ARM926EJS
459
460config TARGET_SPEAR300
461	bool "Support spear300"
462	select CPU_ARM926EJS
463	select BOARD_EARLY_INIT_F
464	imply CMD_SAVES
465	select PL011_SERIAL
466
467config TARGET_SPEAR310
468	bool "Support spear310"
469	select CPU_ARM926EJS
470	select BOARD_EARLY_INIT_F
471	imply CMD_SAVES
472	select PL011_SERIAL
473
474config TARGET_SPEAR320
475	bool "Support spear320"
476	select CPU_ARM926EJS
477	select BOARD_EARLY_INIT_F
478	imply CMD_SAVES
479	select PL011_SERIAL
480
481config TARGET_SPEAR600
482	bool "Support spear600"
483	select CPU_ARM926EJS
484	select BOARD_EARLY_INIT_F
485	imply CMD_SAVES
486	select PL011_SERIAL
487
488config TARGET_STV0991
489	bool "Support stv0991"
490	select CPU_V7
491	select DM
492	select DM_SERIAL
493	select DM_SPI
494	select DM_SPI_FLASH
495	select SPI_FLASH
496
497config TARGET_X600
498	bool "Support x600"
499	select BOARD_LATE_INIT
500	select CPU_ARM926EJS
501	select SUPPORT_SPL
502	select PL011_SERIAL
503
504config TARGET_IMX31_PHYCORE
505	bool "Support imx31_phycore_eet"
506	select CPU_ARM1136
507	select BOARD_EARLY_INIT_F
508
509config TARGET_IMX31_PHYCORE_EET
510	bool "Support imx31_phycore_eet"
511	select BOARD_LATE_INIT
512	select CPU_ARM1136
513	select BOARD_EARLY_INIT_F
514
515config TARGET_MX31ADS
516	bool "Support mx31ads"
517	select CPU_ARM1136
518	select BOARD_EARLY_INIT_F
519
520config TARGET_MX31PDK
521	bool "Support mx31pdk"
522	select BOARD_LATE_INIT
523	select CPU_ARM1136
524	select SUPPORT_SPL
525	select BOARD_EARLY_INIT_F
526
527config TARGET_WOODBURN
528	bool "Support woodburn"
529	select CPU_ARM1136
530
531config TARGET_WOODBURN_SD
532	bool "Support woodburn_sd"
533	select CPU_ARM1136
534	select SUPPORT_SPL
535
536config TARGET_FLEA3
537	bool "Support flea3"
538	select CPU_ARM1136
539
540config TARGET_MX35PDK
541	bool "Support mx35pdk"
542	select BOARD_LATE_INIT
543	select CPU_ARM1136
544
545config ARCH_BCM283X
546	bool "Broadcom BCM283X family"
547	select DM
548	select DM_SERIAL
549	select DM_GPIO
550	select OF_CONTROL
551	imply FAT_WRITE
552
553config TARGET_VEXPRESS_CA15_TC2
554	bool "Support vexpress_ca15_tc2"
555	select CPU_V7
556	select CPU_V7_HAS_NONSEC
557	select CPU_V7_HAS_VIRT
558	select PL011_SERIAL
559
560config TARGET_VEXPRESS_CA5X2
561	bool "Support vexpress_ca5x2"
562	select CPU_V7
563	select PL011_SERIAL
564
565config TARGET_VEXPRESS_CA9X4
566	bool "Support vexpress_ca9x4"
567	select CPU_V7
568	select PL011_SERIAL
569
570config TARGET_BCM23550_W1D
571	bool "Support bcm23550_w1d"
572	select CPU_V7
573	imply CRC32_VERIFY
574	imply FAT_WRITE
575
576config TARGET_BCM28155_AP
577	bool "Support bcm28155_ap"
578	select CPU_V7
579	imply CRC32_VERIFY
580	imply FAT_WRITE
581
582config TARGET_BCMCYGNUS
583	bool "Support bcmcygnus"
584	select CPU_V7
585	imply CRC32_VERIFY
586	imply CMD_HASH
587	imply FAT_WRITE
588	imply HASH_VERIFY
589	imply NETDEVICES
590	imply BCM_SF2_ETH
591	imply BCM_SF2_ETH_GMAC
592
593config TARGET_BCMNSP
594	bool "Support bcmnsp"
595	select CPU_V7
596
597config TARGET_BCMNS2
598	bool "Support Broadcom Northstar2"
599	select ARM64
600	help
601	  Support for Broadcom Northstar 2 SoCs.  NS2 is a quad-core 64-bit
602	  ARMv8 Cortex-A57 processors targeting a broad range of networking
603	  applications
604
605config ARCH_EXYNOS
606	bool "Samsung EXYNOS"
607	select DM
608	select DM_I2C
609	select DM_SPI_FLASH
610	select DM_SERIAL
611	select DM_SPI
612	select DM_GPIO
613	select DM_KEYBOARD
614	imply FAT_WRITE
615
616config ARCH_S5PC1XX
617	bool "Samsung S5PC1XX"
618	select CPU_V7
619	select DM
620	select DM_SERIAL
621	select DM_GPIO
622	select DM_I2C
623
624config ARCH_HIGHBANK
625	bool "Calxeda Highbank"
626	select CPU_V7
627	select PL011_SERIAL
628
629config ARCH_INTEGRATOR
630	bool "ARM Ltd. Integrator family"
631	select DM
632	select DM_SERIAL
633
634config ARCH_KEYSTONE
635	bool "TI Keystone"
636	select CPU_V7
637	select SUPPORT_SPL
638	select SYS_THUMB_BUILD
639	select CMD_POWEROFF
640	imply CMD_MTDPARTS
641	imply FIT
642	imply CMD_SAVES
643
644config ARCH_OMAP2PLUS
645	bool "TI OMAP2+"
646	select CPU_V7
647	select SPL_BOARD_INIT if SPL
648	select SPL_STACK_R if SPL
649	select SUPPORT_SPL
650	imply FIT
651
652config ARCH_MESON
653	bool "Amlogic Meson"
654	help
655	  Support for the Meson SoC family developed by Amlogic Inc.,
656	  targeted at media players and tablet computers. We currently
657	  support the S905 (GXBaby) 64-bit SoC.
658
659config ARCH_MX25
660	bool "NXP MX25"
661	select CPU_ARM926EJS
662
663config ARCH_MX7ULP
664        bool "NXP MX7ULP"
665        select CPU_V7
666	select ROM_UNIFIED_SECTIONS
667
668config ARCH_MX7
669	bool "Freescale MX7"
670	select CPU_V7
671	select SYS_FSL_HAS_SEC if SECURE_BOOT
672	select SYS_FSL_SEC_COMPAT_4
673	select SYS_FSL_SEC_LE
674	select BOARD_EARLY_INIT_F
675	select ARCH_MISC_INIT
676
677config ARCH_MX6
678	bool "Freescale MX6"
679	select CPU_V7
680	select SYS_FSL_HAS_SEC if SECURE_BOOT
681	select SYS_FSL_SEC_COMPAT_4
682	select SYS_FSL_SEC_LE
683	select SYS_THUMB_BUILD if SPL
684
685if ARCH_MX6
686config SPL_LDSCRIPT
687        default "arch/arm/mach-omap2/u-boot-spl.lds"
688endif
689
690config ARCH_MX5
691	bool "Freescale MX5"
692	select CPU_V7
693	select BOARD_EARLY_INIT_F
694
695config ARCH_QEMU
696	bool "QEMU Virtual Platform"
697	select DM
698	select DM_SERIAL
699	select OF_CONTROL
700
701config ARCH_RMOBILE
702	bool "Renesas ARM SoCs"
703	select DM
704	select DM_SERIAL
705	select BOARD_EARLY_INIT_F
706	imply FAT_WRITE
707	imply SYS_THUMB_BUILD
708
709config TARGET_S32V234EVB
710	bool "Support s32v234evb"
711	select ARM64
712	select SYS_FSL_ERRATUM_ESDHC111
713
714config ARCH_SNAPDRAGON
715	bool "Qualcomm Snapdragon SoCs"
716	select ARM64
717	select DM
718	select DM_GPIO
719	select DM_SERIAL
720	select SPMI
721	select OF_CONTROL
722	select OF_SEPARATE
723
724config ARCH_SOCFPGA
725	bool "Altera SOCFPGA family"
726	select CPU_V7
727	select SUPPORT_SPL
728	select OF_CONTROL
729	select SPL_OF_CONTROL
730	select DM
731	select DM_SPI_FLASH
732	select DM_SPI
733	select ENABLE_ARM_SOC_BOOT0_HOOK
734	select ARCH_EARLY_INIT_R
735	select ARCH_MISC_INIT
736	select SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
737	select SYS_THUMB_BUILD
738	imply CMD_MTDPARTS
739	imply CRC32_VERIFY
740	imply FAT_WRITE
741
742config ARCH_SUNXI
743	bool "Support sunxi (Allwinner) SoCs"
744	select BINMAN
745	select CMD_GPIO
746	select CMD_MMC if MMC
747	select CMD_USB if DISTRO_DEFAULTS
748	select DM
749	select DM_ETH
750	select DM_GPIO
751	select DM_KEYBOARD
752	select DM_SERIAL
753	select DM_USB if DISTRO_DEFAULTS
754	select OF_BOARD_SETUP
755	select OF_CONTROL
756	select OF_SEPARATE
757	select SPL_STACK_R if SPL
758	select SPL_SYS_MALLOC_SIMPLE if SPL
759	select SYS_NS16550
760	select SPL_SYS_THUMB_BUILD if !ARM64
761	select SYS_THUMB_BUILD if !ARM64
762	select USB if DISTRO_DEFAULTS
763	select USB_STORAGE if DISTRO_DEFAULTS
764	select USB_KEYBOARD if DISTRO_DEFAULTS
765	select USE_TINY_PRINTF
766	imply CMD_GPT
767	imply FAT_WRITE
768	imply OF_LIBFDT_OVERLAY
769	imply PRE_CONSOLE_BUFFER
770	imply SPL_GPIO_SUPPORT
771	imply SPL_LIBCOMMON_SUPPORT
772	imply SPL_LIBDISK_SUPPORT
773	imply SPL_LIBGENERIC_SUPPORT
774	imply SPL_MMC_SUPPORT if MMC
775	imply SPL_POWER_SUPPORT
776	imply SPL_SERIAL_SUPPORT
777	imply USB_GADGET
778
779config TARGET_TS4600
780	bool "Support TS4600"
781	select CPU_ARM926EJS
782	select SUPPORT_SPL
783	select PL011_SERIAL
784
785config ARCH_VF610
786	bool "Freescale Vybrid"
787	select CPU_V7
788	select SYS_FSL_ERRATUM_ESDHC111
789	imply CMD_MTDPARTS
790	imply NAND
791
792config ARCH_ZYNQ
793	bool "Xilinx Zynq based platform"
794	select BOARD_LATE_INIT
795	select CPU_V7
796	select SUPPORT_SPL
797	select OF_CONTROL
798	select SPL_BOARD_INIT if SPL
799	select SPL_OF_CONTROL if SPL
800	select DM
801	select DM_ETH
802	select DM_GPIO
803	select SPL_DM if SPL
804	select DM_MMC
805	select DM_SPI
806	select DM_SERIAL
807	select DM_SPI_FLASH
808	select SPL_SEPARATE_BSS if SPL
809	select DM_USB if USB
810	select BLK
811	select CLK
812	select SPL_CLK
813	select CLK_ZYNQ
814	imply CMD_CLK
815	imply FAT_WRITE
816	imply CMD_SPL
817
818config ARCH_ZYNQMP
819	bool "Xilinx ZynqMP based platform"
820	select ARM64
821	select BOARD_LATE_INIT
822	select DM
823	select OF_CONTROL
824	select DM_SERIAL
825	select SUPPORT_SPL
826	select CLK
827	select SPL_BOARD_INIT if SPL
828	select SPL_CLK if SPL
829	select DM_USB if USB
830	imply FAT_WRITE
831
832config TEGRA
833	bool "NVIDIA Tegra"
834	imply FAT_WRITE
835
836config TARGET_VEXPRESS64_AEMV8A
837	bool "Support vexpress_aemv8a"
838	select ARM64
839
840config TARGET_VEXPRESS64_BASE_FVP
841	bool "Support Versatile Express ARMv8a FVP BASE model"
842	select ARM64
843	select SEMIHOSTING
844
845config TARGET_VEXPRESS64_BASE_FVP_DRAM
846	bool "Support Versatile Express ARMv8a FVP BASE model booting from DRAM"
847	select ARM64
848	help
849	  This target is derived from TARGET_VEXPRESS64_BASE_FVP and over-rides
850	  the default config to allow the user to load the images directly into
851	  DRAM using model parameters rather than by using semi-hosting to load
852	  the files from the host filesystem.
853
854config TARGET_VEXPRESS64_JUNO
855	bool "Support Versatile Express Juno Development Platform"
856	select ARM64
857
858config TARGET_LS2080A_EMU
859	bool "Support ls2080a_emu"
860	select ARCH_LS2080A
861	select ARM64
862	select ARMV8_MULTIENTRY
863	select ARCH_MISC_INIT
864	help
865	  Support for Freescale LS2080A_EMU platform
866	  The LS2080A Development System (EMULATOR) is a pre silicon
867	  development platform that supports the QorIQ LS2080A
868	  Layerscape Architecture processor.
869
870config TARGET_LS2080A_SIMU
871	bool "Support ls2080a_simu"
872	select ARCH_LS2080A
873	select ARM64
874	select ARMV8_MULTIENTRY
875	select ARCH_MISC_INIT
876	help
877	  Support for Freescale LS2080A_SIMU platform
878	  The LS2080A Development System (QDS) is a pre silicon
879	  development platform that supports the QorIQ LS2080A
880	  Layerscape Architecture processor.
881
882config TARGET_LS1088AQDS
883	bool "Support ls1088aqds"
884	select ARCH_LS1088A
885	select ARM64
886	select ARMV8_MULTIENTRY
887	select ARCH_MISC_INIT
888	select BOARD_LATE_INIT
889	select SUPPORT_SPL
890	help
891	  Support for NXP LS1088AQDS platform
892	  The LS1088A Development System (QDS) is a high-performance
893	  development platform that supports the QorIQ LS1088A
894	  Layerscape Architecture processor.
895
896config TARGET_LS2080AQDS
897	bool "Support ls2080aqds"
898	select ARCH_LS2080A
899	select ARM64
900	select ARMV8_MULTIENTRY
901	select BOARD_LATE_INIT
902	select SUPPORT_SPL
903	select ARCH_MISC_INIT
904	imply SCSI
905	imply SCSI_AHCI
906	help
907	  Support for Freescale LS2080AQDS platform
908	  The LS2080A Development System (QDS) is a high-performance
909	  development platform that supports the QorIQ LS2080A
910	  Layerscape Architecture processor.
911
912config TARGET_LS2080ARDB
913	bool "Support ls2080ardb"
914	select ARCH_LS2080A
915	select ARM64
916	select ARMV8_MULTIENTRY
917	select BOARD_LATE_INIT
918	select SUPPORT_SPL
919	select ARCH_MISC_INIT
920	imply SCSI
921	imply SCSI_AHCI
922	help
923	  Support for Freescale LS2080ARDB platform.
924	  The LS2080A Reference design board (RDB) is a high-performance
925	  development platform that supports the QorIQ LS2080A
926	  Layerscape Architecture processor.
927
928config TARGET_LS2081ARDB
929	bool "Support ls2081ardb"
930	select ARCH_LS2080A
931	select ARM64
932	select ARMV8_MULTIENTRY
933	select BOARD_LATE_INIT
934	select SUPPORT_SPL
935	select ARCH_MISC_INIT
936	help
937	  Support for Freescale LS2081ARDB platform.
938	  The LS2081A Reference design board (RDB) is a high-performance
939	  development platform that supports the QorIQ LS2081A/LS2041A
940	  Layerscape Architecture processor.
941
942config TARGET_HIKEY
943	bool "Support HiKey 96boards Consumer Edition Platform"
944	select ARM64
945	select DM
946	select DM_GPIO
947	select DM_SERIAL
948	select OF_CONTROL
949	  help
950	  Support for HiKey 96boards platform. It features a HI6220
951	  SoC, with 8xA53 CPU, mali450 gpu, and 1GB RAM.
952
953config TARGET_POPLAR
954	bool "Support Poplar 96boards Enterprise Edition Platform"
955	select ARM64
956	select DM
957	select OF_CONTROL
958	select DM_SERIAL
959	select DM_USB
960	  help
961	  Support for Poplar 96boards EE platform. It features a HI3798cv200
962	  SoC, with 4xA53 CPU, 1GB RAM and the high performance Mali T720 GPU
963	  making it capable of running any commercial set-top solution based on
964	  Linux or Android.
965
966config TARGET_LS1012AQDS
967	bool "Support ls1012aqds"
968	select ARCH_LS1012A
969	select ARM64
970	select BOARD_LATE_INIT
971	help
972	  Support for Freescale LS1012AQDS platform.
973	  The LS1012A Development System (QDS) is a high-performance
974	  development platform that supports the QorIQ LS1012A
975	  Layerscape Architecture processor.
976
977config TARGET_LS1012ARDB
978	bool "Support ls1012ardb"
979	select ARCH_LS1012A
980	select ARM64
981	select BOARD_LATE_INIT
982	imply SCSI
983	imply SCSI_AHCI
984	help
985	  Support for Freescale LS1012ARDB platform.
986	  The LS1012A Reference design board (RDB) is a high-performance
987	  development platform that supports the QorIQ LS1012A
988	  Layerscape Architecture processor.
989
990config TARGET_LS1012A2G5RDB
991	bool "Support ls1012a2g5rdb"
992	select ARCH_LS1012A
993	select ARM64
994	select BOARD_LATE_INIT
995	imply SCSI
996	help
997	  Support for Freescale LS1012A2G5RDB platform.
998	  The LS1012A 2G5 Reference design board (RDB) is a high-performance
999	  development platform that supports the QorIQ LS1012A
1000	  Layerscape Architecture processor.
1001
1002config TARGET_LS1012AFRDM
1003	bool "Support ls1012afrdm"
1004	select ARCH_LS1012A
1005	select ARM64
1006	help
1007	  Support for Freescale LS1012AFRDM platform.
1008	  The LS1012A Freedom  board (FRDM) is a high-performance
1009	  development platform that supports the QorIQ LS1012A
1010	  Layerscape Architecture processor.
1011
1012config TARGET_LS1088ARDB
1013	bool "Support ls1088ardb"
1014	select ARCH_LS1088A
1015	select ARM64
1016	select ARMV8_MULTIENTRY
1017	select ARCH_MISC_INIT
1018	select BOARD_LATE_INIT
1019	select SUPPORT_SPL
1020	help
1021	  Support for NXP LS1088ARDB platform.
1022	  The LS1088A Reference design board (RDB) is a high-performance
1023	  development platform that supports the QorIQ LS1088A
1024	  Layerscape Architecture processor.
1025
1026config TARGET_LS1021AQDS
1027	bool "Support ls1021aqds"
1028	select BOARD_LATE_INIT
1029	select CPU_V7
1030	select CPU_V7_HAS_NONSEC
1031	select CPU_V7_HAS_VIRT
1032	select SUPPORT_SPL
1033	select ARCH_LS1021A
1034	select ARCH_SUPPORT_PSCI
1035	select LS1_DEEP_SLEEP
1036	select SYS_FSL_DDR
1037	select BOARD_EARLY_INIT_F
1038	imply SCSI
1039
1040config TARGET_LS1021ATWR
1041	bool "Support ls1021atwr"
1042	select BOARD_LATE_INIT
1043	select CPU_V7
1044	select CPU_V7_HAS_NONSEC
1045	select CPU_V7_HAS_VIRT
1046	select SUPPORT_SPL
1047	select ARCH_LS1021A
1048	select ARCH_SUPPORT_PSCI
1049	select LS1_DEEP_SLEEP
1050	select BOARD_EARLY_INIT_F
1051	imply SCSI
1052
1053config TARGET_LS1021AIOT
1054	bool "Support ls1021aiot"
1055	select BOARD_LATE_INIT
1056	select CPU_V7
1057	select CPU_V7_HAS_NONSEC
1058	select CPU_V7_HAS_VIRT
1059	select SUPPORT_SPL
1060	select ARCH_LS1021A
1061	select ARCH_SUPPORT_PSCI
1062	imply SCSI
1063	help
1064	  Support for Freescale LS1021AIOT platform.
1065	  The LS1021A Freescale board (IOT) is a high-performance
1066	  development platform that supports the QorIQ LS1021A
1067	  Layerscape Architecture processor.
1068
1069config TARGET_LS1043AQDS
1070	bool "Support ls1043aqds"
1071	select ARCH_LS1043A
1072	select ARM64
1073	select ARMV8_MULTIENTRY
1074	select BOARD_LATE_INIT
1075	select SUPPORT_SPL
1076	select BOARD_EARLY_INIT_F
1077	imply SCSI
1078	help
1079	  Support for Freescale LS1043AQDS platform.
1080
1081config TARGET_LS1043ARDB
1082	bool "Support ls1043ardb"
1083	select ARCH_LS1043A
1084	select ARM64
1085	select ARMV8_MULTIENTRY
1086	select BOARD_LATE_INIT
1087	select SUPPORT_SPL
1088	select BOARD_EARLY_INIT_F
1089	imply SCSI
1090	help
1091	  Support for Freescale LS1043ARDB platform.
1092
1093config TARGET_LS1046AQDS
1094	bool "Support ls1046aqds"
1095	select ARCH_LS1046A
1096	select ARM64
1097	select ARMV8_MULTIENTRY
1098	select BOARD_LATE_INIT
1099	select SUPPORT_SPL
1100	select DM_SPI_FLASH if DM_SPI
1101	select BOARD_EARLY_INIT_F
1102	imply SCSI
1103	help
1104	  Support for Freescale LS1046AQDS platform.
1105	  The LS1046A Development System (QDS) is a high-performance
1106	  development platform that supports the QorIQ LS1046A
1107	  Layerscape Architecture processor.
1108
1109config TARGET_LS1046ARDB
1110	bool "Support ls1046ardb"
1111	select ARCH_LS1046A
1112	select ARM64
1113	select ARMV8_MULTIENTRY
1114	select BOARD_LATE_INIT
1115	select SUPPORT_SPL
1116	select DM_SPI_FLASH if DM_SPI
1117	select POWER_MC34VR500
1118	select BOARD_EARLY_INIT_F
1119	imply SCSI
1120	help
1121	  Support for Freescale LS1046ARDB platform.
1122	  The LS1046A Reference Design Board (RDB) is a high-performance
1123	  development platform that supports the QorIQ LS1046A
1124	  Layerscape Architecture processor.
1125
1126config TARGET_H2200
1127	bool "Support h2200"
1128	select CPU_PXA
1129
1130config TARGET_ZIPITZ2
1131	bool "Support zipitz2"
1132	select CPU_PXA
1133
1134config TARGET_COLIBRI_PXA270
1135	bool "Support colibri_pxa270"
1136	select CPU_PXA
1137
1138config ARCH_UNIPHIER
1139	bool "Socionext UniPhier SoCs"
1140	select BOARD_LATE_INIT
1141	select DM
1142	select DM_GPIO
1143	select DM_I2C
1144	select DM_MMC
1145	select DM_RESET
1146	select DM_SERIAL
1147	select DM_USB
1148	select OF_CONTROL
1149	select OF_LIBFDT
1150	select PINCTRL
1151	select SPL_BOARD_INIT if SPL
1152	select SPL_DM if SPL
1153	select SPL_LIBCOMMON_SUPPORT if SPL
1154	select SPL_LIBGENERIC_SUPPORT if SPL
1155	select SPL_OF_CONTROL if SPL
1156	select SPL_PINCTRL if SPL
1157	select SUPPORT_SPL
1158	imply FAT_WRITE
1159	help
1160	  Support for UniPhier SoC family developed by Socionext Inc.
1161	  (formerly, System LSI Business Division of Panasonic Corporation)
1162
1163config STM32
1164	bool "Support STM32"
1165	select CPU_V7M
1166	select DM
1167	select DM_SERIAL
1168	select SYS_THUMB_BUILD
1169
1170config ARCH_STI
1171	bool "Support STMicrolectronics SoCs"
1172	select CPU_V7
1173	select DM
1174	select DM_SERIAL
1175	select BLK
1176	select DM_MMC
1177	select DM_RESET
1178	help
1179	  Support for STMicroelectronics STiH407/10 SoC family.
1180	  This SoC is used on Linaro 96Board STiH410-B2260
1181
1182config ARCH_ROCKCHIP
1183	bool "Support Rockchip SoCs"
1184	select OF_CONTROL
1185	select BLK
1186	select DM
1187	select SPL_DM if SPL
1188	select SYS_MALLOC_F
1189	select SYS_THUMB_BUILD if !ARM64
1190	select SPL_SYS_MALLOC_SIMPLE if SPL
1191	select DM_GPIO
1192	select DM_I2C
1193	select DM_MMC
1194	select DM_SERIAL
1195	select DM_SPI
1196	select DM_SPI_FLASH
1197	select DM_USB if USB
1198	select DM_PWM
1199	select DM_REGULATOR
1200	select ENABLE_ARM_SOC_BOOT0_HOOK
1201	imply CMD_FASTBOOT
1202	imply FASTBOOT
1203	imply FAT_WRITE
1204	imply USB_FUNCTION_FASTBOOT
1205	imply SPL_SYSRESET
1206	imply TPL_SYSRESET
1207	imply ADC
1208	imply SARADC_ROCKCHIP
1209
1210config TARGET_THUNDERX_88XX
1211	bool "Support ThunderX 88xx"
1212	select ARM64
1213	select OF_CONTROL
1214	select SYS_CACHE_SHIFT_7
1215
1216config ARCH_ASPEED
1217	bool "Support Aspeed SoCs"
1218	select OF_CONTROL
1219	select DM
1220
1221endchoice
1222
1223source "arch/arm/mach-aspeed/Kconfig"
1224
1225source "arch/arm/mach-at91/Kconfig"
1226
1227source "arch/arm/mach-bcm283x/Kconfig"
1228
1229source "arch/arm/mach-davinci/Kconfig"
1230
1231source "arch/arm/mach-exynos/Kconfig"
1232
1233source "arch/arm/mach-highbank/Kconfig"
1234
1235source "arch/arm/mach-integrator/Kconfig"
1236
1237source "arch/arm/mach-keystone/Kconfig"
1238
1239source "arch/arm/mach-kirkwood/Kconfig"
1240
1241source "arch/arm/mach-mvebu/Kconfig"
1242
1243source "arch/arm/cpu/armv7/ls102xa/Kconfig"
1244
1245source "arch/arm/mach-imx/mx2/Kconfig"
1246
1247source "arch/arm/mach-imx/mx7ulp/Kconfig"
1248
1249source "arch/arm/mach-imx/mx7/Kconfig"
1250
1251source "arch/arm/mach-imx/mx6/Kconfig"
1252
1253source "arch/arm/mach-imx/mx5/Kconfig"
1254
1255source "arch/arm/mach-omap2/Kconfig"
1256
1257source "arch/arm/cpu/armv8/fsl-layerscape/Kconfig"
1258
1259source "arch/arm/mach-orion5x/Kconfig"
1260
1261source "arch/arm/mach-rmobile/Kconfig"
1262
1263source "arch/arm/mach-meson/Kconfig"
1264
1265source "arch/arm/mach-qemu/Kconfig"
1266
1267source "arch/arm/mach-rockchip/Kconfig"
1268
1269source "arch/arm/mach-s5pc1xx/Kconfig"
1270
1271source "arch/arm/mach-snapdragon/Kconfig"
1272
1273source "arch/arm/mach-socfpga/Kconfig"
1274
1275source "arch/arm/mach-sti/Kconfig"
1276
1277source "arch/arm/mach-stm32/Kconfig"
1278
1279source "arch/arm/mach-sunxi/Kconfig"
1280
1281source "arch/arm/mach-tegra/Kconfig"
1282
1283source "arch/arm/mach-uniphier/Kconfig"
1284
1285source "arch/arm/cpu/armv7/vf610/Kconfig"
1286
1287source "arch/arm/mach-zynq/Kconfig"
1288
1289source "arch/arm/cpu/armv7/Kconfig"
1290
1291source "arch/arm/cpu/armv8/zynqmp/Kconfig"
1292
1293source "arch/arm/cpu/armv8/Kconfig"
1294
1295source "arch/arm/mach-imx/Kconfig"
1296
1297source "board/aries/m28evk/Kconfig"
1298source "board/bosch/shc/Kconfig"
1299source "board/CarMediaLab/flea3/Kconfig"
1300source "board/Marvell/aspenite/Kconfig"
1301source "board/Marvell/gplugd/Kconfig"
1302source "board/armadeus/apf27/Kconfig"
1303source "board/armltd/vexpress/Kconfig"
1304source "board/armltd/vexpress64/Kconfig"
1305source "board/bluegiga/apx4devkit/Kconfig"
1306source "board/broadcom/bcm23550_w1d/Kconfig"
1307source "board/broadcom/bcm28155_ap/Kconfig"
1308source "board/broadcom/bcmcygnus/Kconfig"
1309source "board/broadcom/bcmnsp/Kconfig"
1310source "board/broadcom/bcmns2/Kconfig"
1311source "board/cavium/thunderx/Kconfig"
1312source "board/cirrus/edb93xx/Kconfig"
1313source "board/creative/xfi3/Kconfig"
1314source "board/eets/pdu001/Kconfig"
1315source "board/freescale/ls2080a/Kconfig"
1316source "board/freescale/ls2080aqds/Kconfig"
1317source "board/freescale/ls2080ardb/Kconfig"
1318source "board/freescale/ls1088a/Kconfig"
1319source "board/freescale/ls1021aqds/Kconfig"
1320source "board/freescale/ls1043aqds/Kconfig"
1321source "board/freescale/ls1021atwr/Kconfig"
1322source "board/freescale/ls1021aiot/Kconfig"
1323source "board/freescale/ls1046aqds/Kconfig"
1324source "board/freescale/ls1043ardb/Kconfig"
1325source "board/freescale/ls1046ardb/Kconfig"
1326source "board/freescale/ls1012aqds/Kconfig"
1327source "board/freescale/ls1012ardb/Kconfig"
1328source "board/freescale/ls1012afrdm/Kconfig"
1329source "board/freescale/mx23evk/Kconfig"
1330source "board/freescale/mx28evk/Kconfig"
1331source "board/freescale/mx31ads/Kconfig"
1332source "board/freescale/mx31pdk/Kconfig"
1333source "board/freescale/mx35pdk/Kconfig"
1334source "board/freescale/s32v234evb/Kconfig"
1335source "board/gdsys/a38x/Kconfig"
1336source "board/grinn/chiliboard/Kconfig"
1337source "board/gumstix/pepper/Kconfig"
1338source "board/h2200/Kconfig"
1339source "board/hisilicon/hikey/Kconfig"
1340source "board/hisilicon/poplar/Kconfig"
1341source "board/imx31_phycore/Kconfig"
1342source "board/isee/igep003x/Kconfig"
1343source "board/olimex/mx23_olinuxino/Kconfig"
1344source "board/phytec/pcm051/Kconfig"
1345source "board/ppcag/bg0900/Kconfig"
1346source "board/sandisk/sansa_fuze_plus/Kconfig"
1347source "board/schulercontrol/sc_sps_1/Kconfig"
1348source "board/silica/pengwyn/Kconfig"
1349source "board/spear/spear300/Kconfig"
1350source "board/spear/spear310/Kconfig"
1351source "board/spear/spear320/Kconfig"
1352source "board/spear/spear600/Kconfig"
1353source "board/spear/x600/Kconfig"
1354source "board/st/stv0991/Kconfig"
1355source "board/tcl/sl50/Kconfig"
1356source "board/birdland/bav335x/Kconfig"
1357source "board/timll/devkit3250/Kconfig"
1358source "board/toradex/colibri_pxa270/Kconfig"
1359source "board/technologic/ts4600/Kconfig"
1360source "board/vscom/baltos/Kconfig"
1361source "board/woodburn/Kconfig"
1362source "board/work-microwave/work_92105/Kconfig"
1363source "board/zipitz2/Kconfig"
1364
1365source "arch/arm/Kconfig.debug"
1366
1367endmenu
1368
1369config SPL_LDSCRIPT
1370        default "arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds" if TARGET_APX4DEVKIT || TARGET_BG0900 || TARGET_M28EVK || TARGET_MX23_OLINUXINO || TARGET_MX23EVK || TARGET_MX28EVK || TARGET_SANSA_FUZE_PLUS || TARGET_SC_SPS_1 || TARGET_TS4600 || TARGET_XFI3
1371        default "arch/arm/cpu/arm1136/u-boot-spl.lds" if CPU_ARM1136
1372	default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARM64
1373
1374
1375