123b5877cSLinus Walleijif ARM64 223b5877cSLinus Walleij 323b5877cSLinus Walleijconfig ARMV8_MULTIENTRY 4ab65006bSMasahiro Yamada bool "Enable multiple CPUs to enter into U-Boot" 523b5877cSLinus Walleij 63aec452eSMingkai Huconfig ARMV8_SET_SMPEN 73aec452eSMingkai Hu bool "Enable data coherency with other cores in cluster" 83aec452eSMingkai Hu help 93aec452eSMingkai Hu Say Y here if there is not any trust firmware to set 103aec452eSMingkai Hu CPUECTLR_EL1.SMPEN bit before U-Boot. 113aec452eSMingkai Hu 123aec452eSMingkai Hu For A53, it enables data coherency with other cores in the 133aec452eSMingkai Hu cluster, and for A57/A72, it enables receiving of instruction 143aec452eSMingkai Hu cache and TLB maintenance operations. 153aec452eSMingkai Hu Cortex A53/57/72 cores require CPUECTLR_EL1.SMPEN set even 163aec452eSMingkai Hu for single core systems. Unfortunately write access to this 173aec452eSMingkai Hu register may be controlled by EL3/EL2 firmware. To be more 183aec452eSMingkai Hu precise, by default (if there is EL2/EL3 firmware running) 193aec452eSMingkai Hu this register is RO for NS EL1. 203aec452eSMingkai Hu This switch can be used to avoid writing to CPUECTLR_EL1, 213aec452eSMingkai Hu it can be safely enabled when EL2/EL3 initialized SMPEN bit 223aec452eSMingkai Hu or when CPU implementation doesn't include that register. 233aec452eSMingkai Hu 246b6024eaSMasahiro Yamadaconfig ARMV8_SPIN_TABLE 256b6024eaSMasahiro Yamada bool "Support spin-table enable method" 266b6024eaSMasahiro Yamada depends on ARMV8_MULTIENTRY && OF_LIBFDT 276b6024eaSMasahiro Yamada help 286b6024eaSMasahiro Yamada Say Y here to support "spin-table" enable method for booting Linux. 296b6024eaSMasahiro Yamada 306b6024eaSMasahiro Yamada To use this feature, you must do: 316b6024eaSMasahiro Yamada - Specify enable-method = "spin-table" in each CPU node in the 326b6024eaSMasahiro Yamada Device Tree you are using to boot the kernel 3365f32196SMasahiro Yamada - Bring secondary CPUs into U-Boot proper in a board specific 3465f32196SMasahiro Yamada manner. This must be done *after* relocation. Otherwise, the 3565f32196SMasahiro Yamada secondary CPUs will spin in unprotected memory area because the 3665f32196SMasahiro Yamada master CPU protects the relocated spin code. 376b6024eaSMasahiro Yamada 386b6024eaSMasahiro Yamada U-Boot automatically does: 396b6024eaSMasahiro Yamada - Set "cpu-release-addr" property of each CPU node 406b6024eaSMasahiro Yamada (overwrites it if already exists). 416b6024eaSMasahiro Yamada - Reserve the code for the spin-table and the release address 426b6024eaSMasahiro Yamada via a /memreserve/ region in the Device Tree. 436b6024eaSMasahiro Yamada 440897eb2cSHou Zhiqiangmenu "ARMv8 secure monitor firmware" 450897eb2cSHou Zhiqiangconfig ARMV8_SEC_FIRMWARE_SUPPORT 460897eb2cSHou Zhiqiang bool "Enable ARMv8 secure monitor firmware framework support" 470897eb2cSHou Zhiqiang select OF_LIBFDT 480897eb2cSHou Zhiqiang select FIT 490897eb2cSHou Zhiqiang help 500897eb2cSHou Zhiqiang This framework is aimed at making secure monitor firmware load 510897eb2cSHou Zhiqiang process brief. 520897eb2cSHou Zhiqiang Note: Only FIT format image is supported. 530897eb2cSHou Zhiqiang You should prepare and provide the below information: 540897eb2cSHou Zhiqiang - Address of secure firmware. 550897eb2cSHou Zhiqiang - Address to hold the return address from secure firmware. 560897eb2cSHou Zhiqiang - Secure firmware FIT image related information. 570897eb2cSHou Zhiqiang Such as: SEC_FIRMWARE_FIT_IMAGE and SEC_FIRMEWARE_FIT_CNF_NAME 580897eb2cSHou Zhiqiang - The target exception level that secure monitor firmware will 590897eb2cSHou Zhiqiang return to. 600897eb2cSHou Zhiqiang 610897eb2cSHou Zhiqiangconfig SPL_ARMV8_SEC_FIRMWARE_SUPPORT 620897eb2cSHou Zhiqiang bool "Enable ARMv8 secure monitor firmware framework support for SPL" 630897eb2cSHou Zhiqiang select SPL_OF_LIBFDT 640897eb2cSHou Zhiqiang select SPL_FIT 650897eb2cSHou Zhiqiang help 660897eb2cSHou Zhiqiang Say Y here to support this framework in SPL phase. 670897eb2cSHou Zhiqiang 68daa92644SHou Zhiqiangconfig SEC_FIRMWARE_ARMV8_PSCI 69daa92644SHou Zhiqiang bool "PSCI implementation in secure monitor firmware" 70daa92644SHou Zhiqiang depends on ARMV8_SEC_FIRMWARE_SUPPORT || SPL_ARMV8_SEC_FIRMWARE_SUPPORT 71daa92644SHou Zhiqiang help 72daa92644SHou Zhiqiang This config enables the ARMv8 PSCI implementation in secure monitor 73daa92644SHou Zhiqiang firmware. This is a private PSCI implementation and different from 74daa92644SHou Zhiqiang those implemented under the common ARMv8 PSCI framework. 75daa92644SHou Zhiqiang 760897eb2cSHou Zhiqiangconfig ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT 770897eb2cSHou Zhiqiang bool "ARMv8 secure monitor firmware ERET address byteorder swap" 780897eb2cSHou Zhiqiang depends on ARMV8_SEC_FIRMWARE_SUPPORT || SPL_ARMV8_SEC_FIRMWARE_SUPPORT 790897eb2cSHou Zhiqiang help 800897eb2cSHou Zhiqiang Say Y here when the endianness of the register or memory holding the 810897eb2cSHou Zhiqiang Secure firmware exception return address is different with core's. 820897eb2cSHou Zhiqiang 830897eb2cSHou Zhiqiangendmenu 840897eb2cSHou Zhiqiang 858069821fSAlexander Grafconfig PSCI_RESET 868069821fSAlexander Graf bool "Use PSCI for reset and shutdown" 878069821fSAlexander Graf default y 88bdc48ec6SBhaskar Upadhaya depends on !ARCH_EXYNOS7 && !ARCH_BCM283X && \ 898069821fSAlexander Graf !TARGET_LS2080A_SIMU && !TARGET_LS2080AQDS && \ 90bdc48ec6SBhaskar Upadhaya !TARGET_LS2080ARDB && !TARGET_LS2080A_EMU && \ 917769776aSAshish Kumar !TARGET_LS1088ARDB && !TARGET_LS1088AQDS && \ 928069821fSAlexander Graf !TARGET_LS1012ARDB && !TARGET_LS1012AFRDM && \ 93b0ce187bSBhaskar Upadhaya !TARGET_LS1012A2G5RDB && !TARGET_LS1012AQDS && \ 94*9629ccddSBhaskar Upadhaya !TARGET_LS1012AFRWY && \ 95441a2306SAlexander Graf !TARGET_LS1043ARDB && !TARGET_LS1043AQDS && \ 96441a2306SAlexander Graf !TARGET_LS1046ARDB && !TARGET_LS1046AQDS && \ 973049a583SPriyanka Jain !TARGET_LS2081ARDB && \ 988bf5c1e1SRob Clark !ARCH_UNIPHIER && !TARGET_S32V234EVB 998069821fSAlexander Graf help 1008069821fSAlexander Graf Most armv8 systems have PSCI support enabled in EL3, either through 1018069821fSAlexander Graf ARM Trusted Firmware or other firmware. 1028069821fSAlexander Graf 1038069821fSAlexander Graf On these systems, we do not need to implement system reset manually, 1048069821fSAlexander Graf but can instead rely on higher level firmware to deal with it. 1058069821fSAlexander Graf 1068069821fSAlexander Graf Select Y here to make use of PSCI calls for system reset 1078069821fSAlexander Graf 108df88cb3bSmacro.wave.z@gmail.comconfig ARMV8_PSCI 109df88cb3bSmacro.wave.z@gmail.com bool "Enable PSCI support" if EXPERT 110df88cb3bSmacro.wave.z@gmail.com default n 111df88cb3bSmacro.wave.z@gmail.com help 112df88cb3bSmacro.wave.z@gmail.com PSCI is Power State Coordination Interface defined by ARM. 113df88cb3bSmacro.wave.z@gmail.com The PSCI in U-boot provides a general framework and each platform 114df88cb3bSmacro.wave.z@gmail.com can implement their own specific PSCI functions. 115df88cb3bSmacro.wave.z@gmail.com Say Y here to enable PSCI support on ARMv8 platform. 116df88cb3bSmacro.wave.z@gmail.com 117df88cb3bSmacro.wave.z@gmail.comconfig ARMV8_PSCI_NR_CPUS 118df88cb3bSmacro.wave.z@gmail.com int "Maximum supported CPUs for PSCI" 119df88cb3bSmacro.wave.z@gmail.com depends on ARMV8_PSCI 120df88cb3bSmacro.wave.z@gmail.com default 4 121df88cb3bSmacro.wave.z@gmail.com help 122df88cb3bSmacro.wave.z@gmail.com The maximum number of CPUs supported in the PSCI firmware. 123df88cb3bSmacro.wave.z@gmail.com It is no problem to set a larger value than the number of CPUs in 124df88cb3bSmacro.wave.z@gmail.com the actual hardware implementation. 125df88cb3bSmacro.wave.z@gmail.com 12614bf25d5Smacro.wave.z@gmail.comconfig ARMV8_PSCI_CPUS_PER_CLUSTER 12714bf25d5Smacro.wave.z@gmail.com int "Number of CPUs per cluster" 12814bf25d5Smacro.wave.z@gmail.com depends on ARMV8_PSCI 12914bf25d5Smacro.wave.z@gmail.com default 0 13014bf25d5Smacro.wave.z@gmail.com help 13114bf25d5Smacro.wave.z@gmail.com The number of CPUs per cluster, suppose each cluster has same number 13214bf25d5Smacro.wave.z@gmail.com of CPU cores, platforms with asymmetric clusters don't apply here. 13314bf25d5Smacro.wave.z@gmail.com A value 0 or no definition of it works for single cluster system. 13414bf25d5Smacro.wave.z@gmail.com System with multi-cluster should difine their own exact value. 13514bf25d5Smacro.wave.z@gmail.com 136df88cb3bSmacro.wave.z@gmail.comif SYS_HAS_ARMV8_SECURE_BASE 137df88cb3bSmacro.wave.z@gmail.com 138df88cb3bSmacro.wave.z@gmail.comconfig ARMV8_SECURE_BASE 139df88cb3bSmacro.wave.z@gmail.com hex "Secure address for PSCI image" 140df88cb3bSmacro.wave.z@gmail.com depends on ARMV8_PSCI 141df88cb3bSmacro.wave.z@gmail.com help 142df88cb3bSmacro.wave.z@gmail.com Address for placing the PSCI text, data and stack sections. 143df88cb3bSmacro.wave.z@gmail.com If not defined, the PSCI sections are placed together with the u-boot 144df88cb3bSmacro.wave.z@gmail.com but platform can choose to place PSCI code image separately in other 145df88cb3bSmacro.wave.z@gmail.com places such as some secure RAM built-in SOC etc. 146df88cb3bSmacro.wave.z@gmail.com 147df88cb3bSmacro.wave.z@gmail.comendif 148df88cb3bSmacro.wave.z@gmail.com 14923b5877cSLinus Walleijendif 150