Merge https://gitlab.denx.de/u-boot/custodians/u-boot-fsl-qoriq
[oweals/u-boot.git] / arch / arm / Kconfig
1 menu "ARM architecture"
2         depends on ARM
3
4 config SYS_ARCH
5         default "arm"
6
7 config ARM64
8         bool
9         select PHYS_64BIT
10         select SYS_CACHE_SHIFT_6
11
12 if ARM64
13 config POSITION_INDEPENDENT
14         bool "Generate position-independent pre-relocation code"
15         select INIT_SP_RELATIVE
16         help
17           U-Boot expects to be linked to a specific hard-coded address, and to
18           be loaded to and run from that address. This option lifts that
19           restriction, thus allowing the code to be loaded to and executed
20           from almost any address. This logic relies on the relocation
21           information that is embedded in the binary to support U-Boot
22           relocating itself to the top-of-RAM later during execution.
23
24 config INIT_SP_RELATIVE
25         bool "Specify the early stack pointer relative to the .bss section"
26         help
27           U-Boot typically uses a hard-coded value for the stack pointer
28           before relocation. Enable this option to instead calculate the
29           initial SP at run-time. This is useful to avoid hard-coding addresses
30           into U-Boot, so that it can be loaded and executed at arbitrary
31           addresses and thus avoid using arbitrary addresses at runtime.
32
33           If this option is enabled, the early stack pointer is set to
34           &_bss_start with a offset value added. The offset is specified by
35           SYS_INIT_SP_BSS_OFFSET.
36
37 config SYS_INIT_SP_BSS_OFFSET
38         int "Early stack offset from the .bss base address"
39         depends on INIT_SP_RELATIVE
40         default 524288
41         help
42           This option's value is the offset added to &_bss_start in order to
43           calculate the stack pointer. This offset should be large enough so
44           that the early malloc region, global data (gd), and early stack usage
45           do not overlap any appended DTB.
46
47 config LINUX_KERNEL_IMAGE_HEADER
48         bool
49         help
50           Place a Linux kernel image header at the start of the U-Boot binary.
51           The format of the header is described in the Linux kernel source at
52           Documentation/arm64/booting.txt. This feature is useful since the
53           image header reports the amount of memory (BSS and similar) that
54           U-Boot needs to use, but which isn't part of the binary.
55
56 if LINUX_KERNEL_IMAGE_HEADER
57 config LNX_KRNL_IMG_TEXT_OFFSET_BASE
58         hex
59         help
60           The value subtracted from CONFIG_SYS_TEXT_BASE to calculate the
61           TEXT_OFFSET value written to the Linux kernel image header.
62 endif
63 endif
64
65 config GIC_V3_ITS
66         bool "ARM GICV3 ITS"
67         help
68           ARM GICV3 Interrupt translation service (ITS).
69           Basic support for programming locality specific peripheral
70           interrupts (LPI) configuration tables and enable LPI tables.
71           LPI configuration table can be used by u-boot or Linux.
72           ARM GICV3 has limitation, once the LPI table is enabled, LPI
73           configuration table can not be re-programmed, unless GICV3 reset.
74
75 config STATIC_RELA
76         bool
77         default y if ARM64 && !POSITION_INDEPENDENT
78
79 config DMA_ADDR_T_64BIT
80         bool
81         default y if ARM64
82
83 config HAS_VBAR
84         bool
85
86 config HAS_THUMB2
87         bool
88
89 # Used for compatibility with asm files copied from the kernel
90 config ARM_ASM_UNIFIED
91         bool
92         default y
93
94 # Used for compatibility with asm files copied from the kernel
95 config THUMB2_KERNEL
96         bool
97
98 config SYS_ICACHE_OFF
99         bool "Do not enable icache"
100         default n
101         help
102           Do not enable instruction cache in U-Boot.
103
104 config SPL_SYS_ICACHE_OFF
105         bool "Do not enable icache in SPL"
106         depends on SPL
107         default SYS_ICACHE_OFF
108         help
109           Do not enable instruction cache in SPL.
110
111 config SYS_DCACHE_OFF
112         bool "Do not enable dcache"
113         default n
114         help
115           Do not enable data cache in U-Boot.
116
117 config SPL_SYS_DCACHE_OFF
118         bool "Do not enable dcache in SPL"
119         depends on SPL
120         default SYS_DCACHE_OFF
121         help
122           Do not enable data cache in SPL.
123
124 config SYS_ARM_CACHE_CP15
125         bool "CP15 based cache enabling support"
126         help
127           Select this if your processor suports enabling caches by using
128           CP15 registers.
129
130 config SYS_ARM_MMU
131         bool "MMU-based Paged Memory Management Support"
132         select SYS_ARM_CACHE_CP15
133         help
134           Select if you want MMU-based virtualised addressing space
135           support via paged memory management.
136
137 config SYS_ARM_MPU
138         bool 'Use the ARM v7 PMSA Compliant MPU'
139         help
140           Some ARM systems without an MMU have instead a Memory Protection
141           Unit (MPU) that defines the type and permissions for regions of
142           memory.
143           If your CPU has an MPU then you should choose 'y' here unless you
144           know that you do not want to use the MPU.
145
146 # If set, the workarounds for these ARM errata are applied early during U-Boot
147 # startup. Note that in general these options force the workarounds to be
148 # applied; no CPU-type/version detection exists, unlike the similar options in
149 # the Linux kernel. Do not set these options unless they apply!  Also note that
150 # the following can be machine-specific errata. These do have ability to
151 # provide rudimentary version and machine-specific checks, but expect no
152 # product checks:
153 # CONFIG_ARM_ERRATA_430973
154 # CONFIG_ARM_ERRATA_454179
155 # CONFIG_ARM_ERRATA_621766
156 # CONFIG_ARM_ERRATA_798870
157 # CONFIG_ARM_ERRATA_801819
158 # CONFIG_ARM_CORTEX_A8_CVE_2017_5715
159 # CONFIG_ARM_CORTEX_A15_CVE_2017_5715
160
161 config ARM_ERRATA_430973
162         bool
163
164 config ARM_ERRATA_454179
165         bool
166
167 config ARM_ERRATA_621766
168         bool
169
170 config ARM_ERRATA_716044
171         bool
172
173 config ARM_ERRATA_725233
174         bool
175
176 config ARM_ERRATA_742230
177         bool
178
179 config ARM_ERRATA_743622
180         bool
181
182 config ARM_ERRATA_751472
183         bool
184
185 config ARM_ERRATA_761320
186         bool
187
188 config ARM_ERRATA_773022
189         bool
190
191 config ARM_ERRATA_774769
192         bool
193
194 config ARM_ERRATA_794072
195         bool
196
197 config ARM_ERRATA_798870
198         bool
199
200 config ARM_ERRATA_801819
201         bool
202
203 config ARM_ERRATA_826974
204         bool
205
206 config ARM_ERRATA_828024
207         bool
208
209 config ARM_ERRATA_829520
210         bool
211
212 config ARM_ERRATA_833069
213         bool
214
215 config ARM_ERRATA_833471
216         bool
217
218 config ARM_ERRATA_845369
219         bool
220
221 config ARM_ERRATA_852421
222         bool
223
224 config ARM_ERRATA_852423
225         bool
226
227 config ARM_ERRATA_855873
228         bool
229
230 config ARM_CORTEX_A8_CVE_2017_5715
231         bool
232
233 config ARM_CORTEX_A15_CVE_2017_5715
234         bool
235
236 config CPU_ARM720T
237         bool
238         select SYS_CACHE_SHIFT_5
239         imply SYS_ARM_MMU
240
241 config CPU_ARM920T
242         bool
243         select SYS_CACHE_SHIFT_5
244         imply SYS_ARM_MMU
245
246 config CPU_ARM926EJS
247         bool
248         select SYS_CACHE_SHIFT_5
249         imply SYS_ARM_MMU
250
251 config CPU_ARM946ES
252         bool
253         select SYS_CACHE_SHIFT_5
254         imply SYS_ARM_MMU
255
256 config CPU_ARM1136
257         bool
258         select SYS_CACHE_SHIFT_5
259         imply SYS_ARM_MMU
260
261 config CPU_ARM1176
262         bool
263         select HAS_VBAR
264         select SYS_CACHE_SHIFT_5
265         imply SYS_ARM_MMU
266
267 config CPU_V7A
268         bool
269         select HAS_THUMB2
270         select HAS_VBAR
271         select SYS_CACHE_SHIFT_6
272         imply SYS_ARM_MMU
273
274 config CPU_V7M
275         bool
276         select HAS_THUMB2
277         select SYS_ARM_MPU
278         select SYS_CACHE_SHIFT_5
279         select SYS_THUMB_BUILD
280         select THUMB2_KERNEL
281
282 config CPU_V7R
283         bool
284         select HAS_THUMB2
285         select SYS_ARM_CACHE_CP15
286         select SYS_ARM_MPU
287         select SYS_CACHE_SHIFT_6
288
289 config CPU_PXA
290         bool
291         select SYS_CACHE_SHIFT_5
292         imply SYS_ARM_MMU
293
294 config CPU_SA1100
295         bool
296         select SYS_CACHE_SHIFT_5
297         imply SYS_ARM_MMU
298
299 config SYS_CPU
300         default "arm720t" if CPU_ARM720T
301         default "arm920t" if CPU_ARM920T
302         default "arm926ejs" if CPU_ARM926EJS
303         default "arm946es" if CPU_ARM946ES
304         default "arm1136" if CPU_ARM1136
305         default "arm1176" if CPU_ARM1176
306         default "armv7" if CPU_V7A
307         default "armv7" if CPU_V7R
308         default "armv7m" if CPU_V7M
309         default "pxa" if CPU_PXA
310         default "sa1100" if CPU_SA1100
311         default "armv8" if ARM64
312
313 config SYS_ARM_ARCH
314         int
315         default 4 if CPU_ARM720T
316         default 4 if CPU_ARM920T
317         default 5 if CPU_ARM926EJS
318         default 5 if CPU_ARM946ES
319         default 6 if CPU_ARM1136
320         default 6 if CPU_ARM1176
321         default 7 if CPU_V7A
322         default 7 if CPU_V7M
323         default 7 if CPU_V7R
324         default 5 if CPU_PXA
325         default 4 if CPU_SA1100
326         default 8 if ARM64
327
328 config SYS_CACHE_SHIFT_5
329         bool
330
331 config SYS_CACHE_SHIFT_6
332         bool
333
334 config SYS_CACHE_SHIFT_7
335         bool
336
337 config SYS_CACHELINE_SIZE
338         int
339         default 128 if SYS_CACHE_SHIFT_7
340         default 64 if SYS_CACHE_SHIFT_6
341         default 32 if SYS_CACHE_SHIFT_5
342
343 config ARCH_CPU_INIT
344         bool "Enable ARCH_CPU_INIT"
345         help
346           Some architectures require a call to arch_cpu_init().
347           Say Y here to enable it
348
349 config SYS_ARCH_TIMER
350         bool "ARM Generic Timer support"
351         depends on CPU_V7A || ARM64
352         default y if ARM64
353         help
354           The ARM Generic Timer (aka arch-timer) provides an architected
355           interface to a timer source on an SoC.
356           It is mandatory for ARMv8 implementation and widely available
357           on ARMv7 systems.
358
359 config ARM_SMCCC
360         bool "Support for ARM SMC Calling Convention (SMCCC)"
361         depends on CPU_V7A || ARM64
362         select ARM_PSCI_FW
363         help
364           Say Y here if you want to enable ARM SMC Calling Convention.
365           This should be enabled if U-Boot needs to communicate with system
366           firmware (for example, PSCI) according to SMCCC.
367
368 config SEMIHOSTING
369         bool "support boot from semihosting"
370         help
371           In emulated environments, semihosting is a way for
372           the hosted environment to call out to the emulator to
373           retrieve files from the host machine.
374
375 config SYS_THUMB_BUILD
376         bool "Build U-Boot using the Thumb instruction set"
377         depends on !ARM64
378         help
379            Use this flag to build U-Boot using the Thumb instruction set for
380            ARM architectures. Thumb instruction set provides better code
381            density. For ARM architectures that support Thumb2 this flag will
382            result in Thumb2 code generated by GCC.
383
384 config SPL_SYS_THUMB_BUILD
385         bool "Build SPL using the Thumb instruction set"
386         default y if SYS_THUMB_BUILD
387         depends on !ARM64 && SPL
388         help
389            Use this flag to build SPL using the Thumb instruction set for
390            ARM architectures. Thumb instruction set provides better code
391            density. For ARM architectures that support Thumb2 this flag will
392            result in Thumb2 code generated by GCC.
393
394 config TPL_SYS_THUMB_BUILD
395         bool "Build TPL using the Thumb instruction set"
396         default y if SYS_THUMB_BUILD
397         depends on TPL && !ARM64
398         help
399            Use this flag to build TPL using the Thumb instruction set for
400            ARM architectures. Thumb instruction set provides better code
401            density. For ARM architectures that support Thumb2 this flag will
402            result in Thumb2 code generated by GCC.
403
404
405 config SYS_L2CACHE_OFF
406         bool "L2cache off"
407         help
408           If SoC does not support L2CACHE or one does not want to enable
409           L2CACHE, choose this option.
410
411 config ENABLE_ARM_SOC_BOOT0_HOOK
412         bool "prepare BOOT0 header"
413         help
414           If the SoC's BOOT0 requires a header area filled with (magic)
415           values, then choose this option, and create a file included as
416           <asm/arch/boot0.h> which contains the required assembler code.
417
418 config ARM_CORTEX_CPU_IS_UP
419         bool
420         default n
421
422 config USE_ARCH_MEMCPY
423         bool "Use an assembly optimized implementation of memcpy"
424         default y
425         depends on !ARM64
426         help
427           Enable the generation of an optimized version of memcpy.
428           Such an implementation may be faster under some conditions
429           but may increase the binary size.
430
431 config SPL_USE_ARCH_MEMCPY
432         bool "Use an assembly optimized implementation of memcpy for SPL"
433         default y if USE_ARCH_MEMCPY
434         depends on !ARM64 && SPL
435         help
436           Enable the generation of an optimized version of memcpy.
437           Such an implementation may be faster under some conditions
438           but may increase the binary size.
439
440 config TPL_USE_ARCH_MEMCPY
441         bool "Use an assembly optimized implementation of memcpy for TPL"
442         default y if USE_ARCH_MEMCPY
443         depends on !ARM64 && TPL
444         help
445           Enable the generation of an optimized version of memcpy.
446           Such an implementation may be faster under some conditions
447           but may increase the binary size.
448
449 config USE_ARCH_MEMSET
450         bool "Use an assembly optimized implementation of memset"
451         default y
452         depends on !ARM64
453         help
454           Enable the generation of an optimized version of memset.
455           Such an implementation may be faster under some conditions
456           but may increase the binary size.
457
458 config SPL_USE_ARCH_MEMSET
459         bool "Use an assembly optimized implementation of memset for SPL"
460         default y if USE_ARCH_MEMSET
461         depends on !ARM64 && SPL
462         help
463           Enable the generation of an optimized version of memset.
464           Such an implementation may be faster under some conditions
465           but may increase the binary size.
466
467 config TPL_USE_ARCH_MEMSET
468         bool "Use an assembly optimized implementation of memset for TPL"
469         default y if USE_ARCH_MEMSET
470         depends on !ARM64 && TPL
471         help
472           Enable the generation of an optimized version of memset.
473           Such an implementation may be faster under some conditions
474           but may increase the binary size.
475
476 config SET_STACK_SIZE
477         bool "Enable an option to set max stack size that can be used"
478         default y if ARCH_VERSAL || ARCH_ZYNQMP
479         help
480           This will enable an option to set max stack size that can be
481           used by U-Boot.
482
483 config STACK_SIZE
484         hex "Define max stack size that can be used by U-Boot"
485         depends on SET_STACK_SIZE
486         default 0x4000000 if ARCH_VERSAL || ARCH_ZYNQMP
487         help
488           Define Max stack size that can be used by U-Boot so that the
489           initrd_high will be calculated as base stack pointer minus this
490           stack size.
491
492 config ARM64_SUPPORT_AARCH32
493         bool "ARM64 system support AArch32 execution state"
494         depends on ARM64
495         default y if !TARGET_THUNDERX_88XX
496         help
497           This ARM64 system supports AArch32 execution state.
498
499 choice
500         prompt "Target select"
501         default TARGET_HIKEY
502
503 config ARCH_AT91
504         bool "Atmel AT91"
505         select SPL_BOARD_INIT if SPL && !TARGET_SMARTWEB
506
507 config TARGET_EDB93XX
508         bool "Support edb93xx"
509         select CPU_ARM920T
510         select PL010_SERIAL
511
512 config TARGET_ASPENITE
513         bool "Support aspenite"
514         select CPU_ARM926EJS
515
516 config TARGET_GPLUGD
517         bool "Support gplugd"
518         select CPU_ARM926EJS
519
520 config ARCH_DAVINCI
521         bool "TI DaVinci"
522         select CPU_ARM926EJS
523         imply CMD_SAVES
524         help
525           Support for TI's DaVinci platform.
526
527 config KIRKWOOD
528         bool "Marvell Kirkwood"
529         select ARCH_MISC_INIT
530         select BOARD_EARLY_INIT_F
531         select CPU_ARM926EJS
532
533 config ARCH_MVEBU
534         bool "Marvell MVEBU family (Armada XP/375/38x/3700/7K/8K)"
535         select DM
536         select DM_ETH
537         select DM_SERIAL
538         select DM_SPI
539         select DM_SPI_FLASH
540         select OF_CONTROL
541         select OF_SEPARATE
542         select SPI
543         imply CMD_DM
544
545 config TARGET_APF27
546         bool "Support apf27"
547         select CPU_ARM926EJS
548         select SUPPORT_SPL
549
550 config ORION5X
551         bool "Marvell Orion"
552         select CPU_ARM926EJS
553
554 config TARGET_SPEAR300
555         bool "Support spear300"
556         select BOARD_EARLY_INIT_F
557         select CPU_ARM926EJS
558         select PL011_SERIAL
559         imply CMD_SAVES
560
561 config TARGET_SPEAR310
562         bool "Support spear310"
563         select BOARD_EARLY_INIT_F
564         select CPU_ARM926EJS
565         select PL011_SERIAL
566         imply CMD_SAVES
567
568 config TARGET_SPEAR320
569         bool "Support spear320"
570         select BOARD_EARLY_INIT_F
571         select CPU_ARM926EJS
572         select PL011_SERIAL
573         imply CMD_SAVES
574
575 config TARGET_SPEAR600
576         bool "Support spear600"
577         select BOARD_EARLY_INIT_F
578         select CPU_ARM926EJS
579         select PL011_SERIAL
580         imply CMD_SAVES
581
582 config TARGET_STV0991
583         bool "Support stv0991"
584         select CPU_V7A
585         select DM
586         select DM_SERIAL
587         select DM_SPI
588         select DM_SPI_FLASH
589         select PL01X_SERIAL
590         select SPI
591         select SPI_FLASH
592         imply CMD_DM
593
594 config TARGET_X600
595         bool "Support x600"
596         select BOARD_LATE_INIT
597         select CPU_ARM926EJS
598         select PL011_SERIAL
599         select SUPPORT_SPL
600
601 config TARGET_WOODBURN
602         bool "Support woodburn"
603         select CPU_ARM1136
604
605 config TARGET_WOODBURN_SD
606         bool "Support woodburn_sd"
607         select CPU_ARM1136
608         select SUPPORT_SPL
609
610 config TARGET_FLEA3
611         bool "Support flea3"
612         select CPU_ARM1136
613
614 config TARGET_MX35PDK
615         bool "Support mx35pdk"
616         select BOARD_LATE_INIT
617         select CPU_ARM1136
618
619 config ARCH_BCM283X
620         bool "Broadcom BCM283X family"
621         select DM
622         select DM_GPIO
623         select DM_SERIAL
624         select OF_CONTROL
625         select PL01X_SERIAL
626         select SERIAL_SEARCH_ALL
627         imply CMD_DM
628         imply FAT_WRITE
629
630 config ARCH_BCM63158
631         bool "Broadcom BCM63158 family"
632         select DM
633         select OF_CONTROL
634         imply CMD_DM
635
636 config ARCH_BCM68360
637         bool "Broadcom BCM68360 family"
638         select DM
639         select OF_CONTROL
640         imply CMD_DM
641
642 config ARCH_BCM6858
643         bool "Broadcom BCM6858 family"
644         select DM
645         select OF_CONTROL
646         imply CMD_DM
647
648 config TARGET_VEXPRESS_CA15_TC2
649         bool "Support vexpress_ca15_tc2"
650         select CPU_V7A
651         select CPU_V7_HAS_NONSEC
652         select CPU_V7_HAS_VIRT
653         select PL011_SERIAL
654
655 config ARCH_BCMSTB
656         bool "Broadcom BCM7XXX family"
657         select CPU_V7A
658         select DM
659         select OF_CONTROL
660         select OF_PRIOR_STAGE
661         imply CMD_DM
662         help
663           This enables support for Broadcom ARM-based set-top box
664           chipsets, including the 7445 family of chips.
665
666 config TARGET_VEXPRESS_CA5X2
667         bool "Support vexpress_ca5x2"
668         select CPU_V7A
669         select PL011_SERIAL
670
671 config TARGET_VEXPRESS_CA9X4
672         bool "Support vexpress_ca9x4"
673         select CPU_V7A
674         select PL011_SERIAL
675
676 config TARGET_BCM23550_W1D
677         bool "Support bcm23550_w1d"
678         select CPU_V7A
679         imply CRC32_VERIFY
680         imply FAT_WRITE
681
682 config TARGET_BCM28155_AP
683         bool "Support bcm28155_ap"
684         select CPU_V7A
685         imply CRC32_VERIFY
686         imply FAT_WRITE
687
688 config TARGET_BCMCYGNUS
689         bool "Support bcmcygnus"
690         select CPU_V7A
691         imply BCM_SF2_ETH
692         imply BCM_SF2_ETH_GMAC
693         imply CMD_HASH
694         imply CRC32_VERIFY
695         imply FAT_WRITE
696         imply HASH_VERIFY
697         imply NETDEVICES
698
699 config TARGET_BCMNSP
700         bool "Support bcmnsp"
701         select CPU_V7A
702
703 config TARGET_BCMNS2
704         bool "Support Broadcom Northstar2"
705         select ARM64
706         help
707           Support for Broadcom Northstar 2 SoCs.  NS2 is a quad-core 64-bit
708           ARMv8 Cortex-A57 processors targeting a broad range of networking
709           applications.
710
711 config ARCH_EXYNOS
712         bool "Samsung EXYNOS"
713         select DM
714         select DM_GPIO
715         select DM_I2C
716         select DM_KEYBOARD
717         select DM_SERIAL
718         select DM_SPI
719         select DM_SPI_FLASH
720         select SPI
721         imply SYS_THUMB_BUILD
722         imply CMD_DM
723         imply FAT_WRITE
724
725 config ARCH_S5PC1XX
726         bool "Samsung S5PC1XX"
727         select CPU_V7A
728         select DM
729         select DM_GPIO
730         select DM_I2C
731         select DM_SERIAL
732         imply CMD_DM
733
734 config ARCH_HIGHBANK
735         bool "Calxeda Highbank"
736         select CPU_V7A
737         select PL011_SERIAL
738
739 config ARCH_INTEGRATOR
740         bool "ARM Ltd. Integrator family"
741         select DM
742         select DM_SERIAL
743         select PL01X_SERIAL
744         imply CMD_DM
745
746 config ARCH_KEYSTONE
747         bool "TI Keystone"
748         select CMD_POWEROFF
749         select CPU_V7A
750         select SUPPORT_SPL
751         select SYS_ARCH_TIMER
752         select SYS_THUMB_BUILD
753         imply CMD_MTDPARTS
754         imply CMD_SAVES
755         imply FIT
756
757 config ARCH_K3
758         bool "Texas Instruments' K3 Architecture"
759         select SPL
760         select SUPPORT_SPL
761         select FIT
762
763 config ARCH_OMAP2PLUS
764         bool "TI OMAP2+"
765         select CPU_V7A
766         select SPL_BOARD_INIT if SPL
767         select SPL_STACK_R if SPL
768         select SUPPORT_SPL
769         imply FIT
770
771 config ARCH_MESON
772         bool "Amlogic Meson"
773         imply DISTRO_DEFAULTS
774         help
775           Support for the Meson SoC family developed by Amlogic Inc.,
776           targeted at media players and tablet computers. We currently
777           support the S905 (GXBaby) 64-bit SoC.
778
779 config ARCH_MEDIATEK
780         bool "MediaTek SoCs"
781         select BINMAN
782         select DM
783         select OF_CONTROL
784         select SPL_DM if SPL
785         select SPL_LIBCOMMON_SUPPORT if SPL
786         select SPL_LIBGENERIC_SUPPORT if SPL
787         select SPL_OF_CONTROL if SPL
788         select SUPPORT_SPL
789         help
790           Support for the MediaTek SoCs family developed by MediaTek Inc.
791           Please refer to doc/README.mediatek for more information.
792
793 config ARCH_LPC32XX
794         bool "NXP LPC32xx platform"
795         select CPU_ARM926EJS
796         select DM
797         select DM_GPIO
798         select DM_SERIAL
799         select SPL_DM if SPL
800         select SUPPORT_SPL
801         imply CMD_DM
802
803 config ARCH_IMX8
804         bool "NXP i.MX8 platform"
805         select ARM64
806         select DM
807         select OF_CONTROL
808         select ENABLE_ARM_SOC_BOOT0_HOOK
809
810 config ARCH_IMX8M
811         bool "NXP i.MX8M platform"
812         select ARM64
813         select DM
814         select SUPPORT_SPL
815         imply CMD_DM
816
817 config ARCH_IMXRT
818         bool "NXP i.MXRT platform"
819         select CPU_V7M
820         select DM
821         select DM_SERIAL
822         select SUPPORT_SPL
823         imply CMD_DM
824
825 config ARCH_MX23
826         bool "NXP i.MX23 family"
827         select CPU_ARM926EJS
828         select PL011_SERIAL
829         select SUPPORT_SPL
830
831 config ARCH_MX25
832         bool "NXP MX25"
833         select CPU_ARM926EJS
834         imply MXC_GPIO
835
836 config ARCH_MX28
837         bool "NXP i.MX28 family"
838         select CPU_ARM926EJS
839         select PL011_SERIAL
840         select SUPPORT_SPL
841
842 config ARCH_MX31
843         bool "NXP i.MX31 family"
844         select CPU_ARM1136
845
846 config ARCH_MX7ULP
847         bool "NXP MX7ULP"
848         select CPU_V7A
849         select ROM_UNIFIED_SECTIONS
850         imply MXC_GPIO
851         imply SYS_THUMB_BUILD
852
853 config ARCH_MX7
854         bool "Freescale MX7"
855         select ARCH_MISC_INIT
856         select BOARD_EARLY_INIT_F
857         select CPU_V7A
858         select SYS_FSL_HAS_SEC if IMX_HAB
859         select SYS_FSL_SEC_COMPAT_4
860         select SYS_FSL_SEC_LE
861         imply MXC_GPIO
862         imply SYS_THUMB_BUILD
863
864 config ARCH_MX6
865         bool "Freescale MX6"
866         select CPU_V7A
867         select SYS_FSL_HAS_SEC if IMX_HAB
868         select SYS_FSL_SEC_COMPAT_4
869         select SYS_FSL_SEC_LE
870         imply MXC_GPIO
871         imply SYS_THUMB_BUILD
872
873 if ARCH_MX6
874 config SPL_LDSCRIPT
875         default "arch/arm/mach-omap2/u-boot-spl.lds"
876 endif
877
878 config ARCH_MX5
879         bool "Freescale MX5"
880         select BOARD_EARLY_INIT_F
881         select CPU_V7A
882         imply MXC_GPIO
883
884 config ARCH_OWL
885         bool "Actions Semi OWL SoCs"
886         select ARM64
887         select DM
888         select DM_SERIAL
889         select OF_CONTROL
890         imply CMD_DM
891
892 config ARCH_QEMU
893         bool "QEMU Virtual Platform"
894         select ARCH_SUPPORT_TFABOOT
895         select DM
896         select DM_SERIAL
897         select OF_CONTROL
898         select PL01X_SERIAL
899         imply CMD_DM
900         imply DM_RTC
901         imply RTC_PL031
902
903 config ARCH_RMOBILE
904         bool "Renesas ARM SoCs"
905         select BOARD_EARLY_INIT_F if !RZA1
906         select DM
907         select DM_SERIAL
908         imply CMD_DM
909         imply FAT_WRITE
910         imply SYS_THUMB_BUILD
911         imply ARCH_MISC_INIT if DISPLAY_CPUINFO
912
913 config TARGET_S32V234EVB
914         bool "Support s32v234evb"
915         select ARM64
916         select SYS_FSL_ERRATUM_ESDHC111
917
918 config ARCH_SNAPDRAGON
919         bool "Qualcomm Snapdragon SoCs"
920         select ARM64
921         select DM
922         select DM_GPIO
923         select DM_SERIAL
924         select MSM_SMEM
925         select OF_CONTROL
926         select OF_SEPARATE
927         select SMEM
928         select SPMI
929         imply CMD_DM
930
931 config ARCH_SOCFPGA
932         bool "Altera SOCFPGA family"
933         select ARCH_EARLY_INIT_R
934         select ARCH_MISC_INIT if !TARGET_SOCFPGA_ARRIA10
935         select ARM64 if TARGET_SOCFPGA_STRATIX10 || TARGET_SOCFPGA_AGILEX
936         select CPU_V7A if TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_ARRIA10
937         select DM
938         select DM_SERIAL
939         select ENABLE_ARM_SOC_BOOT0_HOOK if TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_ARRIA10
940         select OF_CONTROL
941         select SPL_DM_RESET if DM_RESET
942         select SPL_DM_SERIAL
943         select SPL_LIBCOMMON_SUPPORT
944         select SPL_LIBGENERIC_SUPPORT
945         select SPL_NAND_SUPPORT if SPL_NAND_DENALI
946         select SPL_OF_CONTROL
947         select SPL_SEPARATE_BSS if TARGET_SOCFPGA_STRATIX10 || TARGET_SOCFPGA_AGILEX
948         select SPL_SERIAL_SUPPORT
949         select SPL_SYSRESET
950         select SPL_WATCHDOG_SUPPORT
951         select SUPPORT_SPL
952         select SYS_NS16550
953         select SYS_THUMB_BUILD if TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_ARRIA10
954         select SYSRESET
955         select SYSRESET_SOCFPGA if TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_ARRIA10
956         select SYSRESET_SOCFPGA_S10 if TARGET_SOCFPGA_STRATIX10
957         imply CMD_DM
958         imply CMD_MTDPARTS
959         imply CRC32_VERIFY
960         imply DM_SPI
961         imply DM_SPI_FLASH
962         imply FAT_WRITE
963         imply SPL
964         imply SPL_DM
965         imply SPL_LIBDISK_SUPPORT
966         imply SPL_MMC_SUPPORT
967         imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
968         imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
969         imply SPL_SPI_FLASH_SUPPORT
970         imply SPL_SPI_SUPPORT
971         imply L2X0_CACHE
972
973 config ARCH_SUNXI
974         bool "Support sunxi (Allwinner) SoCs"
975         select BINMAN
976         select CMD_GPIO
977         select CMD_MMC if MMC
978         select CMD_USB if DISTRO_DEFAULTS
979         select CLK
980         select DM
981         select DM_ETH
982         select DM_GPIO
983         select DM_KEYBOARD
984         select DM_MMC if MMC
985         select DM_SCSI if SCSI
986         select DM_SERIAL
987         select DM_USB if DISTRO_DEFAULTS
988         select OF_BOARD_SETUP
989         select OF_CONTROL
990         select OF_SEPARATE
991         select SPECIFY_CONSOLE_INDEX
992         select SPL_STACK_R if SPL
993         select SPL_SYS_MALLOC_SIMPLE if SPL
994         select SPL_SYS_THUMB_BUILD if !ARM64
995         select SUNXI_GPIO
996         select SYS_NS16550
997         select SYS_THUMB_BUILD if !ARM64
998         select USB if DISTRO_DEFAULTS
999         select USB_KEYBOARD if DISTRO_DEFAULTS
1000         select USB_STORAGE if DISTRO_DEFAULTS
1001         select SPL_USE_TINY_PRINTF
1002         imply CMD_DM
1003         imply CMD_GPT
1004         imply CMD_UBI if MTD_RAW_NAND
1005         imply DISTRO_DEFAULTS
1006         imply FAT_WRITE
1007         imply FIT
1008         imply OF_LIBFDT_OVERLAY
1009         imply PRE_CONSOLE_BUFFER
1010         imply SPL_GPIO_SUPPORT
1011         imply SPL_LIBCOMMON_SUPPORT
1012         imply SPL_LIBGENERIC_SUPPORT
1013         imply SPL_MMC_SUPPORT if MMC
1014         imply SPL_POWER_SUPPORT
1015         imply SPL_SERIAL_SUPPORT
1016         imply USB_GADGET
1017
1018 config ARCH_U8500
1019         bool "ST-Ericsson U8500 Series"
1020         select CPU_V7A
1021         select DM
1022         select DM_GPIO
1023         select DM_MMC if MMC
1024         select DM_SERIAL
1025         select DM_USB if USB
1026         select OF_CONTROL
1027         select SYSRESET
1028         select TIMER
1029         imply ARM_PL180_MMCI
1030         imply DM_RTC
1031         imply NOMADIK_MTU_TIMER
1032         imply PL01X_SERIAL
1033         imply RTC_PL031
1034         imply SYSRESET_SYSCON
1035
1036 config ARCH_VERSAL
1037         bool "Support Xilinx Versal Platform"
1038         select ARM64
1039         select CLK
1040         select DM
1041         select DM_ETH if NET
1042         select DM_MMC if MMC
1043         select DM_SERIAL
1044         select OF_CONTROL
1045         imply BOARD_LATE_INIT
1046
1047 config ARCH_VF610
1048         bool "Freescale Vybrid"
1049         select CPU_V7A
1050         select SYS_FSL_ERRATUM_ESDHC111
1051         imply CMD_MTDPARTS
1052         imply MTD_RAW_NAND
1053
1054 config ARCH_ZYNQ
1055         bool "Xilinx Zynq based platform"
1056         select CLK
1057         select CLK_ZYNQ
1058         select CPU_V7A
1059         select DM
1060         select DM_ETH if NET
1061         select DM_MMC if MMC
1062         select DM_SERIAL
1063         select DM_SPI
1064         select DM_SPI_FLASH
1065         select DM_USB if USB
1066         select OF_CONTROL
1067         select SPI
1068         select SPL_BOARD_INIT if SPL
1069         select SPL_CLK if SPL
1070         select SPL_DM if SPL
1071         select SPL_OF_CONTROL if SPL
1072         select SPL_SEPARATE_BSS if SPL
1073         select SUPPORT_SPL
1074         imply ARCH_EARLY_INIT_R
1075         imply BOARD_LATE_INIT
1076         imply CMD_CLK
1077         imply CMD_DM
1078         imply CMD_SPL
1079         imply FAT_WRITE
1080
1081 config ARCH_ZYNQMP_R5
1082         bool "Xilinx ZynqMP R5 based platform"
1083         select CLK
1084         select CPU_V7R
1085         select DM
1086         select DM_ETH if NET
1087         select DM_MMC if MMC
1088         select DM_SERIAL
1089         select OF_CONTROL
1090         imply CMD_DM
1091         imply DM_USB_GADGET
1092
1093 config ARCH_ZYNQMP
1094         bool "Xilinx ZynqMP based platform"
1095         select ARM64
1096         select CLK
1097         select DM
1098         select DM_ETH if NET
1099         select DM_MAILBOX
1100         select DM_MMC if MMC
1101         select DM_SERIAL
1102         select DM_SPI if SPI
1103         select DM_SPI_FLASH if DM_SPI
1104         select DM_USB if USB
1105         select FIRMWARE
1106         select OF_CONTROL
1107         select SPL_BOARD_INIT if SPL
1108         select SPL_CLK if SPL
1109         select SPL_DM_MAILBOX if SPL
1110         select SPL_FIRMWARE if SPL
1111         select SPL_SEPARATE_BSS if SPL
1112         select SUPPORT_SPL
1113         select ZYNQMP_IPI
1114         imply BOARD_LATE_INIT
1115         imply CMD_DM
1116         imply FAT_WRITE
1117         imply MP
1118         imply DM_USB_GADGET
1119
1120 config TEGRA
1121         bool "NVIDIA Tegra"
1122         imply DISTRO_DEFAULTS
1123         imply FAT_WRITE
1124
1125 config TARGET_VEXPRESS64_AEMV8A
1126         bool "Support vexpress_aemv8a"
1127         select ARM64
1128         select PL01X_SERIAL
1129
1130 config TARGET_VEXPRESS64_BASE_FVP
1131         bool "Support Versatile Express ARMv8a FVP BASE model"
1132         select ARM64
1133         select PL01X_SERIAL
1134         select SEMIHOSTING
1135
1136 config TARGET_VEXPRESS64_JUNO
1137         bool "Support Versatile Express Juno Development Platform"
1138         select ARM64
1139         select PL01X_SERIAL
1140
1141 config TARGET_LS2080A_EMU
1142         bool "Support ls2080a_emu"
1143         select ARCH_LS2080A
1144         select ARM64
1145         select ARMV8_MULTIENTRY
1146         select FSL_DDR_SYNC_REFRESH
1147         help
1148           Support for Freescale LS2080A_EMU platform.
1149           The LS2080A Development System (EMULATOR) is a pre-silicon
1150           development platform that supports the QorIQ LS2080A
1151           Layerscape Architecture processor.
1152
1153 config TARGET_LS2080A_SIMU
1154         bool "Support ls2080a_simu"
1155         select ARCH_LS2080A
1156         select ARM64
1157         select ARMV8_MULTIENTRY
1158         select BOARD_LATE_INIT
1159         help
1160           Support for Freescale LS2080A_SIMU platform.
1161           The LS2080A Development System (QDS) is a pre silicon
1162           development platform that supports the QorIQ LS2080A
1163           Layerscape Architecture processor.
1164
1165 config TARGET_LS1088AQDS
1166         bool "Support ls1088aqds"
1167         select ARCH_LS1088A
1168         select ARM64
1169         select ARMV8_MULTIENTRY
1170         select ARCH_SUPPORT_TFABOOT
1171         select BOARD_LATE_INIT
1172         select SUPPORT_SPL
1173         select FSL_DDR_INTERACTIVE if !SD_BOOT
1174         help
1175           Support for NXP LS1088AQDS platform.
1176           The LS1088A Development System (QDS) is a high-performance
1177           development platform that supports the QorIQ LS1088A
1178           Layerscape Architecture processor.
1179
1180 config TARGET_LS2080AQDS
1181         bool "Support ls2080aqds"
1182         select ARCH_LS2080A
1183         select ARM64
1184         select ARMV8_MULTIENTRY
1185         select ARCH_SUPPORT_TFABOOT
1186         select BOARD_LATE_INIT
1187         select SUPPORT_SPL
1188         imply SCSI
1189         imply SCSI_AHCI
1190         select FSL_DDR_BIST
1191         select FSL_DDR_INTERACTIVE if !SPL
1192         help
1193           Support for Freescale LS2080AQDS platform.
1194           The LS2080A Development System (QDS) is a high-performance
1195           development platform that supports the QorIQ LS2080A
1196           Layerscape Architecture processor.
1197
1198 config TARGET_LS2080ARDB
1199         bool "Support ls2080ardb"
1200         select ARCH_LS2080A
1201         select ARM64
1202         select ARMV8_MULTIENTRY
1203         select ARCH_SUPPORT_TFABOOT
1204         select BOARD_LATE_INIT
1205         select SUPPORT_SPL
1206         select FSL_DDR_BIST
1207         select FSL_DDR_INTERACTIVE if !SPL
1208         imply SCSI
1209         imply SCSI_AHCI
1210         help
1211           Support for Freescale LS2080ARDB platform.
1212           The LS2080A Reference design board (RDB) is a high-performance
1213           development platform that supports the QorIQ LS2080A
1214           Layerscape Architecture processor.
1215
1216 config TARGET_LS2081ARDB
1217         bool "Support ls2081ardb"
1218         select ARCH_LS2080A
1219         select ARM64
1220         select ARMV8_MULTIENTRY
1221         select BOARD_LATE_INIT
1222         select SUPPORT_SPL
1223         help
1224           Support for Freescale LS2081ARDB platform.
1225           The LS2081A Reference design board (RDB) is a high-performance
1226           development platform that supports the QorIQ LS2081A/LS2041A
1227           Layerscape Architecture processor.
1228
1229 config TARGET_LX2160ARDB
1230         bool "Support lx2160ardb"
1231         select ARCH_LX2160A
1232         select ARM64
1233         select ARMV8_MULTIENTRY
1234         select ARCH_SUPPORT_TFABOOT
1235         select BOARD_LATE_INIT
1236         help
1237           Support for NXP LX2160ARDB platform.
1238           The lx2160ardb (LX2160A Reference design board (RDB)
1239           is a high-performance development platform that supports the
1240           QorIQ LX2160A/LX2120A/LX2080A Layerscape Architecture processor.
1241
1242 config TARGET_LX2160AQDS
1243         bool "Support lx2160aqds"
1244         select ARCH_LX2160A
1245         select ARM64
1246         select ARMV8_MULTIENTRY
1247         select ARCH_SUPPORT_TFABOOT
1248         select BOARD_LATE_INIT
1249         help
1250           Support for NXP LX2160AQDS platform.
1251           The lx2160aqds (LX2160A QorIQ Development System (QDS)
1252           is a high-performance development platform that supports the
1253           QorIQ LX2160A/LX2120A/LX2080A Layerscape Architecture processor.
1254
1255 config TARGET_HIKEY
1256         bool "Support HiKey 96boards Consumer Edition Platform"
1257         select ARM64
1258         select DM
1259         select DM_GPIO
1260         select DM_SERIAL
1261         select OF_CONTROL
1262         select PL01X_SERIAL
1263         select SPECIFY_CONSOLE_INDEX
1264         imply CMD_DM
1265           help
1266           Support for HiKey 96boards platform. It features a HI6220
1267           SoC, with 8xA53 CPU, mali450 gpu, and 1GB RAM.
1268
1269 config TARGET_HIKEY960
1270         bool "Support HiKey960 96boards Consumer Edition Platform"
1271         select ARM64
1272         select DM
1273         select DM_SERIAL
1274         select OF_CONTROL
1275         select PL01X_SERIAL
1276         imply CMD_DM
1277           help
1278           Support for HiKey960 96boards platform. It features a HI3660
1279           SoC, with 4xA73 CPU, 4xA53 CPU, MALI-G71 GPU, and 3GB RAM.
1280
1281 config TARGET_POPLAR
1282         bool "Support Poplar 96boards Enterprise Edition Platform"
1283         select ARM64
1284         select DM
1285         select DM_SERIAL
1286         select DM_USB
1287         select OF_CONTROL
1288         select PL01X_SERIAL
1289         imply CMD_DM
1290           help
1291           Support for Poplar 96boards EE platform. It features a HI3798cv200
1292           SoC, with 4xA53 CPU, 1GB RAM and the high performance Mali T720 GPU
1293           making it capable of running any commercial set-top solution based on
1294           Linux or Android.
1295
1296 config TARGET_LS1012AQDS
1297         bool "Support ls1012aqds"
1298         select ARCH_LS1012A
1299         select ARM64
1300         select ARCH_SUPPORT_TFABOOT
1301         select BOARD_LATE_INIT
1302         help
1303           Support for Freescale LS1012AQDS platform.
1304           The LS1012A Development System (QDS) is a high-performance
1305           development platform that supports the QorIQ LS1012A
1306           Layerscape Architecture processor.
1307
1308 config TARGET_LS1012ARDB
1309         bool "Support ls1012ardb"
1310         select ARCH_LS1012A
1311         select ARM64
1312         select ARCH_SUPPORT_TFABOOT
1313         select BOARD_LATE_INIT
1314         imply SCSI
1315         imply SCSI_AHCI
1316         help
1317           Support for Freescale LS1012ARDB platform.
1318           The LS1012A Reference design board (RDB) is a high-performance
1319           development platform that supports the QorIQ LS1012A
1320           Layerscape Architecture processor.
1321
1322 config TARGET_LS1012A2G5RDB
1323         bool "Support ls1012a2g5rdb"
1324         select ARCH_LS1012A
1325         select ARM64
1326         select ARCH_SUPPORT_TFABOOT
1327         select BOARD_LATE_INIT
1328         imply SCSI
1329         help
1330           Support for Freescale LS1012A2G5RDB platform.
1331           The LS1012A 2G5 Reference design board (RDB) is a high-performance
1332           development platform that supports the QorIQ LS1012A
1333           Layerscape Architecture processor.
1334
1335 config TARGET_LS1012AFRWY
1336         bool "Support ls1012afrwy"
1337         select ARCH_LS1012A
1338         select ARM64
1339         select ARCH_SUPPORT_TFABOOT
1340         select BOARD_LATE_INIT
1341         imply SCSI
1342         imply SCSI_AHCI
1343         help
1344          Support for Freescale LS1012AFRWY platform.
1345          The LS1012A FRWY board (FRWY) is a high-performance
1346          development platform that supports the QorIQ LS1012A
1347          Layerscape Architecture processor.
1348
1349 config TARGET_LS1012AFRDM
1350         bool "Support ls1012afrdm"
1351         select ARCH_LS1012A
1352         select ARM64
1353         select ARCH_SUPPORT_TFABOOT
1354         help
1355           Support for Freescale LS1012AFRDM platform.
1356           The LS1012A Freedom  board (FRDM) is a high-performance
1357           development platform that supports the QorIQ LS1012A
1358           Layerscape Architecture processor.
1359
1360 config TARGET_LS1028AQDS
1361         bool "Support ls1028aqds"
1362         select ARCH_LS1028A
1363         select ARM64
1364         select ARMV8_MULTIENTRY
1365         select ARCH_SUPPORT_TFABOOT
1366         select BOARD_LATE_INIT
1367         help
1368           Support for Freescale LS1028AQDS platform
1369           The LS1028A Development System (QDS) is a high-performance
1370           development platform that supports the QorIQ LS1028A
1371           Layerscape Architecture processor.
1372
1373 config TARGET_LS1028ARDB
1374         bool "Support ls1028ardb"
1375         select ARCH_LS1028A
1376         select ARM64
1377         select ARMV8_MULTIENTRY
1378         select ARCH_SUPPORT_TFABOOT
1379         help
1380           Support for Freescale LS1028ARDB platform
1381           The LS1028A Development System (RDB) is a high-performance
1382           development platform that supports the QorIQ LS1028A
1383           Layerscape Architecture processor.
1384
1385 config TARGET_LS1088ARDB
1386         bool "Support ls1088ardb"
1387         select ARCH_LS1088A
1388         select ARM64
1389         select ARMV8_MULTIENTRY
1390         select ARCH_SUPPORT_TFABOOT
1391         select BOARD_LATE_INIT
1392         select SUPPORT_SPL
1393         select FSL_DDR_INTERACTIVE if !SD_BOOT
1394         help
1395           Support for NXP LS1088ARDB platform.
1396           The LS1088A Reference design board (RDB) is a high-performance
1397           development platform that supports the QorIQ LS1088A
1398           Layerscape Architecture processor.
1399
1400 config TARGET_LS1021AQDS
1401         bool "Support ls1021aqds"
1402         select ARCH_LS1021A
1403         select ARCH_SUPPORT_PSCI
1404         select BOARD_EARLY_INIT_F
1405         select BOARD_LATE_INIT
1406         select CPU_V7A
1407         select CPU_V7_HAS_NONSEC
1408         select CPU_V7_HAS_VIRT
1409         select LS1_DEEP_SLEEP
1410         select SUPPORT_SPL
1411         select SYS_FSL_DDR
1412         select FSL_DDR_INTERACTIVE
1413         imply SCSI
1414
1415 config TARGET_LS1021ATWR
1416         bool "Support ls1021atwr"
1417         select ARCH_LS1021A
1418         select ARCH_SUPPORT_PSCI
1419         select BOARD_EARLY_INIT_F
1420         select BOARD_LATE_INIT
1421         select CPU_V7A
1422         select CPU_V7_HAS_NONSEC
1423         select CPU_V7_HAS_VIRT
1424         select LS1_DEEP_SLEEP
1425         select SUPPORT_SPL
1426         imply SCSI
1427
1428 config TARGET_LS1021ATSN
1429         bool "Support ls1021atsn"
1430         select ARCH_LS1021A
1431         select ARCH_SUPPORT_PSCI
1432         select BOARD_EARLY_INIT_F
1433         select BOARD_LATE_INIT
1434         select CPU_V7A
1435         select CPU_V7_HAS_NONSEC
1436         select CPU_V7_HAS_VIRT
1437         select LS1_DEEP_SLEEP
1438         select SUPPORT_SPL
1439         imply SCSI
1440
1441 config TARGET_LS1021AIOT
1442         bool "Support ls1021aiot"
1443         select ARCH_LS1021A
1444         select ARCH_SUPPORT_PSCI
1445         select BOARD_LATE_INIT
1446         select CPU_V7A
1447         select CPU_V7_HAS_NONSEC
1448         select CPU_V7_HAS_VIRT
1449         select SUPPORT_SPL
1450         imply SCSI
1451         help
1452           Support for Freescale LS1021AIOT platform.
1453           The LS1021A Freescale board (IOT) is a high-performance
1454           development platform that supports the QorIQ LS1021A
1455           Layerscape Architecture processor.
1456
1457 config TARGET_LS1043AQDS
1458         bool "Support ls1043aqds"
1459         select ARCH_LS1043A
1460         select ARM64
1461         select ARMV8_MULTIENTRY
1462         select ARCH_SUPPORT_TFABOOT
1463         select BOARD_EARLY_INIT_F
1464         select BOARD_LATE_INIT
1465         select SUPPORT_SPL
1466         select FSL_DDR_INTERACTIVE if !SPL
1467         imply SCSI
1468         imply SCSI_AHCI
1469         help
1470           Support for Freescale LS1043AQDS platform.
1471
1472 config TARGET_LS1043ARDB
1473         bool "Support ls1043ardb"
1474         select ARCH_LS1043A
1475         select ARM64
1476         select ARMV8_MULTIENTRY
1477         select ARCH_SUPPORT_TFABOOT
1478         select BOARD_EARLY_INIT_F
1479         select BOARD_LATE_INIT
1480         select SUPPORT_SPL
1481         help
1482           Support for Freescale LS1043ARDB platform.
1483
1484 config TARGET_LS1046AQDS
1485         bool "Support ls1046aqds"
1486         select ARCH_LS1046A
1487         select ARM64
1488         select ARMV8_MULTIENTRY
1489         select ARCH_SUPPORT_TFABOOT
1490         select BOARD_EARLY_INIT_F
1491         select BOARD_LATE_INIT
1492         select DM_SPI_FLASH if DM_SPI
1493         select SUPPORT_SPL
1494         select FSL_DDR_BIST if !SPL
1495         select FSL_DDR_INTERACTIVE  if !SPL
1496         select FSL_DDR_INTERACTIVE if !SPL
1497         imply SCSI
1498         help
1499           Support for Freescale LS1046AQDS platform.
1500           The LS1046A Development System (QDS) is a high-performance
1501           development platform that supports the QorIQ LS1046A
1502           Layerscape Architecture processor.
1503
1504 config TARGET_LS1046ARDB
1505         bool "Support ls1046ardb"
1506         select ARCH_LS1046A
1507         select ARM64
1508         select ARMV8_MULTIENTRY
1509         select ARCH_SUPPORT_TFABOOT
1510         select BOARD_EARLY_INIT_F
1511         select BOARD_LATE_INIT
1512         select DM_SPI_FLASH if DM_SPI
1513         select POWER_MC34VR500
1514         select SUPPORT_SPL
1515         select FSL_DDR_BIST
1516         select FSL_DDR_INTERACTIVE if !SPL
1517         imply SCSI
1518         help
1519           Support for Freescale LS1046ARDB platform.
1520           The LS1046A Reference Design Board (RDB) is a high-performance
1521           development platform that supports the QorIQ LS1046A
1522           Layerscape Architecture processor.
1523
1524 config TARGET_LS1046AFRWY
1525         bool "Support ls1046afrwy"
1526         select ARCH_LS1046A
1527         select ARM64
1528         select ARMV8_MULTIENTRY
1529         select ARCH_SUPPORT_TFABOOT
1530         select BOARD_EARLY_INIT_F
1531         select BOARD_LATE_INIT
1532         select DM_SPI_FLASH if DM_SPI
1533         imply SCSI
1534         help
1535           Support for Freescale LS1046AFRWY platform.
1536           The LS1046A Freeway Board (FRWY) is a high-performance
1537           development platform that supports the QorIQ LS1046A
1538           Layerscape Architecture processor.
1539
1540 config TARGET_COLIBRI_PXA270
1541         bool "Support colibri_pxa270"
1542         select CPU_PXA
1543
1544 config ARCH_UNIPHIER
1545         bool "Socionext UniPhier SoCs"
1546         select BOARD_LATE_INIT
1547         select DM
1548         select DM_GPIO
1549         select DM_I2C
1550         select DM_MMC
1551         select DM_RESET
1552         select DM_SERIAL
1553         select DM_USB
1554         select OF_BOARD_SETUP
1555         select OF_CONTROL
1556         select OF_LIBFDT
1557         select PINCTRL
1558         select SPL_BOARD_INIT if SPL
1559         select SPL_DM if SPL
1560         select SPL_LIBCOMMON_SUPPORT if SPL
1561         select SPL_LIBGENERIC_SUPPORT if SPL
1562         select SPL_OF_CONTROL if SPL
1563         select SPL_PINCTRL if SPL
1564         select SUPPORT_SPL
1565         imply CMD_DM
1566         imply DISTRO_DEFAULTS
1567         imply FAT_WRITE
1568         help
1569           Support for UniPhier SoC family developed by Socionext Inc.
1570           (formerly, System LSI Business Division of Panasonic Corporation)
1571
1572 config STM32
1573         bool "Support STMicroelectronics STM32 MCU with cortex M"
1574         select CPU_V7M
1575         select DM
1576         select DM_SERIAL
1577         imply CMD_DM
1578
1579 config ARCH_STI
1580         bool "Support STMicrolectronics SoCs"
1581         select BLK
1582         select CPU_V7A
1583         select DM
1584         select DM_MMC
1585         select DM_RESET
1586         select DM_SERIAL
1587         imply CMD_DM
1588         help
1589           Support for STMicroelectronics STiH407/10 SoC family.
1590           This SoC is used on Linaro 96Board STiH410-B2260
1591
1592 config ARCH_STM32MP
1593         bool "Support STMicroelectronics STM32MP Socs with cortex A"
1594         select ARCH_MISC_INIT
1595         select BOARD_LATE_INIT
1596         select CLK
1597         select DM
1598         select DM_GPIO
1599         select DM_RESET
1600         select DM_SERIAL
1601         select MISC
1602         select OF_CONTROL
1603         select OF_LIBFDT
1604         select OF_SYSTEM_SETUP
1605         select PINCTRL
1606         select REGMAP
1607         select SUPPORT_SPL
1608         select SYSCON
1609         select SYSRESET
1610         select SYS_THUMB_BUILD
1611         imply SPL_SYSRESET
1612         imply CMD_DM
1613         imply CMD_POWEROFF
1614         imply OF_LIBFDT_OVERLAY
1615         imply ENV_VARS_UBOOT_RUNTIME_CONFIG
1616         imply USE_PREBOOT
1617         help
1618           Support for STM32MP SoC family developed by STMicroelectronics,
1619           MPUs based on ARM cortex A core
1620           U-BOOT is running in DDR, loaded by the First Stage BootLoader (FSBL).
1621           FSBL can be TF-A: Trusted Firmware for Cortex A, for trusted boot
1622           chain.
1623           SPL is the unsecure FSBL for the basic boot chain.
1624
1625 config ARCH_ROCKCHIP
1626         bool "Support Rockchip SoCs"
1627         select BLK
1628         select DM
1629         select DM_GPIO
1630         select DM_I2C
1631         select DM_MMC
1632         select DM_PWM
1633         select DM_REGULATOR
1634         select DM_SERIAL
1635         select DM_SPI
1636         select DM_SPI_FLASH
1637         select DM_USB if USB
1638         select ENABLE_ARM_SOC_BOOT0_HOOK
1639         select OF_CONTROL
1640         select SPI
1641         select SPL_DM if SPL
1642         select SYS_MALLOC_F
1643         select SYS_THUMB_BUILD if !ARM64
1644         imply ADC
1645         imply CMD_DM
1646         imply DEBUG_UART_BOARD_INIT
1647         imply DISTRO_DEFAULTS
1648         imply FAT_WRITE
1649         imply SARADC_ROCKCHIP
1650         imply SPL_SYSRESET
1651         imply SPL_SYS_MALLOC_SIMPLE
1652         imply SYS_NS16550
1653         imply TPL_SYSRESET
1654         imply USB_FUNCTION_FASTBOOT
1655
1656 config TARGET_THUNDERX_88XX
1657         bool "Support ThunderX 88xx"
1658         select ARM64
1659         select OF_CONTROL
1660         select PL01X_SERIAL
1661         select SYS_CACHE_SHIFT_7
1662
1663 config ARCH_ASPEED
1664         bool "Support Aspeed SoCs"
1665         select DM
1666         select OF_CONTROL
1667         imply CMD_DM
1668
1669 config TARGET_DURIAN
1670         bool "Support Phytium Durian Platform"
1671         select ARM64
1672         help
1673           Support for durian platform.
1674           It has 2GB Sdram, uart and pcie.
1675
1676 endchoice
1677
1678 config ARCH_SUPPORT_TFABOOT
1679         bool
1680
1681 config TFABOOT
1682         bool "Support for booting from TF-A"
1683         depends on ARCH_SUPPORT_TFABOOT
1684         default n
1685         help
1686           Enabling this will make a U-Boot binary that is capable of being
1687           booted via TF-A (Trusted Firmware for Cortex-A).
1688
1689 config TI_SECURE_DEVICE
1690         bool "HS Device Type Support"
1691         depends on ARCH_KEYSTONE || ARCH_OMAP2PLUS || ARCH_K3
1692         help
1693           If a high secure (HS) device type is being used, this config
1694           must be set. This option impacts various aspects of the
1695           build system (to create signed boot images that can be
1696           authenticated) and the code. See the doc/README.ti-secure
1697           file for further details.
1698
1699 if AM43XX || AM33XX || OMAP54XX || ARCH_KEYSTONE
1700 config ISW_ENTRY_ADDR
1701         hex "Address in memory or XIP address of bootloader entry point"
1702         default 0x402F4000 if AM43XX
1703         default 0x402F0400 if AM33XX
1704         default 0x40301350 if OMAP54XX
1705         help
1706           After any reset, the boot ROM searches the boot media for a valid
1707           boot image. For non-XIP devices, the ROM then copies the image into
1708           internal memory. For all boot modes, after the ROM processes the
1709           boot image it eventually computes the entry point address depending
1710           on the device type (secure/non-secure), boot media (xip/non-xip) and
1711           image headers.
1712 endif
1713
1714 source "arch/arm/mach-aspeed/Kconfig"
1715
1716 source "arch/arm/mach-at91/Kconfig"
1717
1718 source "arch/arm/mach-bcm283x/Kconfig"
1719
1720 source "arch/arm/mach-bcmstb/Kconfig"
1721
1722 source "arch/arm/mach-davinci/Kconfig"
1723
1724 source "arch/arm/mach-exynos/Kconfig"
1725
1726 source "arch/arm/mach-highbank/Kconfig"
1727
1728 source "arch/arm/mach-integrator/Kconfig"
1729
1730 source "arch/arm/mach-k3/Kconfig"
1731
1732 source "arch/arm/mach-keystone/Kconfig"
1733
1734 source "arch/arm/mach-kirkwood/Kconfig"
1735
1736 source "arch/arm/cpu/arm926ejs/lpc32xx/Kconfig"
1737
1738 source "arch/arm/mach-mvebu/Kconfig"
1739
1740 source "arch/arm/cpu/armv7/ls102xa/Kconfig"
1741
1742 source "arch/arm/mach-imx/mx2/Kconfig"
1743
1744 source "arch/arm/mach-imx/mx3/Kconfig"
1745
1746 source "arch/arm/mach-imx/mx5/Kconfig"
1747
1748 source "arch/arm/mach-imx/mx6/Kconfig"
1749
1750 source "arch/arm/mach-imx/mx7/Kconfig"
1751
1752 source "arch/arm/mach-imx/mx7ulp/Kconfig"
1753
1754 source "arch/arm/mach-imx/imx8/Kconfig"
1755
1756 source "arch/arm/mach-imx/imx8m/Kconfig"
1757
1758 source "arch/arm/mach-imx/imxrt/Kconfig"
1759
1760 source "arch/arm/mach-imx/mxs/Kconfig"
1761
1762 source "arch/arm/mach-omap2/Kconfig"
1763
1764 source "arch/arm/cpu/armv8/fsl-layerscape/Kconfig"
1765
1766 source "arch/arm/mach-orion5x/Kconfig"
1767
1768 source "arch/arm/mach-owl/Kconfig"
1769
1770 source "arch/arm/mach-rmobile/Kconfig"
1771
1772 source "arch/arm/mach-meson/Kconfig"
1773
1774 source "arch/arm/mach-mediatek/Kconfig"
1775
1776 source "arch/arm/mach-qemu/Kconfig"
1777
1778 source "arch/arm/mach-rockchip/Kconfig"
1779
1780 source "arch/arm/mach-s5pc1xx/Kconfig"
1781
1782 source "arch/arm/mach-snapdragon/Kconfig"
1783
1784 source "arch/arm/mach-socfpga/Kconfig"
1785
1786 source "arch/arm/mach-sti/Kconfig"
1787
1788 source "arch/arm/mach-stm32/Kconfig"
1789
1790 source "arch/arm/mach-stm32mp/Kconfig"
1791
1792 source "arch/arm/mach-sunxi/Kconfig"
1793
1794 source "arch/arm/mach-tegra/Kconfig"
1795
1796 source "arch/arm/mach-u8500/Kconfig"
1797
1798 source "arch/arm/mach-uniphier/Kconfig"
1799
1800 source "arch/arm/cpu/armv7/vf610/Kconfig"
1801
1802 source "arch/arm/mach-zynq/Kconfig"
1803
1804 source "arch/arm/mach-zynqmp/Kconfig"
1805
1806 source "arch/arm/mach-versal/Kconfig"
1807
1808 source "arch/arm/mach-zynqmp-r5/Kconfig"
1809
1810 source "arch/arm/cpu/armv7/Kconfig"
1811
1812 source "arch/arm/cpu/armv8/Kconfig"
1813
1814 source "arch/arm/mach-imx/Kconfig"
1815
1816 source "board/bosch/shc/Kconfig"
1817 source "board/bosch/guardian/Kconfig"
1818 source "board/CarMediaLab/flea3/Kconfig"
1819 source "board/Marvell/aspenite/Kconfig"
1820 source "board/Marvell/gplugd/Kconfig"
1821 source "board/armadeus/apf27/Kconfig"
1822 source "board/armltd/vexpress/Kconfig"
1823 source "board/armltd/vexpress64/Kconfig"
1824 source "board/broadcom/bcm23550_w1d/Kconfig"
1825 source "board/broadcom/bcm28155_ap/Kconfig"
1826 source "board/broadcom/bcm963158/Kconfig"
1827 source "board/broadcom/bcm968360bg/Kconfig"
1828 source "board/broadcom/bcm968580xref/Kconfig"
1829 source "board/broadcom/bcmcygnus/Kconfig"
1830 source "board/broadcom/bcmnsp/Kconfig"
1831 source "board/broadcom/bcmns2/Kconfig"
1832 source "board/cavium/thunderx/Kconfig"
1833 source "board/cirrus/edb93xx/Kconfig"
1834 source "board/eets/pdu001/Kconfig"
1835 source "board/emulation/qemu-arm/Kconfig"
1836 source "board/freescale/ls2080a/Kconfig"
1837 source "board/freescale/ls2080aqds/Kconfig"
1838 source "board/freescale/ls2080ardb/Kconfig"
1839 source "board/freescale/ls1088a/Kconfig"
1840 source "board/freescale/ls1028a/Kconfig"
1841 source "board/freescale/ls1021aqds/Kconfig"
1842 source "board/freescale/ls1043aqds/Kconfig"
1843 source "board/freescale/ls1021atwr/Kconfig"
1844 source "board/freescale/ls1021atsn/Kconfig"
1845 source "board/freescale/ls1021aiot/Kconfig"
1846 source "board/freescale/ls1046aqds/Kconfig"
1847 source "board/freescale/ls1043ardb/Kconfig"
1848 source "board/freescale/ls1046ardb/Kconfig"
1849 source "board/freescale/ls1046afrwy/Kconfig"
1850 source "board/freescale/ls1012aqds/Kconfig"
1851 source "board/freescale/ls1012ardb/Kconfig"
1852 source "board/freescale/ls1012afrdm/Kconfig"
1853 source "board/freescale/lx2160a/Kconfig"
1854 source "board/freescale/mx35pdk/Kconfig"
1855 source "board/freescale/s32v234evb/Kconfig"
1856 source "board/grinn/chiliboard/Kconfig"
1857 source "board/gumstix/pepper/Kconfig"
1858 source "board/hisilicon/hikey/Kconfig"
1859 source "board/hisilicon/hikey960/Kconfig"
1860 source "board/hisilicon/poplar/Kconfig"
1861 source "board/isee/igep003x/Kconfig"
1862 source "board/phytec/pcm051/Kconfig"
1863 source "board/silica/pengwyn/Kconfig"
1864 source "board/spear/spear300/Kconfig"
1865 source "board/spear/spear310/Kconfig"
1866 source "board/spear/spear320/Kconfig"
1867 source "board/spear/spear600/Kconfig"
1868 source "board/spear/x600/Kconfig"
1869 source "board/st/stv0991/Kconfig"
1870 source "board/tcl/sl50/Kconfig"
1871 source "board/ucRobotics/bubblegum_96/Kconfig"
1872 source "board/birdland/bav335x/Kconfig"
1873 source "board/toradex/colibri_pxa270/Kconfig"
1874 source "board/variscite/dart_6ul/Kconfig"
1875 source "board/vscom/baltos/Kconfig"
1876 source "board/woodburn/Kconfig"
1877 source "board/xilinx/Kconfig"
1878 source "board/xilinx/zynq/Kconfig"
1879 source "board/xilinx/zynqmp/Kconfig"
1880 source "board/phytium/durian/Kconfig"
1881
1882 source "arch/arm/Kconfig.debug"
1883
1884 endmenu
1885
1886 config SPL_LDSCRIPT
1887         default "arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds" if (ARCH_MX23 || ARCH_MX28) && !SPL_FRAMEWORK
1888         default "arch/arm/cpu/arm1136/u-boot-spl.lds" if CPU_ARM1136
1889         default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARM64
1890
1891