distro: use imply to enable DISTRO_DEFAULTS as SoC default
[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 SYS_INIT_SP_BSS_OFFSET
24         int
25         help
26           U-Boot typically uses a hard-coded value for the stack pointer
27           before relocation. Define this option to instead calculate the
28           initial SP at run-time. This is useful to avoid hard-coding addresses
29           into U-Boot, so that can be loaded and executed at arbitrary
30           addresses and thus avoid using arbitrary addresses at runtime. This
31           option's value is the offset added to &_bss_start in order to
32           calculate the stack pointer. This offset should be large enough so
33           that the early malloc region, global data (gd), and early stack usage
34           do not overlap any appended DTB.
35
36 config LINUX_KERNEL_IMAGE_HEADER
37         bool
38         help
39           Place a Linux kernel image header at the start of the U-Boot binary.
40           The format of the header is described in the Linux kernel source at
41           Documentation/arm64/booting.txt. This feature is useful since the
42           image header reports the amount of memory (BSS and similar) that
43           U-Boot needs to use, but which isn't part of the binary.
44
45 if LINUX_KERNEL_IMAGE_HEADER
46 config LNX_KRNL_IMG_TEXT_OFFSET_BASE
47         hex
48         help
49           The value subtracted from CONFIG_SYS_TEXT_BASE to calculate the
50           TEXT_OFFSET value written in to the Linux kernel image header.
51 endif
52 endif
53
54 config STATIC_RELA
55         bool
56         default y if ARM64 && !POSITION_INDEPENDENT
57
58 config DMA_ADDR_T_64BIT
59         bool
60         default y if ARM64
61
62 config HAS_VBAR
63         bool
64
65 config HAS_THUMB2
66         bool
67
68 # Used for compatibility with asm files copied from the kernel
69 config ARM_ASM_UNIFIED
70         bool
71         default y
72
73 # Used for compatibility with asm files copied from the kernel
74 config THUMB2_KERNEL
75         bool
76
77 # If set, the workarounds for these ARM errata are applied early during U-Boot
78 # startup. Note that in general these options force the workarounds to be
79 # applied; no CPU-type/version detection exists, unlike the similar options in
80 # the Linux kernel. Do not set these options unless they apply!  Also note that
81 # the following can be machine specific errata. These do have ability to
82 # provide rudimentary version and machine specific checks, but expect no
83 # product checks:
84 # CONFIG_ARM_ERRATA_430973
85 # CONFIG_ARM_ERRATA_454179
86 # CONFIG_ARM_ERRATA_621766
87 # CONFIG_ARM_ERRATA_798870
88 # CONFIG_ARM_ERRATA_801819
89 config ARM_ERRATA_430973
90         bool
91
92 config ARM_ERRATA_454179
93         bool
94
95 config ARM_ERRATA_621766
96         bool
97
98 config ARM_ERRATA_716044
99         bool
100
101 config ARM_ERRATA_725233
102         bool
103
104 config ARM_ERRATA_742230
105         bool
106
107 config ARM_ERRATA_743622
108         bool
109
110 config ARM_ERRATA_751472
111         bool
112
113 config ARM_ERRATA_761320
114         bool
115
116 config ARM_ERRATA_773022
117         bool
118
119 config ARM_ERRATA_774769
120         bool
121
122 config ARM_ERRATA_794072
123         bool
124
125 config ARM_ERRATA_798870
126         bool
127
128 config ARM_ERRATA_801819
129         bool
130
131 config ARM_ERRATA_826974
132         bool
133
134 config ARM_ERRATA_828024
135         bool
136
137 config ARM_ERRATA_829520
138         bool
139
140 config ARM_ERRATA_833069
141         bool
142
143 config ARM_ERRATA_833471
144         bool
145
146 config ARM_ERRATA_845369
147        bool
148
149 config ARM_ERRATA_852421
150         bool
151
152 config ARM_ERRATA_852423
153         bool
154
155 config ARM_ERRATA_855873
156         bool
157
158 config CPU_ARM720T
159         bool
160         select SYS_CACHE_SHIFT_5
161
162 config CPU_ARM920T
163         bool
164         select SYS_CACHE_SHIFT_5
165
166 config CPU_ARM926EJS
167         bool
168         select SYS_CACHE_SHIFT_5
169
170 config CPU_ARM946ES
171         bool
172         select SYS_CACHE_SHIFT_5
173
174 config CPU_ARM1136
175         bool
176         select SYS_CACHE_SHIFT_5
177
178 config CPU_ARM1176
179         bool
180         select HAS_VBAR
181         select SYS_CACHE_SHIFT_5
182
183 config CPU_V7
184         bool
185         select HAS_VBAR
186         select HAS_THUMB2
187         select SYS_CACHE_SHIFT_6
188
189 config CPU_V7M
190         bool
191         select HAS_THUMB2
192         select THUMB2_KERNEL
193         select SYS_CACHE_SHIFT_5
194
195 config CPU_PXA
196         bool
197         select SYS_CACHE_SHIFT_5
198
199 config CPU_SA1100
200         bool
201         select SYS_CACHE_SHIFT_5
202
203 config SYS_CPU
204         default "arm720t" if CPU_ARM720T
205         default "arm920t" if CPU_ARM920T
206         default "arm926ejs" if CPU_ARM926EJS
207         default "arm946es" if CPU_ARM946ES
208         default "arm1136" if CPU_ARM1136
209         default "arm1176" if CPU_ARM1176
210         default "armv7" if CPU_V7
211         default "armv7m" if CPU_V7M
212         default "pxa" if CPU_PXA
213         default "sa1100" if CPU_SA1100
214         default "armv8" if ARM64
215
216 config SYS_ARM_ARCH
217         int
218         default 4 if CPU_ARM720T
219         default 4 if CPU_ARM920T
220         default 5 if CPU_ARM926EJS
221         default 5 if CPU_ARM946ES
222         default 6 if CPU_ARM1136
223         default 6 if CPU_ARM1176
224         default 7 if CPU_V7
225         default 7 if CPU_V7M
226         default 5 if CPU_PXA
227         default 4 if CPU_SA1100
228         default 8 if ARM64
229
230 config SYS_CACHE_SHIFT_5
231         bool
232
233 config SYS_CACHE_SHIFT_6
234         bool
235
236 config SYS_CACHE_SHIFT_7
237         bool
238
239 config SYS_CACHELINE_SIZE
240         int
241         default 128 if SYS_CACHE_SHIFT_7
242         default 64 if SYS_CACHE_SHIFT_6
243         default 32 if SYS_CACHE_SHIFT_5
244
245 config ARM_SMCCC
246         bool "Support for ARM SMC Calling Convention (SMCCC)"
247         depends on CPU_V7 || ARM64
248         select ARM_PSCI_FW
249         help
250           Say Y here if you want to enable ARM SMC Calling Convention.
251           This should be enabled if U-Boot needs to communicate with system
252           firmware (for example, PSCI) according to SMCCC.
253
254 config SEMIHOSTING
255         bool "support boot from semihosting"
256         help
257           In emulated environments, semihosting is a way for
258           the hosted environment to call out to the emulator to
259           retrieve files from the host machine.
260
261 config SYS_THUMB_BUILD
262         bool "Build U-Boot using the Thumb instruction set"
263         depends on !ARM64
264         help
265            Use this flag to build U-Boot using the Thumb instruction set for
266            ARM architectures. Thumb instruction set provides better code
267            density. For ARM architectures that support Thumb2 this flag will
268            result in Thumb2 code generated by GCC.
269
270 config SPL_SYS_THUMB_BUILD
271         bool "Build SPL using the Thumb instruction set"
272         default y if SYS_THUMB_BUILD
273         depends on !ARM64
274         help
275            Use this flag to build SPL using the Thumb instruction set for
276            ARM architectures. Thumb instruction set provides better code
277            density. For ARM architectures that support Thumb2 this flag will
278            result in Thumb2 code generated by GCC.
279
280 config SYS_L2CACHE_OFF
281         bool "L2cache off"
282         help
283           If SoC does not support L2CACHE or one do not want to enable
284           L2CACHE, choose this option.
285
286 config ENABLE_ARM_SOC_BOOT0_HOOK
287         bool "prepare BOOT0 header"
288         help
289           If the SoC's BOOT0 requires a header area filled with (magic)
290           values, then choose this option, and create a file included as
291           <asm/arch/boot0.h> which contains the required assembler code.
292
293 config ARM_CORTEX_CPU_IS_UP
294         bool
295         default n
296
297 config USE_ARCH_MEMCPY
298         bool "Use an assembly optimized implementation of memcpy"
299         default y
300         depends on !ARM64
301         help
302           Enable the generation of an optimized version of memcpy.
303           Such implementation may be faster under some conditions
304           but may increase the binary size.
305
306 config SPL_USE_ARCH_MEMCPY
307         bool "Use an assembly optimized implementation of memcpy for SPL"
308         default y if USE_ARCH_MEMCPY
309         depends on !ARM64
310         help
311           Enable the generation of an optimized version of memcpy.
312           Such implementation may be faster under some conditions
313           but may increase the binary size.
314
315 config USE_ARCH_MEMSET
316         bool "Use an assembly optimized implementation of memset"
317         default y
318         depends on !ARM64
319         help
320           Enable the generation of an optimized version of memset.
321           Such implementation may be faster under some conditions
322           but may increase the binary size.
323
324 config SPL_USE_ARCH_MEMSET
325         bool "Use an assembly optimized implementation of memset for SPL"
326         default y if USE_ARCH_MEMSET
327         depends on !ARM64
328         help
329           Enable the generation of an optimized version of memset.
330           Such implementation may be faster under some conditions
331           but may increase the binary size.
332
333 config ARM64_SUPPORT_AARCH32
334         bool "ARM64 system support AArch32 execution state"
335         default y if ARM64 && !TARGET_THUNDERX_88XX
336         help
337           This ARM64 system supports AArch32 execution state.
338
339 choice
340         prompt "Target select"
341         default TARGET_HIKEY
342
343 config ARCH_AT91
344         bool "Atmel AT91"
345         select SPL_BOARD_INIT if SPL
346
347 config TARGET_EDB93XX
348         bool "Support edb93xx"
349         select CPU_ARM920T
350         select PL010_SERIAL
351
352 config TARGET_ASPENITE
353         bool "Support aspenite"
354         select CPU_ARM926EJS
355
356 config TARGET_GPLUGD
357         bool "Support gplugd"
358         select CPU_ARM926EJS
359
360 config ARCH_DAVINCI
361         bool "TI DaVinci"
362         select CPU_ARM926EJS
363         imply CMD_SAVES
364         help
365           Support for TI's DaVinci platform.
366
367 config KIRKWOOD
368         bool "Marvell Kirkwood"
369         select CPU_ARM926EJS
370         select BOARD_EARLY_INIT_F
371         select ARCH_MISC_INIT
372
373 config ARCH_MVEBU
374         bool "Marvell MVEBU family (Armada XP/375/38x/3700/7K/8K)"
375         select OF_CONTROL
376         select OF_SEPARATE
377         select DM
378         select DM_ETH
379         select DM_SERIAL
380         select DM_SPI
381         select DM_SPI_FLASH
382         select SPI
383
384 config TARGET_DEVKIT3250
385         bool "Support devkit3250"
386         select CPU_ARM926EJS
387         select SUPPORT_SPL
388
389 config TARGET_WORK_92105
390         bool "Support work_92105"
391         select CPU_ARM926EJS
392         select SUPPORT_SPL
393
394 config TARGET_APF27
395         bool "Support apf27"
396         select CPU_ARM926EJS
397         select SUPPORT_SPL
398
399 config ORION5X
400         bool "Marvell Orion"
401         select CPU_ARM926EJS
402
403 config TARGET_SPEAR300
404         bool "Support spear300"
405         select CPU_ARM926EJS
406         select BOARD_EARLY_INIT_F
407         imply CMD_SAVES
408         select PL011_SERIAL
409
410 config TARGET_SPEAR310
411         bool "Support spear310"
412         select CPU_ARM926EJS
413         select BOARD_EARLY_INIT_F
414         imply CMD_SAVES
415         select PL011_SERIAL
416
417 config TARGET_SPEAR320
418         bool "Support spear320"
419         select CPU_ARM926EJS
420         select BOARD_EARLY_INIT_F
421         imply CMD_SAVES
422         select PL011_SERIAL
423
424 config TARGET_SPEAR600
425         bool "Support spear600"
426         select CPU_ARM926EJS
427         select BOARD_EARLY_INIT_F
428         imply CMD_SAVES
429         select PL011_SERIAL
430
431 config TARGET_STV0991
432         bool "Support stv0991"
433         select CPU_V7
434         select DM
435         select DM_SERIAL
436         select DM_SPI
437         select DM_SPI_FLASH
438         select SPI
439         select SPI_FLASH
440         select PL01X_SERIAL
441
442 config TARGET_X600
443         bool "Support x600"
444         select BOARD_LATE_INIT
445         select CPU_ARM926EJS
446         select SUPPORT_SPL
447         select PL011_SERIAL
448
449 config TARGET_MX31PDK
450         bool "Support mx31pdk"
451         select BOARD_LATE_INIT
452         select CPU_ARM1136
453         select SUPPORT_SPL
454         select BOARD_EARLY_INIT_F
455
456 config TARGET_WOODBURN
457         bool "Support woodburn"
458         select CPU_ARM1136
459
460 config TARGET_WOODBURN_SD
461         bool "Support woodburn_sd"
462         select CPU_ARM1136
463         select SUPPORT_SPL
464
465 config TARGET_FLEA3
466         bool "Support flea3"
467         select CPU_ARM1136
468
469 config TARGET_MX35PDK
470         bool "Support mx35pdk"
471         select BOARD_LATE_INIT
472         select CPU_ARM1136
473
474 config ARCH_BCM283X
475         bool "Broadcom BCM283X family"
476         select DM
477         select DM_SERIAL
478         select DM_GPIO
479         select OF_CONTROL
480         select PL01X_SERIAL
481         select SERIAL_SEARCH_ALL
482         imply FAT_WRITE
483
484 config TARGET_VEXPRESS_CA15_TC2
485         bool "Support vexpress_ca15_tc2"
486         select CPU_V7
487         select CPU_V7_HAS_NONSEC
488         select CPU_V7_HAS_VIRT
489         select PL011_SERIAL
490
491 config TARGET_VEXPRESS_CA5X2
492         bool "Support vexpress_ca5x2"
493         select CPU_V7
494         select PL011_SERIAL
495
496 config TARGET_VEXPRESS_CA9X4
497         bool "Support vexpress_ca9x4"
498         select CPU_V7
499         select PL011_SERIAL
500
501 config TARGET_BCM23550_W1D
502         bool "Support bcm23550_w1d"
503         select CPU_V7
504         imply CRC32_VERIFY
505         imply FAT_WRITE
506
507 config TARGET_BCM28155_AP
508         bool "Support bcm28155_ap"
509         select CPU_V7
510         imply CRC32_VERIFY
511         imply FAT_WRITE
512
513 config TARGET_BCMCYGNUS
514         bool "Support bcmcygnus"
515         select CPU_V7
516         imply CRC32_VERIFY
517         imply CMD_HASH
518         imply FAT_WRITE
519         imply HASH_VERIFY
520         imply NETDEVICES
521         imply BCM_SF2_ETH
522         imply BCM_SF2_ETH_GMAC
523
524 config TARGET_BCMNSP
525         bool "Support bcmnsp"
526         select CPU_V7
527
528 config TARGET_BCMNS2
529         bool "Support Broadcom Northstar2"
530         select ARM64
531         help
532           Support for Broadcom Northstar 2 SoCs.  NS2 is a quad-core 64-bit
533           ARMv8 Cortex-A57 processors targeting a broad range of networking
534           applications
535
536 config ARCH_EXYNOS
537         bool "Samsung EXYNOS"
538         select DM
539         select DM_I2C
540         select DM_SPI_FLASH
541         select DM_SERIAL
542         select DM_SPI
543         select DM_GPIO
544         select DM_KEYBOARD
545         select SPI
546         imply FAT_WRITE
547
548 config ARCH_S5PC1XX
549         bool "Samsung S5PC1XX"
550         select CPU_V7
551         select DM
552         select DM_SERIAL
553         select DM_GPIO
554         select DM_I2C
555
556 config ARCH_HIGHBANK
557         bool "Calxeda Highbank"
558         select CPU_V7
559         select PL011_SERIAL
560
561 config ARCH_INTEGRATOR
562         bool "ARM Ltd. Integrator family"
563         select DM
564         select DM_SERIAL
565         select PL01X_SERIAL
566
567 config ARCH_KEYSTONE
568         bool "TI Keystone"
569         select CPU_V7
570         select SUPPORT_SPL
571         select SYS_THUMB_BUILD
572         select CMD_POWEROFF
573         imply CMD_MTDPARTS
574         imply FIT
575         imply CMD_SAVES
576
577 config ARCH_OMAP2PLUS
578         bool "TI OMAP2+"
579         select CPU_V7
580         select SPL_BOARD_INIT if SPL
581         select SPL_STACK_R if SPL
582         select SUPPORT_SPL
583         imply FIT
584
585 config ARCH_MESON
586         bool "Amlogic Meson"
587         imply DISTRO_DEFAULTS
588         help
589           Support for the Meson SoC family developed by Amlogic Inc.,
590           targeted at media players and tablet computers. We currently
591           support the S905 (GXBaby) 64-bit SoC.
592
593 config ARCH_MX8M
594         bool "NXP i.MX8M platform"
595         select ARM64
596         select DM
597         select SUPPORT_SPL
598
599 config ARCH_MX23
600         bool "NXP i.MX23 family"
601         select CPU_ARM926EJS
602         select PL011_SERIAL
603         select SUPPORT_SPL
604
605 config ARCH_MX25
606         bool "NXP MX25"
607         select CPU_ARM926EJS
608         imply MXC_GPIO
609
610 config ARCH_MX28
611         bool "NXP i.MX28 family"
612         select CPU_ARM926EJS
613         select PL011_SERIAL
614         select SUPPORT_SPL
615
616 config ARCH_MX7ULP
617         bool "NXP MX7ULP"
618         select CPU_V7
619         select ROM_UNIFIED_SECTIONS
620         imply MXC_GPIO
621
622 config ARCH_MX7
623         bool "Freescale MX7"
624         select CPU_V7
625         select SYS_FSL_HAS_SEC if SECURE_BOOT
626         select SYS_FSL_SEC_COMPAT_4
627         select SYS_FSL_SEC_LE
628         select BOARD_EARLY_INIT_F
629         select ARCH_MISC_INIT
630         imply MXC_GPIO
631
632 config ARCH_MX6
633         bool "Freescale MX6"
634         select CPU_V7
635         select SYS_FSL_HAS_SEC if SECURE_BOOT
636         select SYS_FSL_SEC_COMPAT_4
637         select SYS_FSL_SEC_LE
638         select SYS_THUMB_BUILD if SPL
639         imply MXC_GPIO
640
641 if ARCH_MX6
642 config SPL_LDSCRIPT
643         default "arch/arm/mach-omap2/u-boot-spl.lds"
644 endif
645
646 config ARCH_MX5
647         bool "Freescale MX5"
648         select CPU_V7
649         select BOARD_EARLY_INIT_F
650         imply MXC_GPIO
651
652 config ARCH_QEMU
653         bool "QEMU Virtual Platform"
654         select DM
655         select DM_SERIAL
656         select OF_CONTROL
657         select PL01X_SERIAL
658
659 config ARCH_RMOBILE
660         bool "Renesas ARM SoCs"
661         select DM
662         select DM_SERIAL
663         select BOARD_EARLY_INIT_F
664         imply FAT_WRITE
665         imply SYS_THUMB_BUILD
666
667 config TARGET_S32V234EVB
668         bool "Support s32v234evb"
669         select ARM64
670         select SYS_FSL_ERRATUM_ESDHC111
671
672 config ARCH_SNAPDRAGON
673         bool "Qualcomm Snapdragon SoCs"
674         select ARM64
675         select DM
676         select DM_GPIO
677         select DM_SERIAL
678         select SPMI
679         select OF_CONTROL
680         select OF_SEPARATE
681
682 config ARCH_SOCFPGA
683         bool "Altera SOCFPGA family"
684         select CPU_V7
685         select SUPPORT_SPL
686         select OF_CONTROL
687         select SPL_OF_CONTROL
688         select DM
689         select ENABLE_ARM_SOC_BOOT0_HOOK
690         select ARCH_EARLY_INIT_R
691         select ARCH_MISC_INIT
692         select SYS_THUMB_BUILD
693         imply CMD_MTDPARTS
694         imply CRC32_VERIFY
695         imply DM_SPI
696         imply DM_SPI_FLASH
697         imply FAT_WRITE
698         imply HW_WATCHDOG
699         imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
700
701 config ARCH_SUNXI
702         bool "Support sunxi (Allwinner) SoCs"
703         select BINMAN
704         select CMD_GPIO
705         select CMD_MMC if MMC
706         select CMD_USB if DISTRO_DEFAULTS
707         select DM
708         select DM_ETH
709         select DM_GPIO
710         select DM_KEYBOARD
711         select DM_SERIAL
712         select DM_USB if DISTRO_DEFAULTS
713         select OF_BOARD_SETUP
714         select OF_CONTROL
715         select OF_SEPARATE
716         select SPECIFY_CONSOLE_INDEX
717         select SPL_STACK_R if SPL
718         select SPL_SYS_MALLOC_SIMPLE if SPL
719         select SYS_NS16550
720         select SPL_SYS_THUMB_BUILD if !ARM64
721         select SYS_THUMB_BUILD if !ARM64
722         select USB if DISTRO_DEFAULTS
723         select USB_STORAGE if DISTRO_DEFAULTS
724         select USB_KEYBOARD if DISTRO_DEFAULTS
725         select USE_TINY_PRINTF
726         imply CMD_GPT
727         imply DISTRO_DEFAULTS
728         imply FAT_WRITE
729         imply OF_LIBFDT_OVERLAY
730         imply PRE_CONSOLE_BUFFER
731         imply SPL_GPIO_SUPPORT
732         imply SPL_LIBCOMMON_SUPPORT
733         imply SPL_LIBDISK_SUPPORT
734         imply SPL_LIBGENERIC_SUPPORT
735         imply SPL_MMC_SUPPORT if MMC
736         imply SPL_POWER_SUPPORT
737         imply SPL_SERIAL_SUPPORT
738         imply USB_GADGET
739
740 config ARCH_VF610
741         bool "Freescale Vybrid"
742         select CPU_V7
743         select SYS_FSL_ERRATUM_ESDHC111
744         imply CMD_MTDPARTS
745         imply NAND
746
747 config ARCH_ZYNQ
748         bool "Xilinx Zynq based platform"
749         select BOARD_LATE_INIT
750         select CPU_V7
751         select SUPPORT_SPL
752         select OF_CONTROL
753         select SPL_BOARD_INIT if SPL
754         select BOARD_EARLY_INIT_F if WDT
755         select SPL_OF_CONTROL if SPL
756         select DM
757         select DM_ETH if NET
758         select SPL_DM if SPL
759         select DM_MMC if MMC
760         select DM_SPI
761         select DM_SERIAL
762         select DM_SPI_FLASH
763         select SPL_SEPARATE_BSS if SPL
764         select DM_USB if USB
765         select CLK
766         select SPL_CLK if SPL
767         select CLK_ZYNQ
768         select SPI
769         imply CMD_CLK
770         imply FAT_WRITE
771         imply CMD_SPL
772
773 config ARCH_ZYNQMP
774         bool "Xilinx ZynqMP based platform"
775         select ARM64
776         select BOARD_LATE_INIT
777         select DM
778         select OF_CONTROL
779         select DM_SERIAL
780         select SUPPORT_SPL
781         select CLK
782         select SPL_BOARD_INIT if SPL
783         select SPL_CLK if SPL
784         select DM_USB if USB
785         imply FAT_WRITE
786
787 config TEGRA
788         bool "NVIDIA Tegra"
789         imply DISTRO_DEFAULTS
790         imply FAT_WRITE
791
792 config TARGET_VEXPRESS64_AEMV8A
793         bool "Support vexpress_aemv8a"
794         select ARM64
795         select PL01X_SERIAL
796
797 config TARGET_VEXPRESS64_BASE_FVP
798         bool "Support Versatile Express ARMv8a FVP BASE model"
799         select ARM64
800         select SEMIHOSTING
801         select PL01X_SERIAL
802
803 config TARGET_VEXPRESS64_BASE_FVP_DRAM
804         bool "Support Versatile Express ARMv8a FVP BASE model booting from DRAM"
805         select ARM64
806         select PL01X_SERIAL
807         help
808           This target is derived from TARGET_VEXPRESS64_BASE_FVP and over-rides
809           the default config to allow the user to load the images directly into
810           DRAM using model parameters rather than by using semi-hosting to load
811           the files from the host filesystem.
812
813 config TARGET_VEXPRESS64_JUNO
814         bool "Support Versatile Express Juno Development Platform"
815         select ARM64
816         select PL01X_SERIAL
817
818 config TARGET_LS2080A_EMU
819         bool "Support ls2080a_emu"
820         select ARCH_LS2080A
821         select ARM64
822         select ARMV8_MULTIENTRY
823         select ARCH_MISC_INIT
824         help
825           Support for Freescale LS2080A_EMU platform
826           The LS2080A Development System (EMULATOR) is a pre silicon
827           development platform that supports the QorIQ LS2080A
828           Layerscape Architecture processor.
829
830 config TARGET_LS2080A_SIMU
831         bool "Support ls2080a_simu"
832         select ARCH_LS2080A
833         select ARM64
834         select ARMV8_MULTIENTRY
835         select ARCH_MISC_INIT
836         help
837           Support for Freescale LS2080A_SIMU platform
838           The LS2080A Development System (QDS) is a pre silicon
839           development platform that supports the QorIQ LS2080A
840           Layerscape Architecture processor.
841
842 config TARGET_LS1088AQDS
843         bool "Support ls1088aqds"
844         select ARCH_LS1088A
845         select ARM64
846         select ARMV8_MULTIENTRY
847         select ARCH_MISC_INIT
848         select BOARD_LATE_INIT
849         select SUPPORT_SPL
850         help
851           Support for NXP LS1088AQDS platform
852           The LS1088A Development System (QDS) is a high-performance
853           development platform that supports the QorIQ LS1088A
854           Layerscape Architecture processor.
855
856 config TARGET_LS2080AQDS
857         bool "Support ls2080aqds"
858         select ARCH_LS2080A
859         select ARM64
860         select ARMV8_MULTIENTRY
861         select BOARD_LATE_INIT
862         select SUPPORT_SPL
863         select ARCH_MISC_INIT
864         imply SCSI
865         imply SCSI_AHCI
866         help
867           Support for Freescale LS2080AQDS platform
868           The LS2080A Development System (QDS) is a high-performance
869           development platform that supports the QorIQ LS2080A
870           Layerscape Architecture processor.
871
872 config TARGET_LS2080ARDB
873         bool "Support ls2080ardb"
874         select ARCH_LS2080A
875         select ARM64
876         select ARMV8_MULTIENTRY
877         select BOARD_LATE_INIT
878         select SUPPORT_SPL
879         select ARCH_MISC_INIT
880         imply SCSI
881         imply SCSI_AHCI
882         help
883           Support for Freescale LS2080ARDB platform.
884           The LS2080A Reference design board (RDB) is a high-performance
885           development platform that supports the QorIQ LS2080A
886           Layerscape Architecture processor.
887
888 config TARGET_LS2081ARDB
889         bool "Support ls2081ardb"
890         select ARCH_LS2080A
891         select ARM64
892         select ARMV8_MULTIENTRY
893         select BOARD_LATE_INIT
894         select SUPPORT_SPL
895         select ARCH_MISC_INIT
896         help
897           Support for Freescale LS2081ARDB platform.
898           The LS2081A Reference design board (RDB) is a high-performance
899           development platform that supports the QorIQ LS2081A/LS2041A
900           Layerscape Architecture processor.
901
902 config TARGET_HIKEY
903         bool "Support HiKey 96boards Consumer Edition Platform"
904         select ARM64
905         select DM
906         select DM_GPIO
907         select DM_SERIAL
908         select OF_CONTROL
909         select PL01X_SERIAL
910         select SPECIFY_CONSOLE_INDEX
911           help
912           Support for HiKey 96boards platform. It features a HI6220
913           SoC, with 8xA53 CPU, mali450 gpu, and 1GB RAM.
914
915 config TARGET_POPLAR
916         bool "Support Poplar 96boards Enterprise Edition Platform"
917         select ARM64
918         select DM
919         select OF_CONTROL
920         select DM_SERIAL
921         select DM_USB
922         select PL01X_SERIAL
923           help
924           Support for Poplar 96boards EE platform. It features a HI3798cv200
925           SoC, with 4xA53 CPU, 1GB RAM and the high performance Mali T720 GPU
926           making it capable of running any commercial set-top solution based on
927           Linux or Android.
928
929 config TARGET_LS1012AQDS
930         bool "Support ls1012aqds"
931         select ARCH_LS1012A
932         select ARM64
933         select BOARD_LATE_INIT
934         help
935           Support for Freescale LS1012AQDS platform.
936           The LS1012A Development System (QDS) is a high-performance
937           development platform that supports the QorIQ LS1012A
938           Layerscape Architecture processor.
939
940 config TARGET_LS1012ARDB
941         bool "Support ls1012ardb"
942         select ARCH_LS1012A
943         select ARM64
944         select BOARD_LATE_INIT
945         imply SCSI
946         imply SCSI_AHCI
947         help
948           Support for Freescale LS1012ARDB platform.
949           The LS1012A Reference design board (RDB) is a high-performance
950           development platform that supports the QorIQ LS1012A
951           Layerscape Architecture processor.
952
953 config TARGET_LS1012A2G5RDB
954         bool "Support ls1012a2g5rdb"
955         select ARCH_LS1012A
956         select ARM64
957         select BOARD_LATE_INIT
958         imply SCSI
959         help
960           Support for Freescale LS1012A2G5RDB platform.
961           The LS1012A 2G5 Reference design board (RDB) is a high-performance
962           development platform that supports the QorIQ LS1012A
963           Layerscape Architecture processor.
964
965 config TARGET_LS1012AFRDM
966         bool "Support ls1012afrdm"
967         select ARCH_LS1012A
968         select ARM64
969         help
970           Support for Freescale LS1012AFRDM platform.
971           The LS1012A Freedom  board (FRDM) is a high-performance
972           development platform that supports the QorIQ LS1012A
973           Layerscape Architecture processor.
974
975 config TARGET_LS1088ARDB
976         bool "Support ls1088ardb"
977         select ARCH_LS1088A
978         select ARM64
979         select ARMV8_MULTIENTRY
980         select ARCH_MISC_INIT
981         select BOARD_LATE_INIT
982         select SUPPORT_SPL
983         help
984           Support for NXP LS1088ARDB platform.
985           The LS1088A Reference design board (RDB) is a high-performance
986           development platform that supports the QorIQ LS1088A
987           Layerscape Architecture processor.
988
989 config TARGET_LS1021AQDS
990         bool "Support ls1021aqds"
991         select BOARD_LATE_INIT
992         select CPU_V7
993         select CPU_V7_HAS_NONSEC
994         select CPU_V7_HAS_VIRT
995         select SUPPORT_SPL
996         select ARCH_LS1021A
997         select ARCH_SUPPORT_PSCI
998         select LS1_DEEP_SLEEP
999         select SYS_FSL_DDR
1000         select BOARD_EARLY_INIT_F
1001         imply SCSI
1002
1003 config TARGET_LS1021ATWR
1004         bool "Support ls1021atwr"
1005         select BOARD_LATE_INIT
1006         select CPU_V7
1007         select CPU_V7_HAS_NONSEC
1008         select CPU_V7_HAS_VIRT
1009         select SUPPORT_SPL
1010         select ARCH_LS1021A
1011         select ARCH_SUPPORT_PSCI
1012         select LS1_DEEP_SLEEP
1013         select BOARD_EARLY_INIT_F
1014         imply SCSI
1015
1016 config TARGET_LS1021AIOT
1017         bool "Support ls1021aiot"
1018         select BOARD_LATE_INIT
1019         select CPU_V7
1020         select CPU_V7_HAS_NONSEC
1021         select CPU_V7_HAS_VIRT
1022         select SUPPORT_SPL
1023         select ARCH_LS1021A
1024         select ARCH_SUPPORT_PSCI
1025         imply SCSI
1026         help
1027           Support for Freescale LS1021AIOT platform.
1028           The LS1021A Freescale board (IOT) is a high-performance
1029           development platform that supports the QorIQ LS1021A
1030           Layerscape Architecture processor.
1031
1032 config TARGET_LS1043AQDS
1033         bool "Support ls1043aqds"
1034         select ARCH_LS1043A
1035         select ARM64
1036         select ARMV8_MULTIENTRY
1037         select BOARD_LATE_INIT
1038         select SUPPORT_SPL
1039         select BOARD_EARLY_INIT_F
1040         imply SCSI
1041         help
1042           Support for Freescale LS1043AQDS platform.
1043
1044 config TARGET_LS1043ARDB
1045         bool "Support ls1043ardb"
1046         select ARCH_LS1043A
1047         select ARM64
1048         select ARMV8_MULTIENTRY
1049         select BOARD_LATE_INIT
1050         select SUPPORT_SPL
1051         select BOARD_EARLY_INIT_F
1052         imply SCSI
1053         help
1054           Support for Freescale LS1043ARDB platform.
1055
1056 config TARGET_LS1046AQDS
1057         bool "Support ls1046aqds"
1058         select ARCH_LS1046A
1059         select ARM64
1060         select ARMV8_MULTIENTRY
1061         select BOARD_LATE_INIT
1062         select SUPPORT_SPL
1063         select DM_SPI_FLASH if DM_SPI
1064         select BOARD_EARLY_INIT_F
1065         imply SCSI
1066         help
1067           Support for Freescale LS1046AQDS platform.
1068           The LS1046A Development System (QDS) is a high-performance
1069           development platform that supports the QorIQ LS1046A
1070           Layerscape Architecture processor.
1071
1072 config TARGET_LS1046ARDB
1073         bool "Support ls1046ardb"
1074         select ARCH_LS1046A
1075         select ARM64
1076         select ARMV8_MULTIENTRY
1077         select BOARD_LATE_INIT
1078         select SUPPORT_SPL
1079         select DM_SPI_FLASH if DM_SPI
1080         select POWER_MC34VR500
1081         select BOARD_EARLY_INIT_F
1082         imply SCSI
1083         help
1084           Support for Freescale LS1046ARDB platform.
1085           The LS1046A Reference Design Board (RDB) is a high-performance
1086           development platform that supports the QorIQ LS1046A
1087           Layerscape Architecture processor.
1088
1089 config TARGET_H2200
1090         bool "Support h2200"
1091         select CPU_PXA
1092
1093 config TARGET_ZIPITZ2
1094         bool "Support zipitz2"
1095         select CPU_PXA
1096
1097 config TARGET_COLIBRI_PXA270
1098         bool "Support colibri_pxa270"
1099         select CPU_PXA
1100
1101 config ARCH_UNIPHIER
1102         bool "Socionext UniPhier SoCs"
1103         select BOARD_LATE_INIT
1104         select DM
1105         select DM_GPIO
1106         select DM_I2C
1107         select DM_MMC
1108         select DM_RESET
1109         select DM_SERIAL
1110         select DM_USB
1111         select OF_CONTROL
1112         select OF_LIBFDT
1113         select PINCTRL
1114         select SPL_BOARD_INIT if SPL
1115         select SPL_DM if SPL
1116         select SPL_LIBCOMMON_SUPPORT if SPL
1117         select SPL_LIBGENERIC_SUPPORT if SPL
1118         select SPL_OF_CONTROL if SPL
1119         select SPL_PINCTRL if SPL
1120         select SUPPORT_SPL
1121         imply FAT_WRITE
1122         help
1123           Support for UniPhier SoC family developed by Socionext Inc.
1124           (formerly, System LSI Business Division of Panasonic Corporation)
1125
1126 config STM32
1127         bool "Support STMicroelectronics STM32 MCU with cortex M"
1128         select CPU_V7M
1129         select DM
1130         select DM_SERIAL
1131         select SYS_THUMB_BUILD
1132
1133 config ARCH_STI
1134         bool "Support STMicrolectronics SoCs"
1135         select CPU_V7
1136         select DM
1137         select DM_SERIAL
1138         select BLK
1139         select DM_MMC
1140         select DM_RESET
1141         help
1142           Support for STMicroelectronics STiH407/10 SoC family.
1143           This SoC is used on Linaro 96Board STiH410-B2260
1144
1145 config ARCH_STM32MP
1146         bool "Support STMicroelectronics STM32MP Socs with cortex A"
1147         select ARCH_MISC_INIT
1148         select BOARD_LATE_INIT
1149         select CLK
1150         select DM
1151         select DM_GPIO
1152         select DM_RESET
1153         select DM_SERIAL
1154         select OF_CONTROL
1155         select OF_LIBFDT
1156         select PINCTRL
1157         select REGMAP
1158         select SUPPORT_SPL
1159         select SYSCON
1160         select SYSRESET
1161         select SYS_THUMB_BUILD
1162         help
1163           Support for STM32MP SoC family developed by STMicroelectronics,
1164           MPUs based on ARM cortex A core
1165           U-BOOT is running in DDR and SPL support is the unsecure First Stage
1166           BootLoader (FSBL)
1167
1168 config ARCH_ROCKCHIP
1169         bool "Support Rockchip SoCs"
1170         select OF_CONTROL
1171         select BLK
1172         select DM
1173         select SPL_DM if SPL
1174         select SYS_MALLOC_F
1175         select SYS_THUMB_BUILD if !ARM64
1176         select SPL_SYS_MALLOC_SIMPLE if SPL
1177         select DM_GPIO
1178         select DM_I2C
1179         select DM_MMC
1180         select DM_SERIAL
1181         select DM_SPI
1182         select DM_SPI_FLASH
1183         select DM_USB if USB
1184         select DM_PWM
1185         select DM_REGULATOR
1186         select ENABLE_ARM_SOC_BOOT0_HOOK
1187         select SPI
1188         imply CMD_FASTBOOT
1189         imply DISTRO_DEFAULTS
1190         imply FASTBOOT
1191         imply FAT_WRITE
1192         imply USB_FUNCTION_FASTBOOT
1193         imply SPL_SYSRESET
1194         imply TPL_SYSRESET
1195         imply ADC
1196         imply SARADC_ROCKCHIP
1197         imply SYS_NS16550
1198
1199 config TARGET_THUNDERX_88XX
1200         bool "Support ThunderX 88xx"
1201         select ARM64
1202         select OF_CONTROL
1203         select SYS_CACHE_SHIFT_7
1204         select PL01X_SERIAL
1205
1206 config ARCH_ASPEED
1207         bool "Support Aspeed SoCs"
1208         select OF_CONTROL
1209         select DM
1210
1211 endchoice
1212
1213 config TI_SECURE_DEVICE
1214         bool "HS Device Type Support"
1215         depends on ARCH_KEYSTONE || ARCH_OMAP2PLUS
1216         help
1217           If a high secure (HS) device type is being used, this config
1218           must be set. This option impacts various aspects of the
1219           build system (to create signed boot images that can be
1220           authenticated) and the code. See the doc/README.ti-secure
1221           file for further details.
1222
1223 source "arch/arm/mach-aspeed/Kconfig"
1224
1225 source "arch/arm/mach-at91/Kconfig"
1226
1227 source "arch/arm/mach-bcm283x/Kconfig"
1228
1229 source "arch/arm/mach-davinci/Kconfig"
1230
1231 source "arch/arm/mach-exynos/Kconfig"
1232
1233 source "arch/arm/mach-highbank/Kconfig"
1234
1235 source "arch/arm/mach-integrator/Kconfig"
1236
1237 source "arch/arm/mach-keystone/Kconfig"
1238
1239 source "arch/arm/mach-kirkwood/Kconfig"
1240
1241 source "arch/arm/mach-mvebu/Kconfig"
1242
1243 source "arch/arm/cpu/armv7/ls102xa/Kconfig"
1244
1245 source "arch/arm/mach-imx/mx2/Kconfig"
1246
1247 source "arch/arm/mach-imx/mx5/Kconfig"
1248
1249 source "arch/arm/mach-imx/mx6/Kconfig"
1250
1251 source "arch/arm/mach-imx/mx7/Kconfig"
1252
1253 source "arch/arm/mach-imx/mx7ulp/Kconfig"
1254
1255 source "arch/arm/mach-imx/mx8m/Kconfig"
1256
1257 source "arch/arm/mach-imx/mxs/Kconfig"
1258
1259 source "arch/arm/mach-omap2/Kconfig"
1260
1261 source "arch/arm/cpu/armv8/fsl-layerscape/Kconfig"
1262
1263 source "arch/arm/mach-orion5x/Kconfig"
1264
1265 source "arch/arm/mach-rmobile/Kconfig"
1266
1267 source "arch/arm/mach-meson/Kconfig"
1268
1269 source "arch/arm/mach-qemu/Kconfig"
1270
1271 source "arch/arm/mach-rockchip/Kconfig"
1272
1273 source "arch/arm/mach-s5pc1xx/Kconfig"
1274
1275 source "arch/arm/mach-snapdragon/Kconfig"
1276
1277 source "arch/arm/mach-socfpga/Kconfig"
1278
1279 source "arch/arm/mach-sti/Kconfig"
1280
1281 source "arch/arm/mach-stm32/Kconfig"
1282
1283 source "arch/arm/mach-stm32mp/Kconfig"
1284
1285 source "arch/arm/mach-sunxi/Kconfig"
1286
1287 source "arch/arm/mach-tegra/Kconfig"
1288
1289 source "arch/arm/mach-uniphier/Kconfig"
1290
1291 source "arch/arm/cpu/armv7/vf610/Kconfig"
1292
1293 source "arch/arm/mach-zynq/Kconfig"
1294
1295 source "arch/arm/cpu/armv7/Kconfig"
1296
1297 source "arch/arm/cpu/armv8/zynqmp/Kconfig"
1298
1299 source "arch/arm/cpu/armv8/Kconfig"
1300
1301 source "arch/arm/mach-imx/Kconfig"
1302
1303 source "board/bosch/shc/Kconfig"
1304 source "board/CarMediaLab/flea3/Kconfig"
1305 source "board/Marvell/aspenite/Kconfig"
1306 source "board/Marvell/gplugd/Kconfig"
1307 source "board/armadeus/apf27/Kconfig"
1308 source "board/armltd/vexpress/Kconfig"
1309 source "board/armltd/vexpress64/Kconfig"
1310 source "board/broadcom/bcm23550_w1d/Kconfig"
1311 source "board/broadcom/bcm28155_ap/Kconfig"
1312 source "board/broadcom/bcmcygnus/Kconfig"
1313 source "board/broadcom/bcmnsp/Kconfig"
1314 source "board/broadcom/bcmns2/Kconfig"
1315 source "board/cavium/thunderx/Kconfig"
1316 source "board/cirrus/edb93xx/Kconfig"
1317 source "board/eets/pdu001/Kconfig"
1318 source "board/freescale/ls2080a/Kconfig"
1319 source "board/freescale/ls2080aqds/Kconfig"
1320 source "board/freescale/ls2080ardb/Kconfig"
1321 source "board/freescale/ls1088a/Kconfig"
1322 source "board/freescale/ls1021aqds/Kconfig"
1323 source "board/freescale/ls1043aqds/Kconfig"
1324 source "board/freescale/ls1021atwr/Kconfig"
1325 source "board/freescale/ls1021aiot/Kconfig"
1326 source "board/freescale/ls1046aqds/Kconfig"
1327 source "board/freescale/ls1043ardb/Kconfig"
1328 source "board/freescale/ls1046ardb/Kconfig"
1329 source "board/freescale/ls1012aqds/Kconfig"
1330 source "board/freescale/ls1012ardb/Kconfig"
1331 source "board/freescale/ls1012afrdm/Kconfig"
1332 source "board/freescale/mx31pdk/Kconfig"
1333 source "board/freescale/mx35pdk/Kconfig"
1334 source "board/freescale/s32v234evb/Kconfig"
1335 source "board/gdsys/a38x/Kconfig"
1336 source "board/grinn/chiliboard/Kconfig"
1337 source "board/gumstix/pepper/Kconfig"
1338 source "board/h2200/Kconfig"
1339 source "board/hisilicon/hikey/Kconfig"
1340 source "board/hisilicon/poplar/Kconfig"
1341 source "board/isee/igep003x/Kconfig"
1342 source "board/phytec/pcm051/Kconfig"
1343 source "board/silica/pengwyn/Kconfig"
1344 source "board/spear/spear300/Kconfig"
1345 source "board/spear/spear310/Kconfig"
1346 source "board/spear/spear320/Kconfig"
1347 source "board/spear/spear600/Kconfig"
1348 source "board/spear/x600/Kconfig"
1349 source "board/st/stv0991/Kconfig"
1350 source "board/tcl/sl50/Kconfig"
1351 source "board/birdland/bav335x/Kconfig"
1352 source "board/timll/devkit3250/Kconfig"
1353 source "board/toradex/colibri_pxa270/Kconfig"
1354 source "board/vscom/baltos/Kconfig"
1355 source "board/woodburn/Kconfig"
1356 source "board/work-microwave/work_92105/Kconfig"
1357 source "board/xilinx/zynqmp/Kconfig"
1358 source "board/zipitz2/Kconfig"
1359
1360 source "arch/arm/Kconfig.debug"
1361
1362 endmenu
1363
1364 config SPL_LDSCRIPT
1365         default "arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds" if ARCH_MX23 || ARCH_MX28
1366         default "arch/arm/cpu/arm1136/u-boot-spl.lds" if CPU_ARM1136
1367         default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARM64
1368
1369