summaryrefslogtreecommitdiff
path: root/include/soc
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2017-11-02 10:45:33 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:28:58 +0800
commit2a0d6b07738d220f7491cce93fa4ffde3d0c40e7 (patch)
treef595b3a6eeb583c237e666b255d548b25b2b6753 /include/soc
parent4ae5acc152054ad708d37447f574b1150716a059 (diff)
MLK-16746 imx8mq: support m4
Support M4/A53 work together 1. add imx_src_is_m4_enabled 2. introduce a new dts dedicated for m4 3. add more pwm nodes 4. Since clk initialization is at very early stage, add m4 enabled check in the beginning of clk code. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Diffstat (limited to 'include/soc')
-rw-r--r--include/soc/imx/fsl_sip.h5
-rw-r--r--include/soc/imx/src.h7
-rw-r--r--include/soc/imx8/soc.h2
3 files changed, 7 insertions, 7 deletions
diff --git a/include/soc/imx/fsl_sip.h b/include/soc/imx/fsl_sip.h
index 26481a0865ac..e4d02126e5f8 100644
--- a/include/soc/imx/fsl_sip.h
+++ b/include/soc/imx/fsl_sip.h
@@ -47,4 +47,9 @@
#define SC_TIMER_WDOG_ACTION_COLD 2 /*!< Cold reset system */
#define SC_TIMER_WDOG_ACTION_BOARD 3 /*!< Reset board */
+#define FSL_SIP_DDR_DVFS 0xc2000004
+
+#define FSL_SIP_SRC 0xc2000005
+#define FSL_SIP_SRC_M4_START 0x00
+#define FSL_SIP_SRC_M4_STARTED 0x01
#endif
diff --git a/include/soc/imx/src.h b/include/soc/imx/src.h
index b4f8944ea696..c55c34cd2366 100644
--- a/include/soc/imx/src.h
+++ b/include/soc/imx/src.h
@@ -1,13 +1,6 @@
#ifndef __SOC_IMX_SRC_H
#define __SOC_IMX_SRC_H
-#ifndef CONFIG_ARM64
bool imx_src_is_m4_enabled(void);
-#else
-static inline bool imx_src_is_m4_enabled(void)
-{
- return 0;
-}
-#endif
#endif /* __SOC_IMX_SRC_H */
diff --git a/include/soc/imx8/soc.h b/include/soc/imx8/soc.h
index 70c75fada62b..0d3fedc0f34c 100644
--- a/include/soc/imx8/soc.h
+++ b/include/soc/imx8/soc.h
@@ -27,4 +27,6 @@ bool cpu_is_imx8qxp(void);
extern bool TKT340553_SW_WORKAROUND;
unsigned int imx8_get_soc_revision(void);
+int check_m4_enabled(void);
+
#endif