arm64: Enable INIT_SP_RELATIVE by default when POC is enabled
[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_BCM6858
637         bool "Broadcom BCM6858 family"
638         select DM
639         select OF_CONTROL
640         imply CMD_DM
641
642 config TARGET_VEXPRESS_CA15_TC2
643         bool "Support vexpress_ca15_tc2"
644         select CPU_V7A
645         select CPU_V7_HAS_NONSEC
646         select CPU_V7_HAS_VIRT
647         select PL011_SERIAL
648
649 config ARCH_BCMSTB
650         bool "Broadcom BCM7XXX family"
651         select CPU_V7A
652         select DM
653         select OF_CONTROL
654         select OF_PRIOR_STAGE
655         imply CMD_DM
656         help
657           This enables support for Broadcom ARM-based set-top box
658           chipsets, including the 7445 family of chips.
659
660 config TARGET_VEXPRESS_CA5X2
661         bool "Support vexpress_ca5x2"
662         select CPU_V7A
663         select PL011_SERIAL
664
665 config TARGET_VEXPRESS_CA9X4
666         bool "Support vexpress_ca9x4"
667         select CPU_V7A
668         select PL011_SERIAL
669
670 config TARGET_BCM23550_W1D
671         bool "Support bcm23550_w1d"
672         select CPU_V7A
673         imply CRC32_VERIFY
674         imply FAT_WRITE
675
676 config TARGET_BCM28155_AP
677         bool "Support bcm28155_ap"
678         select CPU_V7A
679         imply CRC32_VERIFY
680         imply FAT_WRITE
681
682 config TARGET_BCMCYGNUS
683         bool "Support bcmcygnus"
684         select CPU_V7A
685         imply BCM_SF2_ETH
686         imply BCM_SF2_ETH_GMAC
687         imply CMD_HASH
688         imply CRC32_VERIFY
689         imply FAT_WRITE
690         imply HASH_VERIFY
691         imply NETDEVICES
692
693 config TARGET_BCMNSP
694         bool "Support bcmnsp"
695         select CPU_V7A
696
697 config TARGET_BCMNS2
698         bool "Support Broadcom Northstar2"
699         select ARM64
700         help
701           Support for Broadcom Northstar 2 SoCs.  NS2 is a quad-core 64-bit
702           ARMv8 Cortex-A57 processors targeting a broad range of networking
703           applications.
704
705 config ARCH_EXYNOS
706         bool "Samsung EXYNOS"
707         select DM
708         select DM_GPIO
709         select DM_I2C
710         select DM_KEYBOARD
711         select DM_SERIAL
712         select DM_SPI
713         select DM_SPI_FLASH
714         select SPI
715         imply SYS_THUMB_BUILD
716         imply CMD_DM
717         imply FAT_WRITE
718
719 config ARCH_S5PC1XX
720         bool "Samsung S5PC1XX"
721         select CPU_V7A
722         select DM
723         select DM_GPIO
724         select DM_I2C
725         select DM_SERIAL
726         imply CMD_DM
727
728 config ARCH_HIGHBANK
729         bool "Calxeda Highbank"
730         select CPU_V7A
731         select PL011_SERIAL
732
733 config ARCH_INTEGRATOR
734         bool "ARM Ltd. Integrator family"
735         select DM
736         select DM_SERIAL
737         select PL01X_SERIAL
738         imply CMD_DM
739
740 config ARCH_KEYSTONE
741         bool "TI Keystone"
742         select CMD_POWEROFF
743         select CPU_V7A
744         select SUPPORT_SPL
745         select SYS_ARCH_TIMER
746         select SYS_THUMB_BUILD
747         imply CMD_MTDPARTS
748         imply CMD_SAVES
749         imply FIT
750
751 config ARCH_K3
752         bool "Texas Instruments' K3 Architecture"
753         select SPL
754         select SUPPORT_SPL
755         select FIT
756
757 config ARCH_OMAP2PLUS
758         bool "TI OMAP2+"
759         select CPU_V7A
760         select SPL_BOARD_INIT if SPL
761         select SPL_STACK_R if SPL
762         select SUPPORT_SPL
763         imply FIT
764
765 config ARCH_MESON
766         bool "Amlogic Meson"
767         imply DISTRO_DEFAULTS
768         help
769           Support for the Meson SoC family developed by Amlogic Inc.,
770           targeted at media players and tablet computers. We currently
771           support the S905 (GXBaby) 64-bit SoC.
772
773 config ARCH_MEDIATEK
774         bool "MediaTek SoCs"
775         select BINMAN
776         select DM
777         select OF_CONTROL
778         select SPL_DM if SPL
779         select SPL_LIBCOMMON_SUPPORT if SPL
780         select SPL_LIBGENERIC_SUPPORT if SPL
781         select SPL_OF_CONTROL if SPL
782         select SUPPORT_SPL
783         help
784           Support for the MediaTek SoCs family developed by MediaTek Inc.
785           Please refer to doc/README.mediatek for more information.
786
787 config ARCH_LPC32XX
788         bool "NXP LPC32xx platform"
789         select CPU_ARM926EJS
790         select DM
791         select DM_GPIO
792         select DM_SERIAL
793         select SPL_DM if SPL
794         select SUPPORT_SPL
795         imply CMD_DM
796
797 config ARCH_IMX8
798         bool "NXP i.MX8 platform"
799         select ARM64
800         select DM
801         select OF_CONTROL
802         select ENABLE_ARM_SOC_BOOT0_HOOK
803
804 config ARCH_IMX8M
805         bool "NXP i.MX8M platform"
806         select ARM64
807         select DM
808         select SUPPORT_SPL
809         imply CMD_DM
810
811 config ARCH_MX23
812         bool "NXP i.MX23 family"
813         select CPU_ARM926EJS
814         select PL011_SERIAL
815         select SUPPORT_SPL
816
817 config ARCH_MX25
818         bool "NXP MX25"
819         select CPU_ARM926EJS
820         imply MXC_GPIO
821
822 config ARCH_MX28
823         bool "NXP i.MX28 family"
824         select CPU_ARM926EJS
825         select PL011_SERIAL
826         select SUPPORT_SPL
827
828 config ARCH_MX31
829         bool "NXP i.MX31 family"
830         select CPU_ARM1136
831
832 config ARCH_MX7ULP
833         bool "NXP MX7ULP"
834         select CPU_V7A
835         select ROM_UNIFIED_SECTIONS
836         imply MXC_GPIO
837         imply SYS_THUMB_BUILD
838
839 config ARCH_MX7
840         bool "Freescale MX7"
841         select ARCH_MISC_INIT
842         select BOARD_EARLY_INIT_F
843         select CPU_V7A
844         select SYS_FSL_HAS_SEC if IMX_HAB
845         select SYS_FSL_SEC_COMPAT_4
846         select SYS_FSL_SEC_LE
847         imply MXC_GPIO
848         imply SYS_THUMB_BUILD
849
850 config ARCH_MX6
851         bool "Freescale MX6"
852         select CPU_V7A
853         select SYS_FSL_HAS_SEC if IMX_HAB
854         select SYS_FSL_SEC_COMPAT_4
855         select SYS_FSL_SEC_LE
856         imply MXC_GPIO
857         imply SYS_THUMB_BUILD
858
859 if ARCH_MX6
860 config SPL_LDSCRIPT
861         default "arch/arm/mach-omap2/u-boot-spl.lds"
862 endif
863
864 config ARCH_MX5
865         bool "Freescale MX5"
866         select BOARD_EARLY_INIT_F
867         select CPU_V7A
868         imply MXC_GPIO
869
870 config ARCH_OWL
871         bool "Actions Semi OWL SoCs"
872         select ARM64
873         select DM
874         select DM_SERIAL
875         select OF_CONTROL
876         imply CMD_DM
877
878 config ARCH_QEMU
879         bool "QEMU Virtual Platform"
880         select ARCH_SUPPORT_TFABOOT
881         select DM
882         select DM_SERIAL
883         select OF_CONTROL
884         select PL01X_SERIAL
885         imply CMD_DM
886         imply DM_RTC
887         imply RTC_PL031
888
889 config ARCH_RMOBILE
890         bool "Renesas ARM SoCs"
891         select BOARD_EARLY_INIT_F if !RZA1
892         select DM
893         select DM_SERIAL
894         imply CMD_DM
895         imply FAT_WRITE
896         imply SYS_THUMB_BUILD
897         imply ARCH_MISC_INIT if DISPLAY_CPUINFO
898
899 config TARGET_S32V234EVB
900         bool "Support s32v234evb"
901         select ARM64
902         select SYS_FSL_ERRATUM_ESDHC111
903
904 config ARCH_SNAPDRAGON
905         bool "Qualcomm Snapdragon SoCs"
906         select ARM64
907         select DM
908         select DM_GPIO
909         select DM_SERIAL
910         select MSM_SMEM
911         select OF_CONTROL
912         select OF_SEPARATE
913         select SMEM
914         select SPMI
915         imply CMD_DM
916
917 config ARCH_SOCFPGA
918         bool "Altera SOCFPGA family"
919         select ARCH_EARLY_INIT_R
920         select ARCH_MISC_INIT if !TARGET_SOCFPGA_ARRIA10
921         select ARM64 if TARGET_SOCFPGA_STRATIX10 || TARGET_SOCFPGA_AGILEX
922         select CPU_V7A if TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_ARRIA10
923         select DM
924         select DM_SERIAL
925         select ENABLE_ARM_SOC_BOOT0_HOOK if TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_ARRIA10
926         select OF_CONTROL
927         select SPL_DM_RESET if DM_RESET
928         select SPL_DM_SERIAL
929         select SPL_LIBCOMMON_SUPPORT
930         select SPL_LIBGENERIC_SUPPORT
931         select SPL_NAND_SUPPORT if SPL_NAND_DENALI
932         select SPL_OF_CONTROL
933         select SPL_SEPARATE_BSS if TARGET_SOCFPGA_STRATIX10 || TARGET_SOCFPGA_AGILEX
934         select SPL_SERIAL_SUPPORT
935         select SPL_SYSRESET
936         select SPL_WATCHDOG_SUPPORT
937         select SUPPORT_SPL
938         select SYS_NS16550
939         select SYS_THUMB_BUILD if TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_ARRIA10
940         select SYSRESET
941         select SYSRESET_SOCFPGA if TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_ARRIA10
942         select SYSRESET_SOCFPGA_S10 if TARGET_SOCFPGA_STRATIX10
943         imply CMD_DM
944         imply CMD_MTDPARTS
945         imply CRC32_VERIFY
946         imply DM_SPI
947         imply DM_SPI_FLASH
948         imply FAT_WRITE
949         imply SPL
950         imply SPL_DM
951         imply SPL_LIBDISK_SUPPORT
952         imply SPL_MMC_SUPPORT
953         imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
954         imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
955         imply SPL_SPI_FLASH_SUPPORT
956         imply SPL_SPI_SUPPORT
957         imply L2X0_CACHE
958
959 config ARCH_SUNXI
960         bool "Support sunxi (Allwinner) SoCs"
961         select BINMAN
962         select CMD_GPIO
963         select CMD_MMC if MMC
964         select CMD_USB if DISTRO_DEFAULTS
965         select CLK
966         select DM
967         select DM_ETH
968         select DM_GPIO
969         select DM_KEYBOARD
970         select DM_MMC if MMC
971         select DM_SCSI if SCSI
972         select DM_SERIAL
973         select DM_USB if DISTRO_DEFAULTS
974         select OF_BOARD_SETUP
975         select OF_CONTROL
976         select OF_SEPARATE
977         select SPECIFY_CONSOLE_INDEX
978         select SPL_STACK_R if SPL
979         select SPL_SYS_MALLOC_SIMPLE if SPL
980         select SPL_SYS_THUMB_BUILD if !ARM64
981         select SUNXI_GPIO
982         select SYS_NS16550
983         select SYS_THUMB_BUILD if !ARM64
984         select USB if DISTRO_DEFAULTS
985         select USB_KEYBOARD if DISTRO_DEFAULTS
986         select USB_STORAGE if DISTRO_DEFAULTS
987         select SPL_USE_TINY_PRINTF
988         imply CMD_DM
989         imply CMD_GPT
990         imply CMD_UBI if MTD_RAW_NAND
991         imply DISTRO_DEFAULTS
992         imply FAT_WRITE
993         imply FIT
994         imply OF_LIBFDT_OVERLAY
995         imply PRE_CONSOLE_BUFFER
996         imply SPL_GPIO_SUPPORT
997         imply SPL_LIBCOMMON_SUPPORT
998         imply SPL_LIBGENERIC_SUPPORT
999         imply SPL_MMC_SUPPORT if MMC
1000         imply SPL_POWER_SUPPORT
1001         imply SPL_SERIAL_SUPPORT
1002         imply USB_GADGET
1003
1004 config ARCH_VERSAL
1005         bool "Support Xilinx Versal Platform"
1006         select ARM64
1007         select CLK
1008         select DM
1009         select DM_ETH if NET
1010         select DM_MMC if MMC
1011         select DM_SERIAL
1012         select OF_CONTROL
1013         imply BOARD_LATE_INIT
1014
1015 config ARCH_VF610
1016         bool "Freescale Vybrid"
1017         select CPU_V7A
1018         select SYS_FSL_ERRATUM_ESDHC111
1019         imply CMD_MTDPARTS
1020         imply MTD_RAW_NAND
1021
1022 config ARCH_ZYNQ
1023         bool "Xilinx Zynq based platform"
1024         select CLK
1025         select CLK_ZYNQ
1026         select CPU_V7A
1027         select DM
1028         select DM_ETH if NET
1029         select DM_MMC if MMC
1030         select DM_SERIAL
1031         select DM_SPI
1032         select DM_SPI_FLASH
1033         select DM_USB if USB
1034         select OF_CONTROL
1035         select SPI
1036         select SPL_BOARD_INIT if SPL
1037         select SPL_CLK if SPL
1038         select SPL_DM if SPL
1039         select SPL_OF_CONTROL if SPL
1040         select SPL_SEPARATE_BSS if SPL
1041         select SUPPORT_SPL
1042         imply ARCH_EARLY_INIT_R
1043         imply BOARD_LATE_INIT
1044         imply CMD_CLK
1045         imply CMD_DM
1046         imply CMD_SPL
1047         imply FAT_WRITE
1048
1049 config ARCH_ZYNQMP_R5
1050         bool "Xilinx ZynqMP R5 based platform"
1051         select CLK
1052         select CPU_V7R
1053         select DM
1054         select DM_ETH if NET
1055         select DM_MMC if MMC
1056         select DM_SERIAL
1057         select OF_CONTROL
1058         imply CMD_DM
1059         imply DM_USB_GADGET
1060
1061 config ARCH_ZYNQMP
1062         bool "Xilinx ZynqMP based platform"
1063         select ARM64
1064         select CLK
1065         select DM
1066         select DM_ETH if NET
1067         select DM_MAILBOX
1068         select DM_MMC if MMC
1069         select DM_SERIAL
1070         select DM_SPI if SPI
1071         select DM_SPI_FLASH if DM_SPI
1072         select DM_USB if USB
1073         select FIRMWARE
1074         select OF_CONTROL
1075         select SPL_BOARD_INIT if SPL
1076         select SPL_CLK if SPL
1077         select SPL_DM_MAILBOX if SPL
1078         select SPL_FIRMWARE if SPL
1079         select SPL_SEPARATE_BSS if SPL
1080         select SUPPORT_SPL
1081         select ZYNQMP_IPI
1082         imply BOARD_LATE_INIT
1083         imply CMD_DM
1084         imply FAT_WRITE
1085         imply MP
1086         imply DM_USB_GADGET
1087
1088 config TEGRA
1089         bool "NVIDIA Tegra"
1090         imply DISTRO_DEFAULTS
1091         imply FAT_WRITE
1092
1093 config TARGET_VEXPRESS64_AEMV8A
1094         bool "Support vexpress_aemv8a"
1095         select ARM64
1096         select PL01X_SERIAL
1097
1098 config TARGET_VEXPRESS64_BASE_FVP
1099         bool "Support Versatile Express ARMv8a FVP BASE model"
1100         select ARM64
1101         select PL01X_SERIAL
1102         select SEMIHOSTING
1103
1104 config TARGET_VEXPRESS64_JUNO
1105         bool "Support Versatile Express Juno Development Platform"
1106         select ARM64
1107         select PL01X_SERIAL
1108
1109 config TARGET_LS2080A_EMU
1110         bool "Support ls2080a_emu"
1111         select ARCH_LS2080A
1112         select ARCH_MISC_INIT
1113         select ARM64
1114         select ARMV8_MULTIENTRY
1115         select FSL_DDR_SYNC_REFRESH
1116         help
1117           Support for Freescale LS2080A_EMU platform.
1118           The LS2080A Development System (EMULATOR) is a pre-silicon
1119           development platform that supports the QorIQ LS2080A
1120           Layerscape Architecture processor.
1121
1122 config TARGET_LS2080A_SIMU
1123         bool "Support ls2080a_simu"
1124         select ARCH_LS2080A
1125         select ARCH_MISC_INIT
1126         select ARM64
1127         select ARMV8_MULTIENTRY
1128         select BOARD_LATE_INIT
1129         help
1130           Support for Freescale LS2080A_SIMU platform.
1131           The LS2080A Development System (QDS) is a pre silicon
1132           development platform that supports the QorIQ LS2080A
1133           Layerscape Architecture processor.
1134
1135 config TARGET_LS1088AQDS
1136         bool "Support ls1088aqds"
1137         select ARCH_LS1088A
1138         select ARCH_MISC_INIT
1139         select ARM64
1140         select ARMV8_MULTIENTRY
1141         select ARCH_SUPPORT_TFABOOT
1142         select BOARD_LATE_INIT
1143         select SUPPORT_SPL
1144         select FSL_DDR_INTERACTIVE if !SD_BOOT
1145         help
1146           Support for NXP LS1088AQDS platform.
1147           The LS1088A Development System (QDS) is a high-performance
1148           development platform that supports the QorIQ LS1088A
1149           Layerscape Architecture processor.
1150
1151 config TARGET_LS2080AQDS
1152         bool "Support ls2080aqds"
1153         select ARCH_LS2080A
1154         select ARCH_MISC_INIT
1155         select ARM64
1156         select ARMV8_MULTIENTRY
1157         select ARCH_SUPPORT_TFABOOT
1158         select BOARD_LATE_INIT
1159         select SUPPORT_SPL
1160         imply SCSI
1161         imply SCSI_AHCI
1162         select FSL_DDR_BIST
1163         select FSL_DDR_INTERACTIVE if !SPL
1164         help
1165           Support for Freescale LS2080AQDS platform.
1166           The LS2080A Development System (QDS) is a high-performance
1167           development platform that supports the QorIQ LS2080A
1168           Layerscape Architecture processor.
1169
1170 config TARGET_LS2080ARDB
1171         bool "Support ls2080ardb"
1172         select ARCH_LS2080A
1173         select ARCH_MISC_INIT
1174         select ARM64
1175         select ARMV8_MULTIENTRY
1176         select ARCH_SUPPORT_TFABOOT
1177         select BOARD_LATE_INIT
1178         select SUPPORT_SPL
1179         select FSL_DDR_BIST
1180         select FSL_DDR_INTERACTIVE if !SPL
1181         imply SCSI
1182         imply SCSI_AHCI
1183         help
1184           Support for Freescale LS2080ARDB platform.
1185           The LS2080A Reference design board (RDB) is a high-performance
1186           development platform that supports the QorIQ LS2080A
1187           Layerscape Architecture processor.
1188
1189 config TARGET_LS2081ARDB
1190         bool "Support ls2081ardb"
1191         select ARCH_LS2080A
1192         select ARCH_MISC_INIT
1193         select ARM64
1194         select ARMV8_MULTIENTRY
1195         select BOARD_LATE_INIT
1196         select SUPPORT_SPL
1197         help
1198           Support for Freescale LS2081ARDB platform.
1199           The LS2081A Reference design board (RDB) is a high-performance
1200           development platform that supports the QorIQ LS2081A/LS2041A
1201           Layerscape Architecture processor.
1202
1203 config TARGET_LX2160ARDB
1204         bool "Support lx2160ardb"
1205         select ARCH_LX2160A
1206         select ARCH_MISC_INIT
1207         select ARM64
1208         select ARMV8_MULTIENTRY
1209         select ARCH_SUPPORT_TFABOOT
1210         select BOARD_LATE_INIT
1211         help
1212           Support for NXP LX2160ARDB platform.
1213           The lx2160ardb (LX2160A Reference design board (RDB)
1214           is a high-performance development platform that supports the
1215           QorIQ LX2160A/LX2120A/LX2080A Layerscape Architecture processor.
1216
1217 config TARGET_LX2160AQDS
1218         bool "Support lx2160aqds"
1219         select ARCH_LX2160A
1220         select ARCH_MISC_INIT
1221         select ARM64
1222         select ARMV8_MULTIENTRY
1223         select ARCH_SUPPORT_TFABOOT
1224         select BOARD_LATE_INIT
1225         help
1226           Support for NXP LX2160AQDS platform.
1227           The lx2160aqds (LX2160A QorIQ Development System (QDS)
1228           is a high-performance development platform that supports the
1229           QorIQ LX2160A/LX2120A/LX2080A Layerscape Architecture processor.
1230
1231 config TARGET_HIKEY
1232         bool "Support HiKey 96boards Consumer Edition Platform"
1233         select ARM64
1234         select DM
1235         select DM_GPIO
1236         select DM_SERIAL
1237         select OF_CONTROL
1238         select PL01X_SERIAL
1239         select SPECIFY_CONSOLE_INDEX
1240         imply CMD_DM
1241           help
1242           Support for HiKey 96boards platform. It features a HI6220
1243           SoC, with 8xA53 CPU, mali450 gpu, and 1GB RAM.
1244
1245 config TARGET_HIKEY960
1246         bool "Support HiKey960 96boards Consumer Edition Platform"
1247         select ARM64
1248         select DM
1249         select DM_SERIAL
1250         select OF_CONTROL
1251         select PL01X_SERIAL
1252         imply CMD_DM
1253           help
1254           Support for HiKey960 96boards platform. It features a HI3660
1255           SoC, with 4xA73 CPU, 4xA53 CPU, MALI-G71 GPU, and 3GB RAM.
1256
1257 config TARGET_POPLAR
1258         bool "Support Poplar 96boards Enterprise Edition Platform"
1259         select ARM64
1260         select DM
1261         select DM_SERIAL
1262         select DM_USB
1263         select OF_CONTROL
1264         select PL01X_SERIAL
1265         imply CMD_DM
1266           help
1267           Support for Poplar 96boards EE platform. It features a HI3798cv200
1268           SoC, with 4xA53 CPU, 1GB RAM and the high performance Mali T720 GPU
1269           making it capable of running any commercial set-top solution based on
1270           Linux or Android.
1271
1272 config TARGET_LS1012AQDS
1273         bool "Support ls1012aqds"
1274         select ARCH_LS1012A
1275         select ARM64
1276         select ARCH_SUPPORT_TFABOOT
1277         select BOARD_LATE_INIT
1278         help
1279           Support for Freescale LS1012AQDS platform.
1280           The LS1012A Development System (QDS) is a high-performance
1281           development platform that supports the QorIQ LS1012A
1282           Layerscape Architecture processor.
1283
1284 config TARGET_LS1012ARDB
1285         bool "Support ls1012ardb"
1286         select ARCH_LS1012A
1287         select ARM64
1288         select ARCH_SUPPORT_TFABOOT
1289         select BOARD_LATE_INIT
1290         imply SCSI
1291         imply SCSI_AHCI
1292         help
1293           Support for Freescale LS1012ARDB platform.
1294           The LS1012A Reference design board (RDB) is a high-performance
1295           development platform that supports the QorIQ LS1012A
1296           Layerscape Architecture processor.
1297
1298 config TARGET_LS1012A2G5RDB
1299         bool "Support ls1012a2g5rdb"
1300         select ARCH_LS1012A
1301         select ARM64
1302         select ARCH_SUPPORT_TFABOOT
1303         select BOARD_LATE_INIT
1304         imply SCSI
1305         help
1306           Support for Freescale LS1012A2G5RDB platform.
1307           The LS1012A 2G5 Reference design board (RDB) is a high-performance
1308           development platform that supports the QorIQ LS1012A
1309           Layerscape Architecture processor.
1310
1311 config TARGET_LS1012AFRWY
1312         bool "Support ls1012afrwy"
1313         select ARCH_LS1012A
1314         select ARM64
1315         select ARCH_SUPPORT_TFABOOT
1316         select BOARD_LATE_INIT
1317         imply SCSI
1318         imply SCSI_AHCI
1319         help
1320          Support for Freescale LS1012AFRWY platform.
1321          The LS1012A FRWY board (FRWY) is a high-performance
1322          development platform that supports the QorIQ LS1012A
1323          Layerscape Architecture processor.
1324
1325 config TARGET_LS1012AFRDM
1326         bool "Support ls1012afrdm"
1327         select ARCH_LS1012A
1328         select ARM64
1329         select ARCH_SUPPORT_TFABOOT
1330         help
1331           Support for Freescale LS1012AFRDM platform.
1332           The LS1012A Freedom  board (FRDM) is a high-performance
1333           development platform that supports the QorIQ LS1012A
1334           Layerscape Architecture processor.
1335
1336 config TARGET_LS1028AQDS
1337         bool "Support ls1028aqds"
1338         select ARCH_LS1028A
1339         select ARM64
1340         select ARMV8_MULTIENTRY
1341         select ARCH_SUPPORT_TFABOOT
1342         select BOARD_LATE_INIT
1343         select ARCH_MISC_INIT
1344         help
1345           Support for Freescale LS1028AQDS platform
1346           The LS1028A Development System (QDS) is a high-performance
1347           development platform that supports the QorIQ LS1028A
1348           Layerscape Architecture processor.
1349
1350 config TARGET_LS1028ARDB
1351         bool "Support ls1028ardb"
1352         select ARCH_LS1028A
1353         select ARM64
1354         select ARMV8_MULTIENTRY
1355         select ARCH_SUPPORT_TFABOOT
1356         help
1357           Support for Freescale LS1028ARDB platform
1358           The LS1028A Development System (RDB) is a high-performance
1359           development platform that supports the QorIQ LS1028A
1360           Layerscape Architecture processor.
1361
1362 config TARGET_LS1088ARDB
1363         bool "Support ls1088ardb"
1364         select ARCH_LS1088A
1365         select ARCH_MISC_INIT
1366         select ARM64
1367         select ARMV8_MULTIENTRY
1368         select ARCH_SUPPORT_TFABOOT
1369         select BOARD_LATE_INIT
1370         select SUPPORT_SPL
1371         select FSL_DDR_INTERACTIVE if !SD_BOOT
1372         help
1373           Support for NXP LS1088ARDB platform.
1374           The LS1088A Reference design board (RDB) is a high-performance
1375           development platform that supports the QorIQ LS1088A
1376           Layerscape Architecture processor.
1377
1378 config TARGET_LS1021AQDS
1379         bool "Support ls1021aqds"
1380         select ARCH_LS1021A
1381         select ARCH_SUPPORT_PSCI
1382         select BOARD_EARLY_INIT_F
1383         select BOARD_LATE_INIT
1384         select CPU_V7A
1385         select CPU_V7_HAS_NONSEC
1386         select CPU_V7_HAS_VIRT
1387         select LS1_DEEP_SLEEP
1388         select SUPPORT_SPL
1389         select SYS_FSL_DDR
1390         select FSL_DDR_INTERACTIVE
1391         imply SCSI
1392
1393 config TARGET_LS1021ATWR
1394         bool "Support ls1021atwr"
1395         select ARCH_LS1021A
1396         select ARCH_SUPPORT_PSCI
1397         select BOARD_EARLY_INIT_F
1398         select BOARD_LATE_INIT
1399         select CPU_V7A
1400         select CPU_V7_HAS_NONSEC
1401         select CPU_V7_HAS_VIRT
1402         select LS1_DEEP_SLEEP
1403         select SUPPORT_SPL
1404         imply SCSI
1405
1406 config TARGET_LS1021ATSN
1407         bool "Support ls1021atsn"
1408         select ARCH_LS1021A
1409         select ARCH_SUPPORT_PSCI
1410         select BOARD_EARLY_INIT_F
1411         select BOARD_LATE_INIT
1412         select CPU_V7A
1413         select CPU_V7_HAS_NONSEC
1414         select CPU_V7_HAS_VIRT
1415         select LS1_DEEP_SLEEP
1416         select SUPPORT_SPL
1417         imply SCSI
1418
1419 config TARGET_LS1021AIOT
1420         bool "Support ls1021aiot"
1421         select ARCH_LS1021A
1422         select ARCH_SUPPORT_PSCI
1423         select BOARD_LATE_INIT
1424         select CPU_V7A
1425         select CPU_V7_HAS_NONSEC
1426         select CPU_V7_HAS_VIRT
1427         select SUPPORT_SPL
1428         imply SCSI
1429         help
1430           Support for Freescale LS1021AIOT platform.
1431           The LS1021A Freescale board (IOT) is a high-performance
1432           development platform that supports the QorIQ LS1021A
1433           Layerscape Architecture processor.
1434
1435 config TARGET_LS1043AQDS
1436         bool "Support ls1043aqds"
1437         select ARCH_LS1043A
1438         select ARM64
1439         select ARMV8_MULTIENTRY
1440         select ARCH_SUPPORT_TFABOOT
1441         select BOARD_EARLY_INIT_F
1442         select BOARD_LATE_INIT
1443         select SUPPORT_SPL
1444         select FSL_DDR_INTERACTIVE if !SPL
1445         imply SCSI
1446         imply SCSI_AHCI
1447         help
1448           Support for Freescale LS1043AQDS platform.
1449
1450 config TARGET_LS1043ARDB
1451         bool "Support ls1043ardb"
1452         select ARCH_LS1043A
1453         select ARM64
1454         select ARMV8_MULTIENTRY
1455         select ARCH_SUPPORT_TFABOOT
1456         select BOARD_EARLY_INIT_F
1457         select BOARD_LATE_INIT
1458         select SUPPORT_SPL
1459         help
1460           Support for Freescale LS1043ARDB platform.
1461
1462 config TARGET_LS1046AQDS
1463         bool "Support ls1046aqds"
1464         select ARCH_LS1046A
1465         select ARM64
1466         select ARMV8_MULTIENTRY
1467         select ARCH_SUPPORT_TFABOOT
1468         select BOARD_EARLY_INIT_F
1469         select BOARD_LATE_INIT
1470         select DM_SPI_FLASH if DM_SPI
1471         select SUPPORT_SPL
1472         select FSL_DDR_BIST if !SPL
1473         select FSL_DDR_INTERACTIVE  if !SPL
1474         select FSL_DDR_INTERACTIVE if !SPL
1475         imply SCSI
1476         help
1477           Support for Freescale LS1046AQDS platform.
1478           The LS1046A Development System (QDS) is a high-performance
1479           development platform that supports the QorIQ LS1046A
1480           Layerscape Architecture processor.
1481
1482 config TARGET_LS1046ARDB
1483         bool "Support ls1046ardb"
1484         select ARCH_LS1046A
1485         select ARM64
1486         select ARMV8_MULTIENTRY
1487         select ARCH_SUPPORT_TFABOOT
1488         select BOARD_EARLY_INIT_F
1489         select BOARD_LATE_INIT
1490         select DM_SPI_FLASH if DM_SPI
1491         select POWER_MC34VR500
1492         select SUPPORT_SPL
1493         select FSL_DDR_BIST
1494         select FSL_DDR_INTERACTIVE if !SPL
1495         imply SCSI
1496         help
1497           Support for Freescale LS1046ARDB platform.
1498           The LS1046A Reference Design Board (RDB) is a high-performance
1499           development platform that supports the QorIQ LS1046A
1500           Layerscape Architecture processor.
1501
1502 config TARGET_LS1046AFRWY
1503         bool "Support ls1046afrwy"
1504         select ARCH_LS1046A
1505         select ARM64
1506         select ARMV8_MULTIENTRY
1507         select ARCH_SUPPORT_TFABOOT
1508         select BOARD_EARLY_INIT_F
1509         select BOARD_LATE_INIT
1510         select DM_SPI_FLASH if DM_SPI
1511         imply SCSI
1512         help
1513           Support for Freescale LS1046AFRWY platform.
1514           The LS1046A Freeway Board (FRWY) is a high-performance
1515           development platform that supports the QorIQ LS1046A
1516           Layerscape Architecture processor.
1517
1518 config TARGET_COLIBRI_PXA270
1519         bool "Support colibri_pxa270"
1520         select CPU_PXA
1521
1522 config ARCH_UNIPHIER
1523         bool "Socionext UniPhier SoCs"
1524         select BOARD_LATE_INIT
1525         select DM
1526         select DM_GPIO
1527         select DM_I2C
1528         select DM_MMC
1529         select DM_RESET
1530         select DM_SERIAL
1531         select DM_USB
1532         select OF_BOARD_SETUP
1533         select OF_CONTROL
1534         select OF_LIBFDT
1535         select PINCTRL
1536         select SPL_BOARD_INIT if SPL
1537         select SPL_DM if SPL
1538         select SPL_LIBCOMMON_SUPPORT if SPL
1539         select SPL_LIBGENERIC_SUPPORT if SPL
1540         select SPL_OF_CONTROL if SPL
1541         select SPL_PINCTRL if SPL
1542         select SUPPORT_SPL
1543         imply CMD_DM
1544         imply DISTRO_DEFAULTS
1545         imply FAT_WRITE
1546         help
1547           Support for UniPhier SoC family developed by Socionext Inc.
1548           (formerly, System LSI Business Division of Panasonic Corporation)
1549
1550 config STM32
1551         bool "Support STMicroelectronics STM32 MCU with cortex M"
1552         select CPU_V7M
1553         select DM
1554         select DM_SERIAL
1555         imply CMD_DM
1556
1557 config ARCH_STI
1558         bool "Support STMicrolectronics SoCs"
1559         select BLK
1560         select CPU_V7A
1561         select DM
1562         select DM_MMC
1563         select DM_RESET
1564         select DM_SERIAL
1565         imply CMD_DM
1566         help
1567           Support for STMicroelectronics STiH407/10 SoC family.
1568           This SoC is used on Linaro 96Board STiH410-B2260
1569
1570 config ARCH_STM32MP
1571         bool "Support STMicroelectronics STM32MP Socs with cortex A"
1572         select ARCH_MISC_INIT
1573         select BOARD_LATE_INIT
1574         select CLK
1575         select DM
1576         select DM_GPIO
1577         select DM_RESET
1578         select DM_SERIAL
1579         select MISC
1580         select OF_CONTROL
1581         select OF_LIBFDT
1582         select OF_SYSTEM_SETUP
1583         select PINCTRL
1584         select REGMAP
1585         select SUPPORT_SPL
1586         select SYSCON
1587         select SYSRESET
1588         select SYS_THUMB_BUILD
1589         imply SPL_SYSRESET
1590         imply CMD_DM
1591         imply CMD_POWEROFF
1592         imply OF_LIBFDT_OVERLAY
1593         imply ENV_VARS_UBOOT_RUNTIME_CONFIG
1594         imply USE_PREBOOT
1595         help
1596           Support for STM32MP SoC family developed by STMicroelectronics,
1597           MPUs based on ARM cortex A core
1598           U-BOOT is running in DDR, loaded by the First Stage BootLoader (FSBL).
1599           FSBL can be TF-A: Trusted Firmware for Cortex A, for trusted boot
1600           chain.
1601           SPL is the unsecure FSBL for the basic boot chain.
1602
1603 config ARCH_ROCKCHIP
1604         bool "Support Rockchip SoCs"
1605         select BLK
1606         select DM
1607         select DM_GPIO
1608         select DM_I2C
1609         select DM_MMC
1610         select DM_PWM
1611         select DM_REGULATOR
1612         select DM_SERIAL
1613         select DM_SPI
1614         select DM_SPI_FLASH
1615         select DM_USB if USB
1616         select ENABLE_ARM_SOC_BOOT0_HOOK
1617         select OF_CONTROL
1618         select SPI
1619         select SPL_DM if SPL
1620         select SYS_MALLOC_F
1621         select SYS_THUMB_BUILD if !ARM64
1622         imply ADC
1623         imply CMD_DM
1624         imply DEBUG_UART_BOARD_INIT
1625         imply DISTRO_DEFAULTS
1626         imply FAT_WRITE
1627         imply SARADC_ROCKCHIP
1628         imply SPL_SYSRESET
1629         imply SPL_SYS_MALLOC_SIMPLE
1630         imply SYS_NS16550
1631         imply TPL_SYSRESET
1632         imply USB_FUNCTION_FASTBOOT
1633
1634 config TARGET_THUNDERX_88XX
1635         bool "Support ThunderX 88xx"
1636         select ARM64
1637         select OF_CONTROL
1638         select PL01X_SERIAL
1639         select SYS_CACHE_SHIFT_7
1640
1641 config ARCH_ASPEED
1642         bool "Support Aspeed SoCs"
1643         select DM
1644         select OF_CONTROL
1645         imply CMD_DM
1646
1647 config TARGET_DURIAN
1648         bool "Support Phytium Durian Platform"
1649         select ARM64
1650         help
1651           Support for durian platform.
1652           It has 2GB Sdram, uart and pcie.
1653
1654 endchoice
1655
1656 config ARCH_SUPPORT_TFABOOT
1657         bool
1658
1659 config TFABOOT
1660         bool "Support for booting from TF-A"
1661         depends on ARCH_SUPPORT_TFABOOT
1662         default n
1663         help
1664           Enabling this will make a U-Boot binary that is capable of being
1665           booted via TF-A (Trusted Firmware for Cortex-A).
1666
1667 config TI_SECURE_DEVICE
1668         bool "HS Device Type Support"
1669         depends on ARCH_KEYSTONE || ARCH_OMAP2PLUS || ARCH_K3
1670         help
1671           If a high secure (HS) device type is being used, this config
1672           must be set. This option impacts various aspects of the
1673           build system (to create signed boot images that can be
1674           authenticated) and the code. See the doc/README.ti-secure
1675           file for further details.
1676
1677 if AM43XX || AM33XX || OMAP54XX || ARCH_KEYSTONE
1678 config ISW_ENTRY_ADDR
1679         hex "Address in memory or XIP address of bootloader entry point"
1680         default 0x402F4000 if AM43XX
1681         default 0x402F0400 if AM33XX
1682         default 0x40301350 if OMAP54XX
1683         help
1684           After any reset, the boot ROM searches the boot media for a valid
1685           boot image. For non-XIP devices, the ROM then copies the image into
1686           internal memory. For all boot modes, after the ROM processes the
1687           boot image it eventually computes the entry point address depending
1688           on the device type (secure/non-secure), boot media (xip/non-xip) and
1689           image headers.
1690 endif
1691
1692 source "arch/arm/mach-aspeed/Kconfig"
1693
1694 source "arch/arm/mach-at91/Kconfig"
1695
1696 source "arch/arm/mach-bcm283x/Kconfig"
1697
1698 source "arch/arm/mach-bcmstb/Kconfig"
1699
1700 source "arch/arm/mach-davinci/Kconfig"
1701
1702 source "arch/arm/mach-exynos/Kconfig"
1703
1704 source "arch/arm/mach-highbank/Kconfig"
1705
1706 source "arch/arm/mach-integrator/Kconfig"
1707
1708 source "arch/arm/mach-k3/Kconfig"
1709
1710 source "arch/arm/mach-keystone/Kconfig"
1711
1712 source "arch/arm/mach-kirkwood/Kconfig"
1713
1714 source "arch/arm/cpu/arm926ejs/lpc32xx/Kconfig"
1715
1716 source "arch/arm/mach-mvebu/Kconfig"
1717
1718 source "arch/arm/cpu/armv7/ls102xa/Kconfig"
1719
1720 source "arch/arm/mach-imx/mx2/Kconfig"
1721
1722 source "arch/arm/mach-imx/mx3/Kconfig"
1723
1724 source "arch/arm/mach-imx/mx5/Kconfig"
1725
1726 source "arch/arm/mach-imx/mx6/Kconfig"
1727
1728 source "arch/arm/mach-imx/mx7/Kconfig"
1729
1730 source "arch/arm/mach-imx/mx7ulp/Kconfig"
1731
1732 source "arch/arm/mach-imx/imx8/Kconfig"
1733
1734 source "arch/arm/mach-imx/imx8m/Kconfig"
1735
1736 source "arch/arm/mach-imx/mxs/Kconfig"
1737
1738 source "arch/arm/mach-omap2/Kconfig"
1739
1740 source "arch/arm/cpu/armv8/fsl-layerscape/Kconfig"
1741
1742 source "arch/arm/mach-orion5x/Kconfig"
1743
1744 source "arch/arm/mach-owl/Kconfig"
1745
1746 source "arch/arm/mach-rmobile/Kconfig"
1747
1748 source "arch/arm/mach-meson/Kconfig"
1749
1750 source "arch/arm/mach-mediatek/Kconfig"
1751
1752 source "arch/arm/mach-qemu/Kconfig"
1753
1754 source "arch/arm/mach-rockchip/Kconfig"
1755
1756 source "arch/arm/mach-s5pc1xx/Kconfig"
1757
1758 source "arch/arm/mach-snapdragon/Kconfig"
1759
1760 source "arch/arm/mach-socfpga/Kconfig"
1761
1762 source "arch/arm/mach-sti/Kconfig"
1763
1764 source "arch/arm/mach-stm32/Kconfig"
1765
1766 source "arch/arm/mach-stm32mp/Kconfig"
1767
1768 source "arch/arm/mach-sunxi/Kconfig"
1769
1770 source "arch/arm/mach-tegra/Kconfig"
1771
1772 source "arch/arm/mach-uniphier/Kconfig"
1773
1774 source "arch/arm/cpu/armv7/vf610/Kconfig"
1775
1776 source "arch/arm/mach-zynq/Kconfig"
1777
1778 source "arch/arm/mach-zynqmp/Kconfig"
1779
1780 source "arch/arm/mach-versal/Kconfig"
1781
1782 source "arch/arm/mach-zynqmp-r5/Kconfig"
1783
1784 source "arch/arm/cpu/armv7/Kconfig"
1785
1786 source "arch/arm/cpu/armv8/Kconfig"
1787
1788 source "arch/arm/mach-imx/Kconfig"
1789
1790 source "board/bosch/shc/Kconfig"
1791 source "board/bosch/guardian/Kconfig"
1792 source "board/CarMediaLab/flea3/Kconfig"
1793 source "board/Marvell/aspenite/Kconfig"
1794 source "board/Marvell/gplugd/Kconfig"
1795 source "board/armadeus/apf27/Kconfig"
1796 source "board/armltd/vexpress/Kconfig"
1797 source "board/armltd/vexpress64/Kconfig"
1798 source "board/broadcom/bcm23550_w1d/Kconfig"
1799 source "board/broadcom/bcm28155_ap/Kconfig"
1800 source "board/broadcom/bcm963158/Kconfig"
1801 source "board/broadcom/bcm968580xref/Kconfig"
1802 source "board/broadcom/bcmcygnus/Kconfig"
1803 source "board/broadcom/bcmnsp/Kconfig"
1804 source "board/broadcom/bcmns2/Kconfig"
1805 source "board/cavium/thunderx/Kconfig"
1806 source "board/cirrus/edb93xx/Kconfig"
1807 source "board/eets/pdu001/Kconfig"
1808 source "board/emulation/qemu-arm/Kconfig"
1809 source "board/freescale/ls2080a/Kconfig"
1810 source "board/freescale/ls2080aqds/Kconfig"
1811 source "board/freescale/ls2080ardb/Kconfig"
1812 source "board/freescale/ls1088a/Kconfig"
1813 source "board/freescale/ls1028a/Kconfig"
1814 source "board/freescale/ls1021aqds/Kconfig"
1815 source "board/freescale/ls1043aqds/Kconfig"
1816 source "board/freescale/ls1021atwr/Kconfig"
1817 source "board/freescale/ls1021atsn/Kconfig"
1818 source "board/freescale/ls1021aiot/Kconfig"
1819 source "board/freescale/ls1046aqds/Kconfig"
1820 source "board/freescale/ls1043ardb/Kconfig"
1821 source "board/freescale/ls1046ardb/Kconfig"
1822 source "board/freescale/ls1046afrwy/Kconfig"
1823 source "board/freescale/ls1012aqds/Kconfig"
1824 source "board/freescale/ls1012ardb/Kconfig"
1825 source "board/freescale/ls1012afrdm/Kconfig"
1826 source "board/freescale/lx2160a/Kconfig"
1827 source "board/freescale/mx35pdk/Kconfig"
1828 source "board/freescale/s32v234evb/Kconfig"
1829 source "board/grinn/chiliboard/Kconfig"
1830 source "board/gumstix/pepper/Kconfig"
1831 source "board/hisilicon/hikey/Kconfig"
1832 source "board/hisilicon/hikey960/Kconfig"
1833 source "board/hisilicon/poplar/Kconfig"
1834 source "board/isee/igep003x/Kconfig"
1835 source "board/phytec/pcm051/Kconfig"
1836 source "board/silica/pengwyn/Kconfig"
1837 source "board/spear/spear300/Kconfig"
1838 source "board/spear/spear310/Kconfig"
1839 source "board/spear/spear320/Kconfig"
1840 source "board/spear/spear600/Kconfig"
1841 source "board/spear/x600/Kconfig"
1842 source "board/st/stv0991/Kconfig"
1843 source "board/tcl/sl50/Kconfig"
1844 source "board/ucRobotics/bubblegum_96/Kconfig"
1845 source "board/birdland/bav335x/Kconfig"
1846 source "board/toradex/colibri_pxa270/Kconfig"
1847 source "board/variscite/dart_6ul/Kconfig"
1848 source "board/vscom/baltos/Kconfig"
1849 source "board/woodburn/Kconfig"
1850 source "board/xilinx/Kconfig"
1851 source "board/xilinx/zynq/Kconfig"
1852 source "board/xilinx/zynqmp/Kconfig"
1853 source "board/phytium/durian/Kconfig"
1854
1855 source "arch/arm/Kconfig.debug"
1856
1857 endmenu
1858
1859 config SPL_LDSCRIPT
1860         default "arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds" if (ARCH_MX23 || ARCH_MX28) && !SPL_FRAMEWORK
1861         default "arch/arm/cpu/arm1136/u-boot-spl.lds" if CPU_ARM1136
1862         default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARM64
1863
1864