diff options
author | Anson Huang <Anson.Huang@nxp.com> | 2019-01-18 10:27:48 +0800 |
---|---|---|
committer | Anson Huang <Anson.Huang@nxp.com> | 2019-01-18 11:23:00 +0800 |
commit | dbfa45e8163336daa2b1b8a76fcc74976a6aa6d7 (patch) | |
tree | 63e00eb4ae1a782e9894ad5bffcc25ddc04a7aef /plat/imx/common/imx_sip_svc.c | |
parent | 936840f143ca6eba09a78367afe047136c33a4ee (diff) |
imx: add i.MX8 SoCs OTP SIP(silicon provider) service support
For NXP's i.MX8 SoCs with system controller inside, OTP is
maintained by SCFW, Linux needs to call SMC to trap to TF-A
for OTP read/write etc. operations by calling SCFW API.
This patch adds OTP SIP service support.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Diffstat (limited to 'plat/imx/common/imx_sip_svc.c')
-rw-r--r-- | plat/imx/common/imx_sip_svc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plat/imx/common/imx_sip_svc.c b/plat/imx/common/imx_sip_svc.c index a4b8ff29..e7afb3c6 100644 --- a/plat/imx/common/imx_sip_svc.c +++ b/plat/imx/common/imx_sip_svc.c @@ -34,6 +34,9 @@ static uintptr_t imx_sip_handler(unsigned int smc_fid, break; case IMX_SIP_WAKEUP_SRC: SMC_RET1(handle, imx_wakeup_src_handler(smc_fid, x1, x2, x3)); + case IMX_SIP_OTP_READ: + case IMX_SIP_OTP_WRITE: + return imx_otp_handler(smc_fid, handle, x1, x2); #endif default: WARN("Unimplemented i.MX SiP Service Call: 0x%x\n", smc_fid); |