xref: /openbmc/u-boot/arch/arm/Kconfig (revision 52df705c)
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	select PL01X_SERIAL
497
498config TARGET_X600
499	bool "Support x600"
500	select BOARD_LATE_INIT
501	select CPU_ARM926EJS
502	select SUPPORT_SPL
503	select PL011_SERIAL
504
505config TARGET_IMX31_PHYCORE
506	bool "Support imx31_phycore_eet"
507	select CPU_ARM1136
508	select BOARD_EARLY_INIT_F
509
510config TARGET_IMX31_PHYCORE_EET
511	bool "Support imx31_phycore_eet"
512	select BOARD_LATE_INIT
513	select CPU_ARM1136
514	select BOARD_EARLY_INIT_F
515
516config TARGET_MX31ADS
517	bool "Support mx31ads"
518	select CPU_ARM1136
519	select BOARD_EARLY_INIT_F
520
521config TARGET_MX31PDK
522	bool "Support mx31pdk"
523	select BOARD_LATE_INIT
524	select CPU_ARM1136
525	select SUPPORT_SPL
526	select BOARD_EARLY_INIT_F
527
528config TARGET_WOODBURN
529	bool "Support woodburn"
530	select CPU_ARM1136
531
532config TARGET_WOODBURN_SD
533	bool "Support woodburn_sd"
534	select CPU_ARM1136
535	select SUPPORT_SPL
536
537config TARGET_FLEA3
538	bool "Support flea3"
539	select CPU_ARM1136
540
541config TARGET_MX35PDK
542	bool "Support mx35pdk"
543	select BOARD_LATE_INIT
544	select CPU_ARM1136
545
546config ARCH_BCM283X
547	bool "Broadcom BCM283X family"
548	select DM
549	select DM_SERIAL
550	select DM_GPIO
551	select OF_CONTROL
552	select PL01X_SERIAL
553	select SERIAL_SEARCH_ALL
554	imply FAT_WRITE
555
556config TARGET_VEXPRESS_CA15_TC2
557	bool "Support vexpress_ca15_tc2"
558	select CPU_V7
559	select CPU_V7_HAS_NONSEC
560	select CPU_V7_HAS_VIRT
561	select PL011_SERIAL
562
563config TARGET_VEXPRESS_CA5X2
564	bool "Support vexpress_ca5x2"
565	select CPU_V7
566	select PL011_SERIAL
567
568config TARGET_VEXPRESS_CA9X4
569	bool "Support vexpress_ca9x4"
570	select CPU_V7
571	select PL011_SERIAL
572
573config TARGET_BCM23550_W1D
574	bool "Support bcm23550_w1d"
575	select CPU_V7
576	imply CRC32_VERIFY
577	imply FAT_WRITE
578
579config TARGET_BCM28155_AP
580	bool "Support bcm28155_ap"
581	select CPU_V7
582	imply CRC32_VERIFY
583	imply FAT_WRITE
584
585config TARGET_BCMCYGNUS
586	bool "Support bcmcygnus"
587	select CPU_V7
588	imply CRC32_VERIFY
589	imply CMD_HASH
590	imply FAT_WRITE
591	imply HASH_VERIFY
592	imply NETDEVICES
593	imply BCM_SF2_ETH
594	imply BCM_SF2_ETH_GMAC
595
596config TARGET_BCMNSP
597	bool "Support bcmnsp"
598	select CPU_V7
599
600config TARGET_BCMNS2
601	bool "Support Broadcom Northstar2"
602	select ARM64
603	help
604	  Support for Broadcom Northstar 2 SoCs.  NS2 is a quad-core 64-bit
605	  ARMv8 Cortex-A57 processors targeting a broad range of networking
606	  applications
607
608config ARCH_EXYNOS
609	bool "Samsung EXYNOS"
610	select DM
611	select DM_I2C
612	select DM_SPI_FLASH
613	select DM_SERIAL
614	select DM_SPI
615	select DM_GPIO
616	select DM_KEYBOARD
617	imply FAT_WRITE
618
619config ARCH_S5PC1XX
620	bool "Samsung S5PC1XX"
621	select CPU_V7
622	select DM
623	select DM_SERIAL
624	select DM_GPIO
625	select DM_I2C
626
627config ARCH_HIGHBANK
628	bool "Calxeda Highbank"
629	select CPU_V7
630	select PL011_SERIAL
631
632config ARCH_INTEGRATOR
633	bool "ARM Ltd. Integrator family"
634	select DM
635	select DM_SERIAL
636	select PL01X_SERIAL
637
638config ARCH_KEYSTONE
639	bool "TI Keystone"
640	select CPU_V7
641	select SUPPORT_SPL
642	select SYS_THUMB_BUILD
643	select CMD_POWEROFF
644	imply CMD_MTDPARTS
645	imply FIT
646	imply CMD_SAVES
647
648config ARCH_OMAP2PLUS
649	bool "TI OMAP2+"
650	select CPU_V7
651	select SPL_BOARD_INIT if SPL
652	select SPL_STACK_R if SPL
653	select SUPPORT_SPL
654	imply FIT
655
656config ARCH_MESON
657	bool "Amlogic Meson"
658	help
659	  Support for the Meson SoC family developed by Amlogic Inc.,
660	  targeted at media players and tablet computers. We currently
661	  support the S905 (GXBaby) 64-bit SoC.
662
663config ARCH_MX8M
664	bool "NXP i.MX8M platform"
665	select ARM64
666	select DM
667	select SUPPORT_SPL
668
669config ARCH_MX25
670	bool "NXP MX25"
671	select CPU_ARM926EJS
672
673config ARCH_MX7ULP
674        bool "NXP MX7ULP"
675        select CPU_V7
676	select ROM_UNIFIED_SECTIONS
677
678config ARCH_MX7
679	bool "Freescale MX7"
680	select CPU_V7
681	select SYS_FSL_HAS_SEC if SECURE_BOOT
682	select SYS_FSL_SEC_COMPAT_4
683	select SYS_FSL_SEC_LE
684	select BOARD_EARLY_INIT_F
685	select ARCH_MISC_INIT
686
687config ARCH_MX6
688	bool "Freescale MX6"
689	select CPU_V7
690	select SYS_FSL_HAS_SEC if SECURE_BOOT
691	select SYS_FSL_SEC_COMPAT_4
692	select SYS_FSL_SEC_LE
693	select SYS_THUMB_BUILD if SPL
694
695if ARCH_MX6
696config SPL_LDSCRIPT
697        default "arch/arm/mach-omap2/u-boot-spl.lds"
698endif
699
700config ARCH_MX5
701	bool "Freescale MX5"
702	select CPU_V7
703	select BOARD_EARLY_INIT_F
704
705config ARCH_QEMU
706	bool "QEMU Virtual Platform"
707	select DM
708	select DM_SERIAL
709	select OF_CONTROL
710	select PL01X_SERIAL
711
712config ARCH_RMOBILE
713	bool "Renesas ARM SoCs"
714	select DM
715	select DM_SERIAL
716	select BOARD_EARLY_INIT_F
717	imply FAT_WRITE
718	imply SYS_THUMB_BUILD
719
720config TARGET_S32V234EVB
721	bool "Support s32v234evb"
722	select ARM64
723	select SYS_FSL_ERRATUM_ESDHC111
724
725config ARCH_SNAPDRAGON
726	bool "Qualcomm Snapdragon SoCs"
727	select ARM64
728	select DM
729	select DM_GPIO
730	select DM_SERIAL
731	select SPMI
732	select OF_CONTROL
733	select OF_SEPARATE
734
735config ARCH_SOCFPGA
736	bool "Altera SOCFPGA family"
737	select CPU_V7
738	select SUPPORT_SPL
739	select OF_CONTROL
740	select SPL_OF_CONTROL
741	select DM
742	select DM_SPI_FLASH
743	select DM_SPI
744	select ENABLE_ARM_SOC_BOOT0_HOOK
745	select ARCH_EARLY_INIT_R
746	select ARCH_MISC_INIT
747	select SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
748	select SYS_THUMB_BUILD
749	imply CMD_MTDPARTS
750	imply CRC32_VERIFY
751	imply FAT_WRITE
752
753config ARCH_SUNXI
754	bool "Support sunxi (Allwinner) SoCs"
755	select BINMAN
756	select CMD_GPIO
757	select CMD_MMC if MMC
758	select CMD_USB if DISTRO_DEFAULTS
759	select DM
760	select DM_ETH
761	select DM_GPIO
762	select DM_KEYBOARD
763	select DM_SERIAL
764	select DM_USB if DISTRO_DEFAULTS
765	select OF_BOARD_SETUP
766	select OF_CONTROL
767	select OF_SEPARATE
768	select SPL_STACK_R if SPL
769	select SPL_SYS_MALLOC_SIMPLE if SPL
770	select SYS_NS16550
771	select SPL_SYS_THUMB_BUILD if !ARM64
772	select SYS_THUMB_BUILD if !ARM64
773	select USB if DISTRO_DEFAULTS
774	select USB_STORAGE if DISTRO_DEFAULTS
775	select USB_KEYBOARD if DISTRO_DEFAULTS
776	select USE_TINY_PRINTF
777	imply CMD_GPT
778	imply FAT_WRITE
779	imply OF_LIBFDT_OVERLAY
780	imply PRE_CONSOLE_BUFFER
781	imply SPL_GPIO_SUPPORT
782	imply SPL_LIBCOMMON_SUPPORT
783	imply SPL_LIBDISK_SUPPORT
784	imply SPL_LIBGENERIC_SUPPORT
785	imply SPL_MMC_SUPPORT if MMC
786	imply SPL_POWER_SUPPORT
787	imply SPL_SERIAL_SUPPORT
788	imply USB_GADGET
789
790config TARGET_TS4600
791	bool "Support TS4600"
792	select CPU_ARM926EJS
793	select SUPPORT_SPL
794	select PL011_SERIAL
795
796config ARCH_VF610
797	bool "Freescale Vybrid"
798	select CPU_V7
799	select SYS_FSL_ERRATUM_ESDHC111
800	imply CMD_MTDPARTS
801	imply NAND
802
803config ARCH_ZYNQ
804	bool "Xilinx Zynq based platform"
805	select BOARD_LATE_INIT
806	select CPU_V7
807	select SUPPORT_SPL
808	select OF_CONTROL
809	select SPL_BOARD_INIT if SPL
810	select SPL_OF_CONTROL if SPL
811	select DM
812	select DM_ETH if NET
813	select SPL_DM if SPL
814	select DM_MMC if MMC
815	select DM_SPI
816	select DM_SERIAL
817	select DM_SPI_FLASH
818	select SPL_SEPARATE_BSS if SPL
819	select DM_USB if USB
820	select CLK
821	select SPL_CLK if SPL
822	select CLK_ZYNQ
823	imply CMD_CLK
824	imply FAT_WRITE
825	imply CMD_SPL
826
827config ARCH_ZYNQMP
828	bool "Xilinx ZynqMP based platform"
829	select ARM64
830	select BOARD_LATE_INIT
831	select DM
832	select OF_CONTROL
833	select DM_SERIAL
834	select SUPPORT_SPL
835	select CLK
836	select SPL_BOARD_INIT if SPL
837	select SPL_CLK if SPL
838	select DM_USB if USB
839	imply FAT_WRITE
840
841config TEGRA
842	bool "NVIDIA Tegra"
843	imply FAT_WRITE
844
845config TARGET_VEXPRESS64_AEMV8A
846	bool "Support vexpress_aemv8a"
847	select ARM64
848	select PL01X_SERIAL
849
850config TARGET_VEXPRESS64_BASE_FVP
851	bool "Support Versatile Express ARMv8a FVP BASE model"
852	select ARM64
853	select SEMIHOSTING
854	select PL01X_SERIAL
855
856config TARGET_VEXPRESS64_BASE_FVP_DRAM
857	bool "Support Versatile Express ARMv8a FVP BASE model booting from DRAM"
858	select ARM64
859	select PL01X_SERIAL
860	help
861	  This target is derived from TARGET_VEXPRESS64_BASE_FVP and over-rides
862	  the default config to allow the user to load the images directly into
863	  DRAM using model parameters rather than by using semi-hosting to load
864	  the files from the host filesystem.
865
866config TARGET_VEXPRESS64_JUNO
867	bool "Support Versatile Express Juno Development Platform"
868	select ARM64
869	select PL01X_SERIAL
870
871config TARGET_LS2080A_EMU
872	bool "Support ls2080a_emu"
873	select ARCH_LS2080A
874	select ARM64
875	select ARMV8_MULTIENTRY
876	select ARCH_MISC_INIT
877	help
878	  Support for Freescale LS2080A_EMU platform
879	  The LS2080A Development System (EMULATOR) is a pre silicon
880	  development platform that supports the QorIQ LS2080A
881	  Layerscape Architecture processor.
882
883config TARGET_LS2080A_SIMU
884	bool "Support ls2080a_simu"
885	select ARCH_LS2080A
886	select ARM64
887	select ARMV8_MULTIENTRY
888	select ARCH_MISC_INIT
889	help
890	  Support for Freescale LS2080A_SIMU platform
891	  The LS2080A Development System (QDS) is a pre silicon
892	  development platform that supports the QorIQ LS2080A
893	  Layerscape Architecture processor.
894
895config TARGET_LS1088AQDS
896	bool "Support ls1088aqds"
897	select ARCH_LS1088A
898	select ARM64
899	select ARMV8_MULTIENTRY
900	select ARCH_MISC_INIT
901	select BOARD_LATE_INIT
902	select SUPPORT_SPL
903	help
904	  Support for NXP LS1088AQDS platform
905	  The LS1088A Development System (QDS) is a high-performance
906	  development platform that supports the QorIQ LS1088A
907	  Layerscape Architecture processor.
908
909config TARGET_LS2080AQDS
910	bool "Support ls2080aqds"
911	select ARCH_LS2080A
912	select ARM64
913	select ARMV8_MULTIENTRY
914	select BOARD_LATE_INIT
915	select SUPPORT_SPL
916	select ARCH_MISC_INIT
917	imply SCSI
918	imply SCSI_AHCI
919	help
920	  Support for Freescale LS2080AQDS platform
921	  The LS2080A Development System (QDS) is a high-performance
922	  development platform that supports the QorIQ LS2080A
923	  Layerscape Architecture processor.
924
925config TARGET_LS2080ARDB
926	bool "Support ls2080ardb"
927	select ARCH_LS2080A
928	select ARM64
929	select ARMV8_MULTIENTRY
930	select BOARD_LATE_INIT
931	select SUPPORT_SPL
932	select ARCH_MISC_INIT
933	imply SCSI
934	imply SCSI_AHCI
935	help
936	  Support for Freescale LS2080ARDB platform.
937	  The LS2080A Reference design board (RDB) is a high-performance
938	  development platform that supports the QorIQ LS2080A
939	  Layerscape Architecture processor.
940
941config TARGET_LS2081ARDB
942	bool "Support ls2081ardb"
943	select ARCH_LS2080A
944	select ARM64
945	select ARMV8_MULTIENTRY
946	select BOARD_LATE_INIT
947	select SUPPORT_SPL
948	select ARCH_MISC_INIT
949	help
950	  Support for Freescale LS2081ARDB platform.
951	  The LS2081A Reference design board (RDB) is a high-performance
952	  development platform that supports the QorIQ LS2081A/LS2041A
953	  Layerscape Architecture processor.
954
955config TARGET_HIKEY
956	bool "Support HiKey 96boards Consumer Edition Platform"
957	select ARM64
958	select DM
959	select DM_GPIO
960	select DM_SERIAL
961	select OF_CONTROL
962	select PL01X_SERIAL
963	  help
964	  Support for HiKey 96boards platform. It features a HI6220
965	  SoC, with 8xA53 CPU, mali450 gpu, and 1GB RAM.
966
967config TARGET_POPLAR
968	bool "Support Poplar 96boards Enterprise Edition Platform"
969	select ARM64
970	select DM
971	select OF_CONTROL
972	select DM_SERIAL
973	select DM_USB
974	select PL01X_SERIAL
975	  help
976	  Support for Poplar 96boards EE platform. It features a HI3798cv200
977	  SoC, with 4xA53 CPU, 1GB RAM and the high performance Mali T720 GPU
978	  making it capable of running any commercial set-top solution based on
979	  Linux or Android.
980
981config TARGET_LS1012AQDS
982	bool "Support ls1012aqds"
983	select ARCH_LS1012A
984	select ARM64
985	select BOARD_LATE_INIT
986	help
987	  Support for Freescale LS1012AQDS platform.
988	  The LS1012A Development System (QDS) is a high-performance
989	  development platform that supports the QorIQ LS1012A
990	  Layerscape Architecture processor.
991
992config TARGET_LS1012ARDB
993	bool "Support ls1012ardb"
994	select ARCH_LS1012A
995	select ARM64
996	select BOARD_LATE_INIT
997	imply SCSI
998	imply SCSI_AHCI
999	help
1000	  Support for Freescale LS1012ARDB platform.
1001	  The LS1012A Reference design board (RDB) is a high-performance
1002	  development platform that supports the QorIQ LS1012A
1003	  Layerscape Architecture processor.
1004
1005config TARGET_LS1012A2G5RDB
1006	bool "Support ls1012a2g5rdb"
1007	select ARCH_LS1012A
1008	select ARM64
1009	select BOARD_LATE_INIT
1010	imply SCSI
1011	help
1012	  Support for Freescale LS1012A2G5RDB platform.
1013	  The LS1012A 2G5 Reference design board (RDB) is a high-performance
1014	  development platform that supports the QorIQ LS1012A
1015	  Layerscape Architecture processor.
1016
1017config TARGET_LS1012AFRDM
1018	bool "Support ls1012afrdm"
1019	select ARCH_LS1012A
1020	select ARM64
1021	help
1022	  Support for Freescale LS1012AFRDM platform.
1023	  The LS1012A Freedom  board (FRDM) is a high-performance
1024	  development platform that supports the QorIQ LS1012A
1025	  Layerscape Architecture processor.
1026
1027config TARGET_LS1088ARDB
1028	bool "Support ls1088ardb"
1029	select ARCH_LS1088A
1030	select ARM64
1031	select ARMV8_MULTIENTRY
1032	select ARCH_MISC_INIT
1033	select BOARD_LATE_INIT
1034	select SUPPORT_SPL
1035	help
1036	  Support for NXP LS1088ARDB platform.
1037	  The LS1088A Reference design board (RDB) is a high-performance
1038	  development platform that supports the QorIQ LS1088A
1039	  Layerscape Architecture processor.
1040
1041config TARGET_LS1021AQDS
1042	bool "Support ls1021aqds"
1043	select BOARD_LATE_INIT
1044	select CPU_V7
1045	select CPU_V7_HAS_NONSEC
1046	select CPU_V7_HAS_VIRT
1047	select SUPPORT_SPL
1048	select ARCH_LS1021A
1049	select ARCH_SUPPORT_PSCI
1050	select LS1_DEEP_SLEEP
1051	select SYS_FSL_DDR
1052	select BOARD_EARLY_INIT_F
1053	imply SCSI
1054
1055config TARGET_LS1021ATWR
1056	bool "Support ls1021atwr"
1057	select BOARD_LATE_INIT
1058	select CPU_V7
1059	select CPU_V7_HAS_NONSEC
1060	select CPU_V7_HAS_VIRT
1061	select SUPPORT_SPL
1062	select ARCH_LS1021A
1063	select ARCH_SUPPORT_PSCI
1064	select LS1_DEEP_SLEEP
1065	select BOARD_EARLY_INIT_F
1066	imply SCSI
1067
1068config TARGET_LS1021AIOT
1069	bool "Support ls1021aiot"
1070	select BOARD_LATE_INIT
1071	select CPU_V7
1072	select CPU_V7_HAS_NONSEC
1073	select CPU_V7_HAS_VIRT
1074	select SUPPORT_SPL
1075	select ARCH_LS1021A
1076	select ARCH_SUPPORT_PSCI
1077	imply SCSI
1078	help
1079	  Support for Freescale LS1021AIOT platform.
1080	  The LS1021A Freescale board (IOT) is a high-performance
1081	  development platform that supports the QorIQ LS1021A
1082	  Layerscape Architecture processor.
1083
1084config TARGET_LS1043AQDS
1085	bool "Support ls1043aqds"
1086	select ARCH_LS1043A
1087	select ARM64
1088	select ARMV8_MULTIENTRY
1089	select BOARD_LATE_INIT
1090	select SUPPORT_SPL
1091	select BOARD_EARLY_INIT_F
1092	imply SCSI
1093	help
1094	  Support for Freescale LS1043AQDS platform.
1095
1096config TARGET_LS1043ARDB
1097	bool "Support ls1043ardb"
1098	select ARCH_LS1043A
1099	select ARM64
1100	select ARMV8_MULTIENTRY
1101	select BOARD_LATE_INIT
1102	select SUPPORT_SPL
1103	select BOARD_EARLY_INIT_F
1104	imply SCSI
1105	help
1106	  Support for Freescale LS1043ARDB platform.
1107
1108config TARGET_LS1046AQDS
1109	bool "Support ls1046aqds"
1110	select ARCH_LS1046A
1111	select ARM64
1112	select ARMV8_MULTIENTRY
1113	select BOARD_LATE_INIT
1114	select SUPPORT_SPL
1115	select DM_SPI_FLASH if DM_SPI
1116	select BOARD_EARLY_INIT_F
1117	imply SCSI
1118	help
1119	  Support for Freescale LS1046AQDS platform.
1120	  The LS1046A Development System (QDS) is a high-performance
1121	  development platform that supports the QorIQ LS1046A
1122	  Layerscape Architecture processor.
1123
1124config TARGET_LS1046ARDB
1125	bool "Support ls1046ardb"
1126	select ARCH_LS1046A
1127	select ARM64
1128	select ARMV8_MULTIENTRY
1129	select BOARD_LATE_INIT
1130	select SUPPORT_SPL
1131	select DM_SPI_FLASH if DM_SPI
1132	select POWER_MC34VR500
1133	select BOARD_EARLY_INIT_F
1134	imply SCSI
1135	help
1136	  Support for Freescale LS1046ARDB platform.
1137	  The LS1046A Reference Design Board (RDB) is a high-performance
1138	  development platform that supports the QorIQ LS1046A
1139	  Layerscape Architecture processor.
1140
1141config TARGET_H2200
1142	bool "Support h2200"
1143	select CPU_PXA
1144
1145config TARGET_ZIPITZ2
1146	bool "Support zipitz2"
1147	select CPU_PXA
1148
1149config TARGET_COLIBRI_PXA270
1150	bool "Support colibri_pxa270"
1151	select CPU_PXA
1152
1153config ARCH_UNIPHIER
1154	bool "Socionext UniPhier SoCs"
1155	select BOARD_LATE_INIT
1156	select DM
1157	select DM_GPIO
1158	select DM_I2C
1159	select DM_MMC
1160	select DM_RESET
1161	select DM_SERIAL
1162	select DM_USB
1163	select OF_CONTROL
1164	select OF_LIBFDT
1165	select PINCTRL
1166	select SPL_BOARD_INIT if SPL
1167	select SPL_DM if SPL
1168	select SPL_LIBCOMMON_SUPPORT if SPL
1169	select SPL_LIBGENERIC_SUPPORT if SPL
1170	select SPL_OF_CONTROL if SPL
1171	select SPL_PINCTRL if SPL
1172	select SUPPORT_SPL
1173	imply FAT_WRITE
1174	help
1175	  Support for UniPhier SoC family developed by Socionext Inc.
1176	  (formerly, System LSI Business Division of Panasonic Corporation)
1177
1178config STM32
1179	bool "Support STM32"
1180	select CPU_V7M
1181	select DM
1182	select DM_SERIAL
1183	select SYS_THUMB_BUILD
1184
1185config ARCH_STI
1186	bool "Support STMicrolectronics SoCs"
1187	select CPU_V7
1188	select DM
1189	select DM_SERIAL
1190	select BLK
1191	select DM_MMC
1192	select DM_RESET
1193	help
1194	  Support for STMicroelectronics STiH407/10 SoC family.
1195	  This SoC is used on Linaro 96Board STiH410-B2260
1196
1197config ARCH_ROCKCHIP
1198	bool "Support Rockchip SoCs"
1199	select OF_CONTROL
1200	select BLK
1201	select DM
1202	select SPL_DM if SPL
1203	select SYS_MALLOC_F
1204	select SYS_THUMB_BUILD if !ARM64
1205	select SPL_SYS_MALLOC_SIMPLE if SPL
1206	select DM_GPIO
1207	select DM_I2C
1208	select DM_MMC
1209	select DM_SERIAL
1210	select DM_SPI
1211	select DM_SPI_FLASH
1212	select DM_USB if USB
1213	select DM_PWM
1214	select DM_REGULATOR
1215	select ENABLE_ARM_SOC_BOOT0_HOOK
1216	imply CMD_FASTBOOT
1217	imply FASTBOOT
1218	imply FAT_WRITE
1219	imply USB_FUNCTION_FASTBOOT
1220	imply SPL_SYSRESET
1221	imply TPL_SYSRESET
1222	imply ADC
1223	imply SARADC_ROCKCHIP
1224
1225config TARGET_THUNDERX_88XX
1226	bool "Support ThunderX 88xx"
1227	select ARM64
1228	select OF_CONTROL
1229	select SYS_CACHE_SHIFT_7
1230	select PL01X_SERIAL
1231
1232config ARCH_ASPEED
1233	bool "Support Aspeed SoCs"
1234	select OF_CONTROL
1235	select DM
1236
1237endchoice
1238
1239source "arch/arm/mach-aspeed/Kconfig"
1240
1241source "arch/arm/mach-at91/Kconfig"
1242
1243source "arch/arm/mach-bcm283x/Kconfig"
1244
1245source "arch/arm/mach-davinci/Kconfig"
1246
1247source "arch/arm/mach-exynos/Kconfig"
1248
1249source "arch/arm/mach-highbank/Kconfig"
1250
1251source "arch/arm/mach-integrator/Kconfig"
1252
1253source "arch/arm/mach-keystone/Kconfig"
1254
1255source "arch/arm/mach-kirkwood/Kconfig"
1256
1257source "arch/arm/mach-mvebu/Kconfig"
1258
1259source "arch/arm/cpu/armv7/ls102xa/Kconfig"
1260
1261source "arch/arm/mach-imx/mx2/Kconfig"
1262
1263source "arch/arm/mach-imx/mx5/Kconfig"
1264
1265source "arch/arm/mach-imx/mx6/Kconfig"
1266
1267source "arch/arm/mach-imx/mx7/Kconfig"
1268
1269source "arch/arm/mach-imx/mx7ulp/Kconfig"
1270
1271source "arch/arm/mach-imx/mx8m/Kconfig"
1272
1273source "arch/arm/mach-omap2/Kconfig"
1274
1275source "arch/arm/cpu/armv8/fsl-layerscape/Kconfig"
1276
1277source "arch/arm/mach-orion5x/Kconfig"
1278
1279source "arch/arm/mach-rmobile/Kconfig"
1280
1281source "arch/arm/mach-meson/Kconfig"
1282
1283source "arch/arm/mach-qemu/Kconfig"
1284
1285source "arch/arm/mach-rockchip/Kconfig"
1286
1287source "arch/arm/mach-s5pc1xx/Kconfig"
1288
1289source "arch/arm/mach-snapdragon/Kconfig"
1290
1291source "arch/arm/mach-socfpga/Kconfig"
1292
1293source "arch/arm/mach-sti/Kconfig"
1294
1295source "arch/arm/mach-stm32/Kconfig"
1296
1297source "arch/arm/mach-sunxi/Kconfig"
1298
1299source "arch/arm/mach-tegra/Kconfig"
1300
1301source "arch/arm/mach-uniphier/Kconfig"
1302
1303source "arch/arm/cpu/armv7/vf610/Kconfig"
1304
1305source "arch/arm/mach-zynq/Kconfig"
1306
1307source "arch/arm/cpu/armv7/Kconfig"
1308
1309source "arch/arm/cpu/armv8/zynqmp/Kconfig"
1310
1311source "arch/arm/cpu/armv8/Kconfig"
1312
1313source "arch/arm/mach-imx/Kconfig"
1314
1315source "board/aries/m28evk/Kconfig"
1316source "board/bosch/shc/Kconfig"
1317source "board/CarMediaLab/flea3/Kconfig"
1318source "board/Marvell/aspenite/Kconfig"
1319source "board/Marvell/gplugd/Kconfig"
1320source "board/armadeus/apf27/Kconfig"
1321source "board/armltd/vexpress/Kconfig"
1322source "board/armltd/vexpress64/Kconfig"
1323source "board/bluegiga/apx4devkit/Kconfig"
1324source "board/broadcom/bcm23550_w1d/Kconfig"
1325source "board/broadcom/bcm28155_ap/Kconfig"
1326source "board/broadcom/bcmcygnus/Kconfig"
1327source "board/broadcom/bcmnsp/Kconfig"
1328source "board/broadcom/bcmns2/Kconfig"
1329source "board/cavium/thunderx/Kconfig"
1330source "board/cirrus/edb93xx/Kconfig"
1331source "board/creative/xfi3/Kconfig"
1332source "board/eets/pdu001/Kconfig"
1333source "board/freescale/ls2080a/Kconfig"
1334source "board/freescale/ls2080aqds/Kconfig"
1335source "board/freescale/ls2080ardb/Kconfig"
1336source "board/freescale/ls1088a/Kconfig"
1337source "board/freescale/ls1021aqds/Kconfig"
1338source "board/freescale/ls1043aqds/Kconfig"
1339source "board/freescale/ls1021atwr/Kconfig"
1340source "board/freescale/ls1021aiot/Kconfig"
1341source "board/freescale/ls1046aqds/Kconfig"
1342source "board/freescale/ls1043ardb/Kconfig"
1343source "board/freescale/ls1046ardb/Kconfig"
1344source "board/freescale/ls1012aqds/Kconfig"
1345source "board/freescale/ls1012ardb/Kconfig"
1346source "board/freescale/ls1012afrdm/Kconfig"
1347source "board/freescale/mx23evk/Kconfig"
1348source "board/freescale/mx28evk/Kconfig"
1349source "board/freescale/mx31ads/Kconfig"
1350source "board/freescale/mx31pdk/Kconfig"
1351source "board/freescale/mx35pdk/Kconfig"
1352source "board/freescale/s32v234evb/Kconfig"
1353source "board/gdsys/a38x/Kconfig"
1354source "board/grinn/chiliboard/Kconfig"
1355source "board/gumstix/pepper/Kconfig"
1356source "board/h2200/Kconfig"
1357source "board/hisilicon/hikey/Kconfig"
1358source "board/hisilicon/poplar/Kconfig"
1359source "board/imx31_phycore/Kconfig"
1360source "board/isee/igep003x/Kconfig"
1361source "board/olimex/mx23_olinuxino/Kconfig"
1362source "board/phytec/pcm051/Kconfig"
1363source "board/ppcag/bg0900/Kconfig"
1364source "board/sandisk/sansa_fuze_plus/Kconfig"
1365source "board/schulercontrol/sc_sps_1/Kconfig"
1366source "board/silica/pengwyn/Kconfig"
1367source "board/spear/spear300/Kconfig"
1368source "board/spear/spear310/Kconfig"
1369source "board/spear/spear320/Kconfig"
1370source "board/spear/spear600/Kconfig"
1371source "board/spear/x600/Kconfig"
1372source "board/st/stv0991/Kconfig"
1373source "board/tcl/sl50/Kconfig"
1374source "board/birdland/bav335x/Kconfig"
1375source "board/timll/devkit3250/Kconfig"
1376source "board/toradex/colibri_pxa270/Kconfig"
1377source "board/technologic/ts4600/Kconfig"
1378source "board/vscom/baltos/Kconfig"
1379source "board/woodburn/Kconfig"
1380source "board/work-microwave/work_92105/Kconfig"
1381source "board/zipitz2/Kconfig"
1382
1383source "arch/arm/Kconfig.debug"
1384
1385endmenu
1386
1387config SPL_LDSCRIPT
1388        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
1389        default "arch/arm/cpu/arm1136/u-boot-spl.lds" if CPU_ARM1136
1390	default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARM64
1391
1392
1393