diff options
author | Weizhao Ouyang <o451686892@gmail.com> | 2024-03-04 14:42:40 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-03-13 12:40:43 -0400 |
commit | 12ccdcd79bddace90dfb6080084b0e36a6d44b37 (patch) | |
tree | e202611b4cc9a821213bd969c61c1db5bd49ac7d /include/linux | |
parent | 0cff87c90c676d0e5c5b59553a2a982782f024bb (diff) | |
download | u-boot-12ccdcd79bddace90dfb6080084b0e36a6d44b37.tar.gz |
firmware: psci: Fix bind_smccc_features psci check
According to PSCI specification DEN0022F, PSCI_FEATURES is used to check
whether the SMCCC is implemented by discovering SMCCC_VERSION.
Signed-off-by: Weizhao Ouyang <o451686892@gmail.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/arm-smccc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/arm-smccc.h b/include/linux/arm-smccc.h index f44e9e8f930..da3d29aabee 100644 --- a/include/linux/arm-smccc.h +++ b/include/linux/arm-smccc.h @@ -55,8 +55,14 @@ #define ARM_SMCCC_QUIRK_NONE 0 #define ARM_SMCCC_QUIRK_QCOM_A6 1 /* Save/restore register a6 */ +#define ARM_SMCCC_VERSION 0x80000000 #define ARM_SMCCC_ARCH_FEATURES 0x80000001 +#define ARM_SMCCC_VERSION_1_0 0x10000 +#define ARM_SMCCC_VERSION_1_1 0x10001 +#define ARM_SMCCC_VERSION_1_2 0x10002 +#define ARM_SMCCC_VERSION_1_3 0x10003 + #define ARM_SMCCC_RET_NOT_SUPPORTED ((unsigned long)-1) #ifndef __ASSEMBLY__ |