blob: 9967376ecab939e9a6e9ded0b7eddf65b1f260cb [file] [log] [blame]
Linus Walleij23b58772015-03-09 10:53:21 +01001if ARM64
2
Andre Przywara1416e2d2018-07-25 00:57:01 +01003config ARMV8_SPL_EXCEPTION_VECTORS
4 bool "Install crash dump exception vectors"
5 depends on SPL
Andre Przywara1416e2d2018-07-25 00:57:01 +01006 help
7 The default exception vector table is only used for the crash
8 dump, but still takes quite a lot of space in the image size.
9
10 Say N here if you are running out of code space in the image
11 and want to save some space at the cost of less debugging info.
12
Linus Walleij23b58772015-03-09 10:53:21 +010013config ARMV8_MULTIENTRY
Masahiro Yamadaab650062016-08-12 10:26:50 +090014 bool "Enable multiple CPUs to enter into U-Boot"
Linus Walleij23b58772015-03-09 10:53:21 +010015
Mingkai Hu3aec4522017-01-06 17:41:10 +080016config ARMV8_SET_SMPEN
17 bool "Enable data coherency with other cores in cluster"
18 help
19 Say Y here if there is not any trust firmware to set
20 CPUECTLR_EL1.SMPEN bit before U-Boot.
21
22 For A53, it enables data coherency with other cores in the
23 cluster, and for A57/A72, it enables receiving of instruction
24 cache and TLB maintenance operations.
25 Cortex A53/57/72 cores require CPUECTLR_EL1.SMPEN set even
26 for single core systems. Unfortunately write access to this
27 register may be controlled by EL3/EL2 firmware. To be more
28 precise, by default (if there is EL2/EL3 firmware running)
29 this register is RO for NS EL1.
30 This switch can be used to avoid writing to CPUECTLR_EL1,
31 it can be safely enabled when EL2/EL3 initialized SMPEN bit
32 or when CPU implementation doesn't include that register.
33
Masahiro Yamada6b6024e2016-06-27 19:31:05 +090034config ARMV8_SPIN_TABLE
35 bool "Support spin-table enable method"
36 depends on ARMV8_MULTIENTRY && OF_LIBFDT
37 help
38 Say Y here to support "spin-table" enable method for booting Linux.
39
40 To use this feature, you must do:
41 - Specify enable-method = "spin-table" in each CPU node in the
42 Device Tree you are using to boot the kernel
Masahiro Yamada65f32192017-01-20 18:04:43 +090043 - Bring secondary CPUs into U-Boot proper in a board specific
44 manner. This must be done *after* relocation. Otherwise, the
45 secondary CPUs will spin in unprotected memory area because the
46 master CPU protects the relocated spin code.
Masahiro Yamada6b6024e2016-06-27 19:31:05 +090047
48 U-Boot automatically does:
49 - Set "cpu-release-addr" property of each CPU node
50 (overwrites it if already exists).
51 - Reserve the code for the spin-table and the release address
52 via a /memreserve/ region in the Device Tree.
53
Hou Zhiqiang0897eb22017-01-16 17:31:47 +080054menu "ARMv8 secure monitor firmware"
55config ARMV8_SEC_FIRMWARE_SUPPORT
56 bool "Enable ARMv8 secure monitor firmware framework support"
Hou Zhiqiang0897eb22017-01-16 17:31:47 +080057 select FIT
Michal Simek58008cb2018-07-23 15:55:15 +020058 select OF_LIBFDT
Hou Zhiqiang0897eb22017-01-16 17:31:47 +080059 help
60 This framework is aimed at making secure monitor firmware load
61 process brief.
62 Note: Only FIT format image is supported.
63 You should prepare and provide the below information:
64 - Address of secure firmware.
65 - Address to hold the return address from secure firmware.
66 - Secure firmware FIT image related information.
Thomas Hebb9f67b562019-11-10 08:23:15 -080067 Such as: SEC_FIRMWARE_FIT_IMAGE and SEC_FIRMWARE_FIT_CNF_NAME
Hou Zhiqiang0897eb22017-01-16 17:31:47 +080068 - The target exception level that secure monitor firmware will
69 return to.
70
71config SPL_ARMV8_SEC_FIRMWARE_SUPPORT
72 bool "Enable ARMv8 secure monitor firmware framework support for SPL"
Hou Zhiqiang0897eb22017-01-16 17:31:47 +080073 select SPL_FIT
Michal Simek58008cb2018-07-23 15:55:15 +020074 select SPL_OF_LIBFDT
Hou Zhiqiang0897eb22017-01-16 17:31:47 +080075 help
76 Say Y here to support this framework in SPL phase.
77
Peng Fan6aead232020-05-05 20:28:41 +080078config SPL_RECOVER_DATA_SECTION
79 bool "save/restore SPL data section"
80 help
81 Say Y here to save SPL data section for cold boot, and restore
82 at warm boot in SPL phase.
83
Hou Zhiqiangdaa92642017-01-16 17:31:48 +080084config SEC_FIRMWARE_ARMV8_PSCI
85 bool "PSCI implementation in secure monitor firmware"
86 depends on ARMV8_SEC_FIRMWARE_SUPPORT || SPL_ARMV8_SEC_FIRMWARE_SUPPORT
87 help
88 This config enables the ARMv8 PSCI implementation in secure monitor
89 firmware. This is a private PSCI implementation and different from
90 those implemented under the common ARMv8 PSCI framework.
91
Hou Zhiqiang0897eb22017-01-16 17:31:47 +080092config ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT
93 bool "ARMv8 secure monitor firmware ERET address byteorder swap"
94 depends on ARMV8_SEC_FIRMWARE_SUPPORT || SPL_ARMV8_SEC_FIRMWARE_SUPPORT
95 help
96 Say Y here when the endianness of the register or memory holding the
97 Secure firmware exception return address is different with core's.
98
99endmenu
100
Alexander Graf80698212016-08-16 21:08:48 +0200101config PSCI_RESET
102 bool "Use PSCI for reset and shutdown"
103 default y
Heinrich Schuchardt81ea0082018-10-18 12:29:40 +0200104 select ARM_SMCCC if OF_CONTROL
Mark Kettenis3cdfa312021-12-21 17:31:50 +0100105 depends on !ARCH_APPLE && !ARCH_BCM283X && !ARCH_EXYNOS7 && \
Tom Rini2ce7b652021-02-09 08:03:10 -0500106 !TARGET_LS2080AQDS && \
Bhaskar Upadhayabdc48ec2018-01-11 20:03:30 +0530107 !TARGET_LS2080ARDB && !TARGET_LS2080A_EMU && \
Ashish Kumar77697762017-08-31 16:12:55 +0530108 !TARGET_LS1088ARDB && !TARGET_LS1088AQDS && \
Alexander Graf80698212016-08-16 21:08:48 +0200109 !TARGET_LS1012ARDB && !TARGET_LS1012AFRDM && \
Bhaskar Upadhayab0ce1872018-01-11 20:03:31 +0530110 !TARGET_LS1012A2G5RDB && !TARGET_LS1012AQDS && \
Bhaskar Upadhaya9629ccd2018-05-23 11:03:30 +0530111 !TARGET_LS1012AFRWY && \
Yuantian Tangf278a212019-04-10 16:43:35 +0800112 !TARGET_LS1028ARDB && !TARGET_LS1028AQDS && \
Alexander Graf441a2302016-11-17 01:02:55 +0100113 !TARGET_LS1043ARDB && !TARGET_LS1043AQDS && \
114 !TARGET_LS1046ARDB && !TARGET_LS1046AQDS && \
Vabhav Sharmad90c7ac2019-06-06 12:35:28 +0000115 !TARGET_LS1046AFRWY && \
Priyanka Jain58c3e622018-11-28 13:04:27 +0000116 !TARGET_LS2081ARDB && !TARGET_LX2160ARDB && \
Meenakshi Aggarwal3a187cf2020-10-29 19:16:16 +0530117 !TARGET_LX2160AQDS && !TARGET_LX2162AQDS && \
Tom Rini9ac83682021-02-20 20:05:49 -0500118 !ARCH_UNIPHIER
Alexander Graf80698212016-08-16 21:08:48 +0200119 help
120 Most armv8 systems have PSCI support enabled in EL3, either through
121 ARM Trusted Firmware or other firmware.
122
123 On these systems, we do not need to implement system reset manually,
124 but can instead rely on higher level firmware to deal with it.
125
126 Select Y here to make use of PSCI calls for system reset
127
macro.wave.z@gmail.comdf88cb32016-12-08 11:58:22 +0800128config ARMV8_PSCI
129 bool "Enable PSCI support" if EXPERT
macro.wave.z@gmail.comdf88cb32016-12-08 11:58:22 +0800130 help
131 PSCI is Power State Coordination Interface defined by ARM.
132 The PSCI in U-boot provides a general framework and each platform
133 can implement their own specific PSCI functions.
134 Say Y here to enable PSCI support on ARMv8 platform.
135
136config ARMV8_PSCI_NR_CPUS
137 int "Maximum supported CPUs for PSCI"
138 depends on ARMV8_PSCI
139 default 4
140 help
141 The maximum number of CPUs supported in the PSCI firmware.
142 It is no problem to set a larger value than the number of CPUs in
143 the actual hardware implementation.
144
macro.wave.z@gmail.com14bf25d2016-12-08 11:58:24 +0800145config ARMV8_PSCI_CPUS_PER_CLUSTER
146 int "Number of CPUs per cluster"
147 depends on ARMV8_PSCI
148 default 0
149 help
150 The number of CPUs per cluster, suppose each cluster has same number
151 of CPU cores, platforms with asymmetric clusters don't apply here.
152 A value 0 or no definition of it works for single cluster system.
153 System with multi-cluster should difine their own exact value.
154
Chee Hong Angc0f32962018-08-20 10:57:35 -0700155config ARMV8_EA_EL3_FIRST
156 bool "External aborts and SError interrupt exception are taken in EL3"
Chee Hong Angc0f32962018-08-20 10:57:35 -0700157 help
158 Exception handling at all exception levels for External Abort and
159 SError interrupt exception are taken in EL3.
160
macro.wave.z@gmail.comdf88cb32016-12-08 11:58:22 +0800161if SYS_HAS_ARMV8_SECURE_BASE
162
163config ARMV8_SECURE_BASE
164 hex "Secure address for PSCI image"
165 depends on ARMV8_PSCI
166 help
167 Address for placing the PSCI text, data and stack sections.
168 If not defined, the PSCI sections are placed together with the u-boot
169 but platform can choose to place PSCI code image separately in other
170 places such as some secure RAM built-in SOC etc.
171
172endif
173
Linus Walleij23b58772015-03-09 10:53:21 +0100174endif