summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@blueri.se>2019-10-03 15:51:50 +0200
committerStefano Babic <sbabic@denx.de>2019-10-08 16:36:36 +0200
commitd08a194871fdf91b2ccdbaf02e35ed9443e0e170 (patch)
tree995ae6db6f1adff7d3af8ca8edbe5367706a5cba /include
parent6745dac4946656771d320ba6887e863ae64c8b3e (diff)
downloadu-boot-d08a194871fdf91b2ccdbaf02e35ed9443e0e170.tar.gz
u-boot-d08a194871fdf91b2ccdbaf02e35ed9443e0e170.tar.xz
u-boot-d08a194871fdf91b2ccdbaf02e35ed9443e0e170.zip
imx: add support for i.MX8MQ power domain controller
Add support for the power domain controller that's used on the i.MX8MQ. This will be needed to be able to power on the PCIe controller. Bindings taken from Linux, driver implementation taken from the i.MX8 power domain controller and adjusted for the i.MX8M SoC. Signed-off-by: Patrick Wildt <patrick@blueri.se>
Diffstat (limited to 'include')
-rwxr-xr-xinclude/dt-bindings/power/imx8mq-power.h21
-rw-r--r--include/imx_sip.h3
2 files changed, 24 insertions, 0 deletions
diff --git a/include/dt-bindings/power/imx8mq-power.h b/include/dt-bindings/power/imx8mq-power.h
new file mode 100755
index 0000000000..8a513bd916
--- /dev/null
+++ b/include/dt-bindings/power/imx8mq-power.h
@@ -0,0 +1,21 @@
+/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
+/*
+ * Copyright (C) 2018 Pengutronix, Lucas Stach <kernel@pengutronix.de>
+ */
+
+#ifndef __DT_BINDINGS_IMX8MQ_POWER_H__
+#define __DT_BINDINGS_IMX8MQ_POWER_H__
+
+#define IMX8M_POWER_DOMAIN_MIPI 0
+#define IMX8M_POWER_DOMAIN_PCIE1 1
+#define IMX8M_POWER_DOMAIN_USB_OTG1 2
+#define IMX8M_POWER_DOMAIN_USB_OTG2 3
+#define IMX8M_POWER_DOMAIN_DDR1 4
+#define IMX8M_POWER_DOMAIN_GPU 5
+#define IMX8M_POWER_DOMAIN_VPU 6
+#define IMX8M_POWER_DOMAIN_DISP 7
+#define IMX8M_POWER_DOMAIN_MIPI_CSI1 8
+#define IMX8M_POWER_DOMAIN_MIPI_CSI2 9
+#define IMX8M_POWER_DOMAIN_PCIE2 10
+
+#endif
diff --git a/include/imx_sip.h b/include/imx_sip.h
index fbb6c5ecdc..139ff61b8a 100644
--- a/include/imx_sip.h
+++ b/include/imx_sip.h
@@ -6,6 +6,9 @@
#ifndef _IMX_SIP_H__
#define _IMX_SIP_H_
+#define IMX_SIP_GPC 0xC2000000
+#define IMX_SIP_GPC_PM_DOMAIN 0x03
+
#define IMX_SIP_SRC 0xC2000005
#define IMX_SIP_SRC_M4_START 0x00
#define IMX_SIP_SRC_M4_STARTED 0x01