summaryrefslogtreecommitdiff
path: root/plat/freescale/common/include
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2017-08-14 23:24:27 +0800
committerAnson Huang <Anson.Huang@nxp.com>2017-08-25 02:55:00 +0800
commit61d8cbdf027c0b00ca4c2dbe00d6e0b896cc7b42 (patch)
tree45da8f1a2744ae9b959bf93a9f9cacb5642e89a3 /plat/freescale/common/include
parent685dddb758f14790299f78844146d9b12a731bac (diff)
i.mx8qm/i.mx8qxp: add SIP cpu-freq support
Linux kernel will issue cpu-freq scale via SIP, ATF calls SCFW API to finish the CPU frequency scale. Move SIP service code from i.mx8mq to common place for all i.mx SoCs. Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Diffstat (limited to 'plat/freescale/common/include')
-rw-r--r--plat/freescale/common/include/fsl_sip.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/plat/freescale/common/include/fsl_sip.h b/plat/freescale/common/include/fsl_sip.h
new file mode 100644
index 00000000..52dceb81
--- /dev/null
+++ b/plat/freescale/common/include/fsl_sip.h
@@ -0,0 +1,28 @@
+/*
+ * Copyright 2017 NXP
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef __SOC_FSL_SIP_H
+#define __SOC_FSL_SIP_H
+
+#define FSL_SIP_GPC 0xC2000000
+#define FSL_SIP_CONFIG_GPC_MASK 0x00
+#define FSL_SIP_CONFIG_GPC_UNMASK 0x01
+#define FSL_SIP_CONFIG_GPC_SET_WAKE 0x02
+#define FSL_SIP_CONFIG_GPC_PM_DOMAIN 0x03
+
+#define FSL_SIP_CPUFREQ 0xC2000001
+#define FSL_SIP_SET_CPUFREQ 0x00
+
+
+#endif