Add the definition for SMCCC v1.2 version and new error code added. While at it, also add a note that ARM DEN 0070A is deprecated and is now merged into the main SMCCC specification(ARM DEN 0028C).
Showing the changes to include/linux (1 of 1 file). Show all
Unified · Split
| @@ -12,7 +12,7 @@ · 11 unmodified lines | ||
| 12 | 12 | * specified in |
| 13 | 13 | * https://developer.arm.com/docs/den0028/latest |
| 14 | 14 | * |
| 15 | − * This code is up-to-date with version DEN 0028 B | |
| 15 | + * This code is up-to-date with version DEN 0028 C | |
| 16 | 16 | */ |
| 17 | 17 | |
| 18 | 18 | #define ARM_SMCCC_STD_CALL _AC(0,U) |
| @@ -58,6 +58,7 @@ · 39 unmodified lines | ||
| 58 | 58 | |
| 59 | 59 | #define ARM_SMCCC_VERSION_1_0 0x10000 |
| 60 | 60 | #define ARM_SMCCC_VERSION_1_1 0x10001 |
| 61 | +#define ARM_SMCCC_VERSION_1_2 0x10002 | |
| 61 | 62 | |
| 62 | 63 | #define ARM_SMCCC_VERSION_FUNC_ID \ |
| 63 | 64 | ARM_SMCCC_CALL_VAL(ARM_SMCCC_FAST_CALL, \ |
| @@ -316,10 +317,14 @@ asmlinkage void __arm_smccc_hvc(unsigned long a0, unsigned long a1, · 252 unmodified lines | ||
| 316 | 317 | */ |
| 317 | 318 | #define arm_smccc_1_1_hvc(...) __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__) |
| 318 | 319 | |
| 319 | −/* Return codes defined in ARM DEN 0070A */ | |
| 320 | +/* | |
| 321 | + * Return codes defined in ARM DEN 0070A | |
| 322 | + * ARM DEN 0070A is now merged/consolidated into ARM DEN 0028 C | |
| 323 | + */ | |
| 320 | 324 | #define SMCCC_RET_SUCCESS 0 |
| 321 | 325 | #define SMCCC_RET_NOT_SUPPORTED -1 |
| 322 | 326 | #define SMCCC_RET_NOT_REQUIRED -2 |
| 327 | +#define SMCCC_RET_INVALID_PARAMETER -3 | |
| 323 | 328 | |
| 324 | 329 | /* |
| 325 | 330 | * Like arm_smccc_1_1* but always returns SMCCC_RET_NOT_SUPPORTED. |