diff mbox series

[1/4] smccc: define generic IDs for feature discovery

Message ID 20220601082734.301474-1-etienne.carriere@linaro.org
State Accepted
Commit f7f124001540878b68b50c6d7ca188a9872a3cb5
Headers show
Series [1/4] smccc: define generic IDs for feature discovery | expand

Commit Message

Etienne Carriere June 1, 2022, 8:27 a.m. UTC
Defines function IDs ARM_SMCCC_ARCH_FEATURES used to query SMCCC feature
support, applicable from Arm SMCCC v1.1 specification.

Defines macro ARM_SMCCC_RET_NOT_SUPPORTED as generic return identifier
for when a SMCCC feature is not supported.

Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
---
 include/linux/arm-smccc.h | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Tom Rini June 23, 2022, 6:32 p.m. UTC | #1
On Wed, Jun 01, 2022 at 10:27:31AM +0200, Etienne Carriere wrote:

> Defines function IDs ARM_SMCCC_ARCH_FEATURES used to query SMCCC feature
> support, applicable from Arm SMCCC v1.1 specification.
> 
> Defines macro ARM_SMCCC_RET_NOT_SUPPORTED as generic return identifier
> for when a SMCCC feature is not supported.
> 
> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>

Applied to u-boot/next, thanks!
diff mbox series

Patch

diff --git a/include/linux/arm-smccc.h b/include/linux/arm-smccc.h
index 7f2be23394..94a20c9793 100644
--- a/include/linux/arm-smccc.h
+++ b/include/linux/arm-smccc.h
@@ -51,6 +51,10 @@ 
 #define ARM_SMCCC_QUIRK_NONE		0
 #define ARM_SMCCC_QUIRK_QCOM_A6		1 /* Save/restore register a6 */
 
+#define ARM_SMCCC_ARCH_FEATURES		0x80000001
+
+#define ARM_SMCCC_RET_NOT_SUPPORTED	((unsigned long)-1)
+
 #ifndef __ASSEMBLY__
 
 #include <linux/linkage.h>