diff options
author | Jacky Bai <ping.bai@nxp.com> | 2019-11-25 13:19:37 +0800 |
---|---|---|
committer | Anson Huang <Anson.Huang@nxp.com> | 2019-12-13 10:45:50 +0800 |
commit | 80ca14d68b42b4383ccd23364313feffa682d9c7 (patch) | |
tree | 6134c7072020f0e9f23914ff069bd7fdb990e854 /plat/imx/common | |
parent | 837f1ff8c210d7518d7264177b1675694f57012b (diff) |
plat: imx8m: Add the ddr frequency change support for imx8m family
Add the DDR frequency change support.
Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Change-Id: I84f0ef51b04b84da8ba2cbeca86a07338a4903de
Diffstat (limited to 'plat/imx/common')
-rw-r--r-- | plat/imx/common/imx_sip_svc.c | 4 | ||||
-rw-r--r-- | plat/imx/common/include/imx_sip_svc.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/plat/imx/common/imx_sip_svc.c b/plat/imx/common/imx_sip_svc.c index 4893b9fa..85231d10 100644 --- a/plat/imx/common/imx_sip_svc.c +++ b/plat/imx/common/imx_sip_svc.c @@ -31,6 +31,10 @@ static uintptr_t imx_sip_handler(unsigned int smc_fid, SMC_RET1(handle, imx_soc_info_handler(smc_fid, x1, x2, x3)); break; #endif +#if defined(PLAT_imx8mm) || defined(PLAT_imx8mn) + case IMX_SIP_DDR_DVFS: + return dram_dvfs_handler(smc_fid, handle, x1, x2, x3); +#endif #if (defined(PLAT_imx8qm) || defined(PLAT_imx8qx)) case IMX_SIP_SRTC: return imx_srtc_handler(smc_fid, handle, x1, x2, x3, x4); diff --git a/plat/imx/common/include/imx_sip_svc.h b/plat/imx/common/include/imx_sip_svc.h index 4cdf11bd..8dcc8a02 100644 --- a/plat/imx/common/include/imx_sip_svc.h +++ b/plat/imx/common/include/imx_sip_svc.h @@ -35,10 +35,15 @@ #define IMX_SIP_MISC_SET_TEMP 0xC200000C +#define IMX_SIP_DDR_DVFS 0xc2000004 #if defined(PLAT_imx8mq) int imx_soc_info_handler(uint32_t smc_fid, u_register_t x1, u_register_t x2, u_register_t x3); #endif +#if defined(PLAT_imx8mm) || defined(PLAT_imx8mn) +int dram_dvfs_handler(uint32_t smc_fid, void *handle, + u_register_t x1, u_register_t x2, u_register_t x3); +#endif #if (defined(PLAT_imx8qm) || defined(PLAT_imx8qx)) int imx_cpufreq_handler(uint32_t smc_fid, u_register_t x1, |