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