xref: /rk3399_ARM-atf/plat/mediatek/mt8196/include/platform_def.h (revision fb57af70ae8c93ebe806eb6281036a15113dc4f5)
1a65fadfbSGavin Liu /*
24ba679daSKai Liang  * Copyright (c) 2025, Mediatek Inc. All rights reserved.
3a65fadfbSGavin Liu  *
4a65fadfbSGavin Liu  * SPDX-License-Identifier: BSD-3-Clause
5a65fadfbSGavin Liu  */
6a65fadfbSGavin Liu 
7a65fadfbSGavin Liu #ifndef PLATFORM_DEF_H
8a65fadfbSGavin Liu #define PLATFORM_DEF_H
9a65fadfbSGavin Liu 
10a65fadfbSGavin Liu #include <arch.h>
11a65fadfbSGavin Liu #include <plat/common/common_def.h>
12a65fadfbSGavin Liu 
13a65fadfbSGavin Liu #include <arch_def.h>
14a65fadfbSGavin Liu 
15a65fadfbSGavin Liu #define PLAT_PRIMARY_CPU	(0x0)
16a65fadfbSGavin Liu 
17a65fadfbSGavin Liu #define MT_GIC_BASE		(0x0C400000)
18a65fadfbSGavin Liu #define MCUCFG_BASE		(0x0C000000)
19a65fadfbSGavin Liu #define MCUCFG_REG_SIZE		(0x50000)
20a65fadfbSGavin Liu #define IO_PHYS			(0x10000000)
21a65fadfbSGavin Liu 
224ba679daSKai Liang #define MT_UTILITYBUS_BASE	(0x0C800000)
234ba679daSKai Liang #define MT_UTILITYBUS_SIZE	(0x800000)
244ba679daSKai Liang 
25a65fadfbSGavin Liu /* Aggregate of all devices for MMU mapping */
26a65fadfbSGavin Liu #define MTK_DEV_RNG1_BASE	(IO_PHYS)
27a65fadfbSGavin Liu #define MTK_DEV_RNG1_SIZE	(0x10000000)
28a65fadfbSGavin Liu 
29a65fadfbSGavin Liu #define TOPCKGEN_BASE		(IO_PHYS)
30a65fadfbSGavin Liu 
31a65fadfbSGavin Liu /*******************************************************************************
32a65fadfbSGavin Liu  * AUDIO related constants
33a65fadfbSGavin Liu  ******************************************************************************/
34a65fadfbSGavin Liu #define AUDIO_BASE		(IO_PHYS + 0x0a110000)
35a65fadfbSGavin Liu 
36a65fadfbSGavin Liu /*******************************************************************************
370781f780SKarl Li  * APUSYS related constants
380781f780SKarl Li  ******************************************************************************/
390781f780SKarl Li #define APUSYS_BASE			(IO_PHYS + 0x09000000)
405e5c57d5SKarl Li #define APU_MD32_SYSCTRL		(IO_PHYS + 0x09001000)
415e5c57d5SKarl Li #define APU_MD32_WDT			(IO_PHYS + 0x09002000)
425e5c57d5SKarl Li #define APU_LOGTOP			(IO_PHYS + 0x09024000)
43f31932b4SKarl Li #define APUSYS_CTRL_DAPC_RCX_BASE	(IO_PHYS + 0x09030000)
445e5c57d5SKarl Li #define APU_REVISER			(IO_PHYS + 0x0903C000)
45e534d4f6SKarl Li #define APU_RCX_UPRV_TCU		(IO_PHYS + 0x09060000)
46e534d4f6SKarl Li #define APU_RCX_EXTM_TCU		(IO_PHYS + 0x09061000)
47e534d4f6SKarl Li #define APU_CMU_TOP			(IO_PHYS + 0x09067000)
480781f780SKarl Li #define APUSYS_CE_BASE			(IO_PHYS + 0x090B0000)
495e5c57d5SKarl Li #define APU_ARE_REG_BASE		(IO_PHYS + 0x090B0000)
50e534d4f6SKarl Li #define APU_RCX_VCORE_CONFIG		(IO_PHYS + 0x090E0000)
5183f836c9SKarl Li #define APU_AO_CTRL			(IO_PHYS + 0x090F2000)
529059a375SKarl Li #define APU_SEC_CON			(IO_PHYS + 0x090F5000)
5331a0b877SKarl Li #define APUSYS_CTRL_DAPC_AO_BASE	(IO_PHYS + 0x090FC000)
540781f780SKarl Li 
550781f780SKarl Li #define APU_MBOX0			(0x4C200000)
565e5c57d5SKarl Li #define APU_MD32_TCM			(0x4D000000)
570781f780SKarl Li 
585e5c57d5SKarl Li #define APU_MD32_TCM_SZ			(0x50000)
5983f836c9SKarl Li #define APU_MBOX0_SZ			(0x100000)
6083f836c9SKarl Li #define APU_INFRA_BASE			(0x1002C000)
6183f836c9SKarl Li #define APU_INFRA_SZ			(0x1000)
6283f836c9SKarl Li 
635e5c57d5SKarl Li #define APU_RESERVE_MEMORY		(0x95000000)
645e5c57d5SKarl Li #define APU_SEC_INFO_OFFSET		(0x100000)
655e5c57d5SKarl Li #define APU_RESERVE_SIZE		(0x1400000)
665e5c57d5SKarl Li 
670781f780SKarl Li /*******************************************************************************
68a65fadfbSGavin Liu  * SPM related constants
69a65fadfbSGavin Liu  ******************************************************************************/
70a65fadfbSGavin Liu #define SPM_BASE		(IO_PHYS + 0x0C004000)
714ba679daSKai Liang #define SPM_REG_SIZE		(0x1000)
724ba679daSKai Liang #define SPM_SRAM_BASE		(IO_PHYS + 0x0C00C000)
734ba679daSKai Liang #define SPM_SRAM_REG_SIZE	(0x1000)
744ba679daSKai Liang #define SPM_PBUS_BASE		(IO_PHYS + 0x0C00D000)
754ba679daSKai Liang #define SPM_PBUS_REG_SIZE	(0x1000)
764ba679daSKai Liang 
774ba679daSKai Liang #ifdef SPM_BASE
784ba679daSKai Liang #define SPM_EXT_INT_WAKEUP_REQ		(SPM_BASE + 0x210)
794ba679daSKai Liang #define SPM_EXT_INT_WAKEUP_REQ_SET	(SPM_BASE + 0x214)
804ba679daSKai Liang #define SPM_EXT_INT_WAKEUP_REQ_CLR	(SPM_BASE + 0x218)
814ba679daSKai Liang #define SPM_CPU_BUCK_ISO_CON		(SPM_BASE + 0xEF8)
824ba679daSKai Liang #define SPM_CPU_BUCK_ISO_DEFAUT		(0x0)
834ba679daSKai Liang #define SPM_AUDIO_PWR_CON		(SPM_BASE + 0xE4C)
844ba679daSKai Liang #endif
85a65fadfbSGavin Liu 
86a65fadfbSGavin Liu /*******************************************************************************
874cb9f2a5SCathy Xu  * GPIO related constants
884cb9f2a5SCathy Xu  ******************************************************************************/
894cb9f2a5SCathy Xu #define GPIO_BASE		(IO_PHYS + 0x0002D000)
904cb9f2a5SCathy Xu #define RGU_BASE		(IO_PHYS + 0x0C00B000)
914cb9f2a5SCathy Xu #define DRM_BASE		(IO_PHYS + 0x0000D000)
924cb9f2a5SCathy Xu #define IOCFG_RT_BASE		(IO_PHYS + 0x02000000)
934cb9f2a5SCathy Xu #define IOCFG_RM1_BASE		(IO_PHYS + 0x02020000)
944cb9f2a5SCathy Xu #define IOCFG_RM2_BASE		(IO_PHYS + 0x02040000)
954cb9f2a5SCathy Xu #define IOCFG_RB_BASE		(IO_PHYS + 0x02060000)
964cb9f2a5SCathy Xu #define IOCFG_BM1_BASE		(IO_PHYS + 0x02820000)
974cb9f2a5SCathy Xu #define IOCFG_BM2_BASE		(IO_PHYS + 0x02840000)
984cb9f2a5SCathy Xu #define IOCFG_BM3_BASE		(IO_PHYS + 0x02860000)
994cb9f2a5SCathy Xu #define IOCFG_LT_BASE		(IO_PHYS + 0x03000000)
1004cb9f2a5SCathy Xu #define IOCFG_LM1_BASE		(IO_PHYS + 0x03020000)
1014cb9f2a5SCathy Xu #define IOCFG_LM2_BASE		(IO_PHYS + 0x03040000)
1024cb9f2a5SCathy Xu #define IOCFG_LB1_BASE		(IO_PHYS + 0x030f0000)
1034cb9f2a5SCathy Xu #define IOCFG_LB2_BASE		(IO_PHYS + 0x03110000)
1044cb9f2a5SCathy Xu #define IOCFG_TM1_BASE		(IO_PHYS + 0x03800000)
1054cb9f2a5SCathy Xu #define IOCFG_TM2_BASE		(IO_PHYS + 0x03820000)
1064cb9f2a5SCathy Xu #define IOCFG_TM3_BASE		(IO_PHYS + 0x03860000)
1074cb9f2a5SCathy Xu 
1084cb9f2a5SCathy Xu /*******************************************************************************
109a65fadfbSGavin Liu  * UART related constants
110a65fadfbSGavin Liu  ******************************************************************************/
111a65fadfbSGavin Liu #define UART0_BASE	(IO_PHYS + 0x06000000)
112a65fadfbSGavin Liu #define UART_BAUDRATE	(115200)
113a65fadfbSGavin Liu 
114a65fadfbSGavin Liu /*******************************************************************************
115adf73ae2SHope Wang  * PMIF address
116adf73ae2SHope Wang  ******************************************************************************/
117adf73ae2SHope Wang #define PMIF_SPMI_M_BASE	(IO_PHYS + 0x0C01A000)
118adf73ae2SHope Wang #define PMIF_SPMI_P_BASE	(IO_PHYS + 0x0C018000)
119adf73ae2SHope Wang #define PMIF_SPMI_SIZE		0x1000
120adf73ae2SHope Wang 
121adf73ae2SHope Wang /*******************************************************************************
122adf73ae2SHope Wang  * SPMI address
123adf73ae2SHope Wang  ******************************************************************************/
124adf73ae2SHope Wang #define SPMI_MST_M_BASE		(IO_PHYS + 0x0C01C000)
125adf73ae2SHope Wang #define SPMI_MST_P_BASE		(IO_PHYS + 0x0C01C800)
126adf73ae2SHope Wang #define SPMI_MST_SIZE		0x1000
127adf73ae2SHope Wang 
128adf73ae2SHope Wang /*******************************************************************************
129a65fadfbSGavin Liu  * Infra IOMMU related constants
130a65fadfbSGavin Liu  ******************************************************************************/
131a65fadfbSGavin Liu #define INFRACFG_AO_BASE	(IO_PHYS + 0x00001000)
132a65fadfbSGavin Liu #define INFRACFG_AO_MEM_BASE	(IO_PHYS + 0x00404000)
133a65fadfbSGavin Liu #define PERICFG_AO_BASE		(IO_PHYS + 0x06630000)
134a65fadfbSGavin Liu #define PERICFG_AO_REG_SIZE	(0x1000)
135a65fadfbSGavin Liu 
136a65fadfbSGavin Liu /*******************************************************************************
137a65fadfbSGavin Liu  * GIC-600 & interrupt handling related constants
138a65fadfbSGavin Liu  ******************************************************************************/
139a65fadfbSGavin Liu /* Base MTK_platform compatible GIC memory map */
140a65fadfbSGavin Liu #define BASE_GICD_BASE		(MT_GIC_BASE)
141a65fadfbSGavin Liu #define MT_GIC_RDIST_BASE	(MT_GIC_BASE + 0x40000)
142a65fadfbSGavin Liu #define MTK_GIC_REG_SIZE	0x400000
143a65fadfbSGavin Liu 
144a65fadfbSGavin Liu /*******************************************************************************
145a65fadfbSGavin Liu  * MM IOMMU & SMI related constants
146a65fadfbSGavin Liu  ******************************************************************************/
147a65fadfbSGavin Liu #define SMI_LARB_0_BASE		(IO_PHYS + 0x0c022000)
148a65fadfbSGavin Liu #define SMI_LARB_1_BASE		(IO_PHYS + 0x0c023000)
149a65fadfbSGavin Liu #define SMI_LARB_2_BASE		(IO_PHYS + 0x0c102000)
150a65fadfbSGavin Liu #define SMI_LARB_3_BASE		(IO_PHYS + 0x0c103000)
151a65fadfbSGavin Liu #define SMI_LARB_4_BASE		(IO_PHYS + 0x04013000)
152a65fadfbSGavin Liu #define SMI_LARB_5_BASE		(IO_PHYS + 0x04f02000)
153a65fadfbSGavin Liu #define SMI_LARB_6_BASE		(IO_PHYS + 0x04f03000)
154a65fadfbSGavin Liu #define SMI_LARB_7_BASE		(IO_PHYS + 0x04e04000)
155a65fadfbSGavin Liu #define SMI_LARB_9_BASE		(IO_PHYS + 0x05001000)
156a65fadfbSGavin Liu #define SMI_LARB_10_BASE	(IO_PHYS + 0x05120000)
157a65fadfbSGavin Liu #define SMI_LARB_11A_BASE	(IO_PHYS + 0x05230000)
158a65fadfbSGavin Liu #define SMI_LARB_11B_BASE	(IO_PHYS + 0x05530000)
159a65fadfbSGavin Liu #define SMI_LARB_11C_BASE	(IO_PHYS + 0x05630000)
160a65fadfbSGavin Liu #define SMI_LARB_12_BASE	(IO_PHYS + 0x05340000)
161a65fadfbSGavin Liu #define SMI_LARB_13_BASE	(IO_PHYS + 0x06001000)
162a65fadfbSGavin Liu #define SMI_LARB_14_BASE	(IO_PHYS + 0x06002000)
163a65fadfbSGavin Liu #define SMI_LARB_15_BASE	(IO_PHYS + 0x05140000)
164a65fadfbSGavin Liu #define SMI_LARB_16A_BASE	(IO_PHYS + 0x06008000)
165a65fadfbSGavin Liu #define SMI_LARB_16B_BASE	(IO_PHYS + 0x0600a000)
166a65fadfbSGavin Liu #define SMI_LARB_17A_BASE	(IO_PHYS + 0x06009000)
167a65fadfbSGavin Liu #define SMI_LARB_17B_BASE	(IO_PHYS + 0x0600b000)
168a65fadfbSGavin Liu #define SMI_LARB_19_BASE	(IO_PHYS + 0x0a010000)
169a65fadfbSGavin Liu #define SMI_LARB_21_BASE	(IO_PHYS + 0x0802e000)
170a65fadfbSGavin Liu #define SMI_LARB_23_BASE	(IO_PHYS + 0x0800d000)
171a65fadfbSGavin Liu #define SMI_LARB_27_BASE	(IO_PHYS + 0x07201000)
172a65fadfbSGavin Liu #define SMI_LARB_28_BASE	(IO_PHYS + 0x00000000)
173a65fadfbSGavin Liu #define SMI_LARB_REG_RNG_SIZE	(0x1000)
174a65fadfbSGavin Liu 
175a65fadfbSGavin Liu /*******************************************************************************
176a65fadfbSGavin Liu  * APMIXEDSYS related constants
177a65fadfbSGavin Liu  ******************************************************************************/
178a65fadfbSGavin Liu #define APMIXEDSYS		(IO_PHYS + 0x0000C000)
179a65fadfbSGavin Liu 
180a65fadfbSGavin Liu /*******************************************************************************
181a65fadfbSGavin Liu  * VPPSYS related constants
182a65fadfbSGavin Liu  ******************************************************************************/
183a65fadfbSGavin Liu #define VPPSYS0_BASE		(IO_PHYS + 0x04000000)
184a65fadfbSGavin Liu #define VPPSYS1_BASE		(IO_PHYS + 0x04f00000)
185a65fadfbSGavin Liu 
186a65fadfbSGavin Liu /*******************************************************************************
187a65fadfbSGavin Liu  * VDOSYS related constants
188a65fadfbSGavin Liu  ******************************************************************************/
189a65fadfbSGavin Liu #define VDOSYS0_BASE		(IO_PHYS + 0x0C01D000)
190a65fadfbSGavin Liu #define VDOSYS1_BASE		(IO_PHYS + 0x0C100000)
191a65fadfbSGavin Liu 
192a65fadfbSGavin Liu /*******************************************************************************
1933e43d1d3SMac Shen  * DP related constants
1943e43d1d3SMac Shen  ******************************************************************************/
1953e43d1d3SMac Shen #define EDP_SEC_BASE		(IO_PHYS + 0x2EC50000)
1963e43d1d3SMac Shen #define DP_SEC_BASE		(IO_PHYS + 0x2EC10000)
1973e43d1d3SMac Shen #define EDP_SEC_SIZE		(0x1000)
1983e43d1d3SMac Shen #define DP_SEC_SIZE		(0x1000)
1993e43d1d3SMac Shen 
2003e43d1d3SMac Shen /*******************************************************************************
201a65fadfbSGavin Liu  * EMI MPU related constants
202a65fadfbSGavin Liu  *******************************************************************************/
203a65fadfbSGavin Liu #define EMI_MPU_BASE			(IO_PHYS + 0x00428000)
204a65fadfbSGavin Liu #define SUB_EMI_MPU_BASE		(IO_PHYS + 0x00528000)
20539f5e278SGavin Liu #define EMI_SLB_BASE			(IO_PHYS + 0x0042e000)
20639f5e278SGavin Liu #define SUB_EMI_SLB_BASE		(IO_PHYS + 0x0052e000)
20739f5e278SGavin Liu #define CHN0_EMI_APB_BASE		(IO_PHYS + 0x00201000)
20839f5e278SGavin Liu #define CHN1_EMI_APB_BASE		(IO_PHYS + 0x00205000)
20939f5e278SGavin Liu #define CHN2_EMI_APB_BASE		(IO_PHYS + 0x00209000)
21039f5e278SGavin Liu #define CHN3_EMI_APB_BASE		(IO_PHYS + 0x0020D000)
21139f5e278SGavin Liu #define EMI_APB_BASE			(IO_PHYS + 0x00429000)
21239f5e278SGavin Liu #define INFRA_EMI_DEBUG_CFG_BASE	(IO_PHYS + 0x00425000)
21339f5e278SGavin Liu #define NEMI_SMPU_BASE			(IO_PHYS + 0x0042f000)
21439f5e278SGavin Liu #define SEMI_SMPU_BASE			(IO_PHYS + 0x0052f000)
21539f5e278SGavin Liu #define SUB_EMI_APB_BASE		(IO_PHYS + 0x00529000)
21639f5e278SGavin Liu #define SUB_INFRA_EMI_DEBUG_CFG_BASE	(IO_PHYS + 0x00525000)
21739f5e278SGavin Liu #define SUB_INFRACFG_AO_MEM_BASE	(IO_PHYS + 0x00504000)
218a65fadfbSGavin Liu 
219a65fadfbSGavin Liu /*******************************************************************************
220a65fadfbSGavin Liu  * System counter frequency related constants
221a65fadfbSGavin Liu  ******************************************************************************/
222a65fadfbSGavin Liu #define SYS_COUNTER_FREQ_IN_HZ	(13000000)
223a65fadfbSGavin Liu #define SYS_COUNTER_FREQ_IN_MHZ	(13)
224a65fadfbSGavin Liu 
225a65fadfbSGavin Liu /*******************************************************************************
226a65fadfbSGavin Liu  * Generic platform constants
227a65fadfbSGavin Liu  ******************************************************************************/
228a65fadfbSGavin Liu #define PLATFORM_STACK_SIZE		(0x800)
229a65fadfbSGavin Liu #define SOC_CHIP_ID			U(0x8196)
230a65fadfbSGavin Liu 
231a65fadfbSGavin Liu /*******************************************************************************
232a65fadfbSGavin Liu  * Platform memory map related constants
233a65fadfbSGavin Liu  ******************************************************************************/
234a65fadfbSGavin Liu #define TZRAM_BASE			(0x94600000)
235a65fadfbSGavin Liu #define TZRAM_SIZE			(0x00200000)
236a65fadfbSGavin Liu 
237a65fadfbSGavin Liu /*******************************************************************************
238a65fadfbSGavin Liu  * BL31 specific defines.
239a65fadfbSGavin Liu  ******************************************************************************/
240a65fadfbSGavin Liu /*
241a65fadfbSGavin Liu  * Put BL3-1 at the top of the Trusted SRAM (just below the shared memory, if
242a65fadfbSGavin Liu  * present). BL31_BASE is calculated using the current BL3-1 debug size plus a
243a65fadfbSGavin Liu  * little space for growth.
244a65fadfbSGavin Liu  */
245a65fadfbSGavin Liu #define BL31_BASE			(TZRAM_BASE + 0x1000)
246a65fadfbSGavin Liu #define BL31_LIMIT			(TZRAM_BASE + TZRAM_SIZE)
247a65fadfbSGavin Liu 
248a65fadfbSGavin Liu /*******************************************************************************
249a65fadfbSGavin Liu  * Platform specific page table and MMU setup constants
250a65fadfbSGavin Liu  ******************************************************************************/
251a65fadfbSGavin Liu #define PLAT_PHY_ADDR_SPACE_SIZE	(1ULL << 39)
252a65fadfbSGavin Liu #define PLAT_VIRT_ADDR_SPACE_SIZE	(1ULL << 39)
253a65fadfbSGavin Liu #define MAX_XLAT_TABLES			(128)
254a65fadfbSGavin Liu #define MAX_MMAP_REGIONS		(512)
255a65fadfbSGavin Liu 
256a65fadfbSGavin Liu /*******************************************************************************
2574ba679daSKai Liang  * CPU_EB TCM handling related constants
2584ba679daSKai Liang  ******************************************************************************/
2594ba679daSKai Liang #define CPU_EB_TCM_BASE		0x0C2CF000
2604ba679daSKai Liang #define CPU_EB_TCM_SIZE		0x1000
2614ba679daSKai Liang #define CPU_EB_TCM_CNT_BASE	0x0C2CC000
2624ba679daSKai Liang 
2634ba679daSKai Liang /*******************************************************************************
264a65fadfbSGavin Liu  * CPU PM definitions
2654ba679daSKai Liang  ******************************************************************************/
266a65fadfbSGavin Liu #define PLAT_CPU_PM_B_BUCK_ISO_ID	(6)
267a65fadfbSGavin Liu #define PLAT_CPU_PM_ILDO_ID		(6)
268a65fadfbSGavin Liu #define CPU_IDLE_SRAM_BASE		(0x11B000)
269a65fadfbSGavin Liu #define CPU_IDLE_SRAM_SIZE		(0x1000)
270a65fadfbSGavin Liu 
271a65fadfbSGavin Liu /*******************************************************************************
272a65fadfbSGavin Liu  * SYSTIMER related definitions
273a65fadfbSGavin Liu  ******************************************************************************/
274a65fadfbSGavin Liu #define SYSTIMER_BASE		(0x1C400000)
275a65fadfbSGavin Liu 
276*fb57af70SWenzhen Yu /*******************************************************************************
277*fb57af70SWenzhen Yu  * CKSYS related constants
278*fb57af70SWenzhen Yu  ******************************************************************************/
279*fb57af70SWenzhen Yu #define CKSYS_BASE		(IO_PHYS)
280*fb57af70SWenzhen Yu 
281*fb57af70SWenzhen Yu /*******************************************************************************
282*fb57af70SWenzhen Yu  * VLP AO related constants
283*fb57af70SWenzhen Yu  ******************************************************************************/
284*fb57af70SWenzhen Yu #define VLPCFG_BUS_BASE		(IO_PHYS + 0x0C001000)
285*fb57af70SWenzhen Yu #define VLPCFG_BUS_SIZE		(0x1000)
286*fb57af70SWenzhen Yu #define VLP_AO_DEVAPC_APB_BASE	(IO_PHYS + 0x0C550000)
287*fb57af70SWenzhen Yu #define VLP_AO_DEVAPC_APB_SIZE	(0x1000)
288*fb57af70SWenzhen Yu 
289*fb57af70SWenzhen Yu /*******************************************************************************
290*fb57af70SWenzhen Yu  * SCP registers
291*fb57af70SWenzhen Yu  ******************************************************************************/
292*fb57af70SWenzhen Yu #define SCP_CLK_CTRL_BASE	(IO_PHYS + 0x0CF21000)
293*fb57af70SWenzhen Yu #define SCP_CLK_CTRL_SIZE	(0x1000)
294*fb57af70SWenzhen Yu 
295*fb57af70SWenzhen Yu #define SCP_CFGREG_BASE		(IO_PHYS + 0x0CF24000)
296*fb57af70SWenzhen Yu #define SCP_CFGREG_SIZE		(0x1000)
297*fb57af70SWenzhen Yu 
298*fb57af70SWenzhen Yu /*******************************************************************************
299*fb57af70SWenzhen Yu  * VLP CKSYS related constants
300*fb57af70SWenzhen Yu  ******************************************************************************/
301*fb57af70SWenzhen Yu #define VLP_CKSYS_BASE		(IO_PHYS + 0x0C016000)
302*fb57af70SWenzhen Yu #define VLP_CKSYS_SIZE		0x1000
303*fb57af70SWenzhen Yu 
304*fb57af70SWenzhen Yu /*******************************************************************************
305*fb57af70SWenzhen Yu  * PERI related constants use PERI secure address to garuantee access
306*fb57af70SWenzhen Yu  ******************************************************************************/
307*fb57af70SWenzhen Yu #define PERICFG_AO_SIZE		0x1000
308*fb57af70SWenzhen Yu #define PERI_CG0_STA		(PERICFG_AO_BASE + 0x10)
309*fb57af70SWenzhen Yu #define PERI_CLK_CON		(PERICFG_AO_BASE + 0x20)
310*fb57af70SWenzhen Yu #define PERI_CG1_CLR		(PERICFG_AO_BASE + 0x30)
311*fb57af70SWenzhen Yu 
312*fb57af70SWenzhen Yu /******************************************************************************
313*fb57af70SWenzhen Yu  * LPM syssram related constants
314*fb57af70SWenzhen Yu  *****************************************************************************/
315*fb57af70SWenzhen Yu #define MTK_LPM_SRAM_BASE	0x11B000
316*fb57af70SWenzhen Yu #define MTK_LPM_SRAM_MAP_SIZE	0x1000
317*fb57af70SWenzhen Yu 
318*fb57af70SWenzhen Yu /*******************************************************************************
319*fb57af70SWenzhen Yu  * SSPM_MBOX_3 related constants
320*fb57af70SWenzhen Yu  ******************************************************************************/
321*fb57af70SWenzhen Yu #define SSPM_MBOX_3_BASE	(IO_PHYS + 0x0C380000)
322*fb57af70SWenzhen Yu #define SSPM_MBOX_3_SIZE	0x1000
323*fb57af70SWenzhen Yu 
324*fb57af70SWenzhen Yu /*******************************************************************************
325*fb57af70SWenzhen Yu  * SSPM related constants
326*fb57af70SWenzhen Yu  ******************************************************************************/
327*fb57af70SWenzhen Yu #define SSPM_REG_OFFSET		(0x40000)
328*fb57af70SWenzhen Yu #define SSPM_CFGREG_BASE	(IO_PHYS + 0x0C300000 + SSPM_REG_OFFSET)
329*fb57af70SWenzhen Yu #define SSPM_CFGREG_SIZE	(0x1000)
330*fb57af70SWenzhen Yu 
331a65fadfbSGavin Liu #endif /* PLATFORM_DEF_H */
332