summaryrefslogtreecommitdiff
path: root/plat/imx/imx8qxp/include/platform_def.h
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2018-10-11 16:26:50 +0800
committerAnson Huang <Anson.Huang@nxp.com>2018-10-23 11:06:00 +0800
commit282f524de7f60a722910669a62bfd49eb4ec239c (patch)
treeb671f068ec295f2d73f69ba8d8911ea7e2658316 /plat/imx/imx8qxp/include/platform_def.h
parent9aa39de9f366046a363a6754b40e9f277e73adbd (diff)
imx8qxp: add support for cpuidle
This patch adds support for cpuidle with CPU powerdown, there will be 3 idle states in Linux kernel: 1: wfi; 2: cpu power down; 3: cluster power down. As Linux kernel needs a broadcast timer for waking up CPU when whole CLUSTER is powerdown, GPT is adopted as broadcast timer, and to make the clock & power management easy for Linux kernel to avoid many workaround/hake in Linux kernel, TF-A will handle GPT's power & clock management as well as registers save/restore when suspend/resume. Also, psci power states are used to determine CORE/CLUSTER/SYSTEM power state to distinguish CPU idle and SYSTEM suspend which share same domain_suspend callback. The SoC IPs register mmap regions are merged into 1 large section to cover all the SoC IPs register ranges TF-A needs, this is to save mmap regions and make it simple. Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Diffstat (limited to 'plat/imx/imx8qxp/include/platform_def.h')
-rw-r--r--plat/imx/imx8qxp/include/platform_def.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/plat/imx/imx8qxp/include/platform_def.h b/plat/imx/imx8qxp/include/platform_def.h
index 55ce4a6e..fa6d2709 100644
--- a/plat/imx/imx8qxp/include/platform_def.h
+++ b/plat/imx/imx8qxp/include/platform_def.h
@@ -49,6 +49,10 @@
#define MAX_XLAT_TABLES 8
#define MAX_MMAP_REGIONS 9
+#define IMX_REG_BASE 0x50000000
+#define IMX_REG_SIZE 0x10000000
+#define IMX_GPT0_LPCG_BASE 0x5d540000
+#define IMX_GPT0_BASE 0x5d140000
#define IMX_WUP_IRQSTR 0x51090000
#define IMX_BOOT_UART_BASE 0x5a060000
#define IMX_BOOT_UART_BAUDRATE 115200