diff options
author | Anson Huang <Anson.Huang@nxp.com> | 2019-01-15 10:34:04 +0800 |
---|---|---|
committer | Anson Huang <Anson.Huang@nxp.com> | 2019-01-17 10:49:48 +0800 |
commit | 025514ba80f9bd51af460ff29c4a325904c1812c (patch) | |
tree | 4d7b7240ea4eecf8c81c0bf9a2e0ae35eb263f56 /plat/imx/common/include | |
parent | 1552df5d25944b2bddf42e96acbadca18b3c7c95 (diff) |
imx: add imx8qm/imx8qx SRTC SIP runtime service support
On i.MX8QM/i.MX8QX with system controller inside, the SRTC is
managed by SCFW(system controller firmware) and some functions
like setting SRTC's time etc. can ONLY be requested from secure
world, so SIP runtime service is needed for such kind of operations,
this patch adds SRTC SIP runtime service support for i.MX8QM and
i.MX8QX.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Diffstat (limited to 'plat/imx/common/include')
-rw-r--r-- | plat/imx/common/include/imx_sip_svc.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/plat/imx/common/include/imx_sip_svc.h b/plat/imx/common/include/imx_sip_svc.h new file mode 100644 index 00000000..0d21f756 --- /dev/null +++ b/plat/imx/common/include/imx_sip_svc.h @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2015-2019, ARM Limited and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef __IMX_SIP_SVC_H__ +#define __IMX_SIP_SVC_H__ + +/* SMC function IDs for SiP Service queries */ +#define IMX_SIP_SRTC 0xC2000002 +#define IMX_SIP_SRTC_SET_TIME 0x00 + +#if (defined(PLAT_IMX8QM) || defined(PLAT_IMX8QX)) +int imx_srtc_handler(uint32_t smc_fid, void *handle, u_register_t x1, + u_register_t x2, u_register_t x3, u_register_t x4); +#endif + +#endif /* __IMX_SIP_SVC_H__ */ |