]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
feat(mt8188): add the register definitions accessed by SPM
authorJames Liao <jamesjj.liao@mediatek.com>
Wed, 7 Sep 2022 10:30:05 +0000 (18:30 +0800)
committerLiju-Clr Chen <liju-clr.chen@mediatek.com>
Wed, 11 Jan 2023 05:37:38 +0000 (13:37 +0800)
SPM needs to access some modules' registers to decide its sleep
behavior. This patch add these register definitions to platform_def.h.

Signed-off-by: James Liao <jamesjj.liao@mediatek.com>
Change-Id: I3bebe74e367d5f6a7b59563036e18a83a3ef31e9

plat/mediatek/mt8188/include/platform_def.h

index 156a7e28f66f00fbee9a438bc26cd7c1cef19d86..34d4637e69709c8ff632187d51eeb5c5e4ee6f77 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2022, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2022-2023, ARM Limited and Contributors. All rights reserved.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  */
@@ -22,6 +22,8 @@
 #define MTK_DEV_RNG1_BASE      (IO_PHYS)
 #define MTK_DEV_RNG1_SIZE      (0x10000000)
 
+#define TOPCKGEN_BASE          (IO_PHYS)
+
 /*******************************************************************************
  * AUDIO related constants
  ******************************************************************************/
@@ -57,6 +59,8 @@
 /*******************************************************************************
  * Infra IOMMU related constants
  ******************************************************************************/
+#define INFRACFG_AO_BASE       (IO_PHYS + 0x00001000)
+#define INFRACFG_AO_MEM_BASE   (IO_PHYS + 0x00002000)
 #define PERICFG_AO_BASE                (IO_PHYS + 0x01003000)
 #define PERICFG_AO_REG_SIZE    (0x1000)
 
 #define SMI_LARB_28_BASE       (IO_PHYS + 0x00000000)
 #define SMI_LARB_REG_RNG_SIZE  (0x1000)
 
+/*******************************************************************************
+ * SPM related constants
+ ******************************************************************************/
+#define SPM_BASE               (IO_PHYS + 0x00006000)
+
+/*******************************************************************************
+ * APMIXEDSYS related constants
+ ******************************************************************************/
+#define APMIXEDSYS             (IO_PHYS + 0x0000C000)
+
+/*******************************************************************************
+ * VPPSYS related constants
+ ******************************************************************************/
+#define VPPSYS0_BASE           (IO_PHYS + 0x04000000)
+#define VPPSYS1_BASE           (IO_PHYS + 0x04f00000)
+
+/*******************************************************************************
+ * VDOSYS related constants
+ ******************************************************************************/
+#define VDOSYS0_BASE           (IO_PHYS + 0x0C01D000)
+#define VDOSYS1_BASE           (IO_PHYS + 0x0C100000)
+
+/*******************************************************************************
+ * SSPM_MBOX_3 related constants
+ ******************************************************************************/
+#define SSPM_MBOX_3_BASE       (IO_PHYS + 0x00480000)
+
 /*******************************************************************************
  * DP related constants
  ******************************************************************************/