blob: 4ba7b87acf0ff9d2b1281374e917c62d158652a2 [file] [log] [blame]
Anson Huangf753d462019-01-15 10:34:04 +08001/*
2 * Copyright (c) 2015-2019, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef __IMX_SIP_SVC_H__
8#define __IMX_SIP_SVC_H__
9
10/* SMC function IDs for SiP Service queries */
Anson Huang922c45f2019-01-15 10:56:36 +080011#define IMX_SIP_CPUFREQ 0xC2000001
12#define IMX_SIP_SET_CPUFREQ 0x00
13
Anson Huangf753d462019-01-15 10:34:04 +080014#define IMX_SIP_SRTC 0xC2000002
15#define IMX_SIP_SRTC_SET_TIME 0x00
16
17#if (defined(PLAT_IMX8QM) || defined(PLAT_IMX8QX))
Anson Huang922c45f2019-01-15 10:56:36 +080018int imx_cpufreq_handler(uint32_t smc_fid, u_register_t x1,
19 u_register_t x2, u_register_t x3);
Anson Huangf753d462019-01-15 10:34:04 +080020int imx_srtc_handler(uint32_t smc_fid, void *handle, u_register_t x1,
21 u_register_t x2, u_register_t x3, u_register_t x4);
22#endif
23
24#endif /* __IMX_SIP_SVC_H__ */