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