diff options
| author | Siew Chin Lim <[email protected]> | 2021-03-25 14:07:45 +0800 |
|---|---|---|
| committer | Ley Foon Tan <[email protected]> | 2021-04-08 17:29:13 +0800 |
| commit | 96fe4f6485e92ed9da464c96c5f536698c5ee66d (patch) | |
| tree | 158ad436e7a2568ec6e0d6f7fec3e86eac8a9455 /include/linux/intel-smc.h | |
| parent | cdca9860705291de736d40ddc52acba2daaec106 (diff) | |
arm: socfpga: smc: Add function to get usercode
Add function to send mailbox command via SMC to get usercode from SDM.
Signed-off-by: Siew Chin Lim <[email protected]>
Reviewed-by: Ley Foon Tan <[email protected]>
Diffstat (limited to 'include/linux/intel-smc.h')
| -rw-r--r-- | include/linux/intel-smc.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/intel-smc.h b/include/linux/intel-smc.h index 68d62be4179..a54eff43add 100644 --- a/include/linux/intel-smc.h +++ b/include/linux/intel-smc.h @@ -518,4 +518,22 @@ INTEL_SIP_SMC_FAST_CALL_VAL(INTEL_SIP_SMC_FUNCID_FPGA_CONFIG_COMPLETED_WRITE) #define INTEL_SIP_SMC_MBOX_SEND_CMD \ INTEL_SIP_SMC_FAST_CALL_VAL(INTEL_SIP_SMC_FUNCID_MBOX_SEND_CMD) +/* + * Request INTEL_SIP_SMC_GET_USERCODE + * + * Send mailbox command to get usercode from SDM + * + * Call register usage: + * a0 INTEL_SIP_SMC_GET_USERCODE + * a1-7 not used. + * + * Return status + * a0 INTEL_SIP_SMC_STATUS_OK or INTEL_SIP_SMC_STATUS_ERROR + * a1 User code + * a2-3 not used. + */ +#define INTEL_SIP_SMC_FUNCID_GET_USERCODE 61 +#define INTEL_SIP_SMC_GET_USERCODE \ + INTEL_SIP_SMC_FAST_CALL_VAL(INTEL_SIP_SMC_FUNCID_GET_USERCODE) + #endif |
