summaryrefslogtreecommitdiff
path: root/include/soc
diff options
context:
space:
mode:
authorJacky Bai <ping.bai@nxp.com>2019-04-16 14:15:48 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 16:29:40 +0800
commit7ebcf5ccf423afe4ccd9c53ef204018b0b653ce0 (patch)
tree970a77be945586476197256df9108b9bc0d830a3 /include/soc
parent9b782c50cacc77d2bbc8cbd16c4bf3717706bcfd (diff)
MLK-22404-02 soc: imx: Add power domain driver support for i.mx8m family
The i.MX8M family is a set of NXP product focus on delivering the latest and greatest video and audio experience combining state-of-the-art media-specific features with high-performance processing while optimized for lowest power consumption. i.MX8MQ, i.MX8MM, i.MX8MN, even the furture i.MX8MP are all belong to this family. A GPC module is used to manage all the PU power domain on/off. But the situation is that the number of power domains & the power up sequence has significate difference on those SoCs. Even on the same SoC. The power up sequence still has big difference. It makes us hard to reuse the GPCv2 driver to cover the whole i.MX8M family. Each time a new SoC is supported in the mainline kernel, we need to modify the GPCv2 driver to support it. We need to add or modify hundred lines of code in worst case. It is a bad practice for the driver maintainability. This driver add a more generic power domain driver that the actual power on/off is done by TF-A code. the abstraction give us the possibility that using one driver to cover the whole i.MX8M family in kernel side. Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Diffstat (limited to 'include/soc')
-rw-r--r--include/soc/imx/imx_sip.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/soc/imx/imx_sip.h b/include/soc/imx/imx_sip.h
new file mode 100644
index 000000000000..6b96b33c870e
--- /dev/null
+++ b/include/soc/imx/imx_sip.h
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Copyright 2019 NXP
+ */
+
+#ifndef __IMX_SIP_H__
+#define __IMX_SIP_H__
+
+#define IMX_SIP_GPC 0xC2000000
+#define IMX_SIP_CONFIG_GPC_PM_DOMAIN 0x03
+
+#endif /* __IMX_SIP_H__ */