blob: f1b7526ac774835f8978dfea981cf42f62316bdf [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Peng Fanb11a7342018-01-10 13:20:20 +08002/*
3 * Copyright 2017 NXP
Peng Fanb11a7342018-01-10 13:20:20 +08004 */
5
Peng Fan39945c12018-11-20 10:19:25 +00006#ifndef __ASM_ARCH_IMX8M_REGS_H__
7#define __ASM_ARCH_IMX8M_REGS_H__
Peng Fanb11a7342018-01-10 13:20:20 +08008
Peng Fan00565bf2019-05-09 08:33:55 +00009#define ARCH_MXC
10
Peng Fanb11a7342018-01-10 13:20:20 +080011#include <asm/mach-imx/regs-lcdif.h>
12
Peng Fan2f8c5e12019-08-27 06:25:14 +000013#define ROM_VERSION_A0 IS_ENABLED(CONFIG_IMX8MQ) ? 0x800 : 0x800
14#define ROM_VERSION_B0 IS_ENABLED(CONFIG_IMX8MQ) ? 0x83C : 0x800
Peng Fanb11a7342018-01-10 13:20:20 +080015
Peng Fane9015f32023-06-15 18:09:18 +080016#define MCU_BOOTROM_BASE_ADDR 0x007E0000
Peng Fanb11a7342018-01-10 13:20:20 +080017
Peng Fanb11a7342018-01-10 13:20:20 +080018#define GPIO1_BASE_ADDR 0X30200000
19#define GPIO2_BASE_ADDR 0x30210000
20#define GPIO3_BASE_ADDR 0x30220000
21#define GPIO4_BASE_ADDR 0x30230000
22#define GPIO5_BASE_ADDR 0x30240000
Peng Fanb11a7342018-01-10 13:20:20 +080023#define WDOG1_BASE_ADDR 0x30280000
24#define WDOG2_BASE_ADDR 0x30290000
25#define WDOG3_BASE_ADDR 0x302A0000
Peng Fanb11a7342018-01-10 13:20:20 +080026#define IOMUXC_BASE_ADDR 0x30330000
27#define IOMUXC_GPR_BASE_ADDR 0x30340000
28#define OCOTP_BASE_ADDR 0x30350000
29#define ANATOP_BASE_ADDR 0x30360000
Marek Vasutf7b184e2022-09-19 21:37:07 +020030#define SNVS_BASE_ADDR 0x30370000
Peng Fanb11a7342018-01-10 13:20:20 +080031#define CCM_BASE_ADDR 0x30380000
32#define SRC_BASE_ADDR 0x30390000
33#define GPC_BASE_ADDR 0x303A0000
Marek Vasut829858a2022-12-22 01:46:42 +010034#define CSU_BASE_ADDR 0x303E0000
Peng Fanb11a7342018-01-10 13:20:20 +080035
Peng Fanb11a7342018-01-10 13:20:20 +080036#define SYSCNT_RD_BASE_ADDR 0x306A0000
37#define SYSCNT_CMP_BASE_ADDR 0x306B0000
38#define SYSCNT_CTRL_BASE_ADDR 0x306C0000
Peng Fanb11a7342018-01-10 13:20:20 +080039
Peng Fanb11a7342018-01-10 13:20:20 +080040#define UART1_BASE_ADDR 0x30860000
41#define UART3_BASE_ADDR 0x30880000
42#define UART2_BASE_ADDR 0x30890000
Peng Fan99145762023-06-15 18:09:25 +080043#define CAAM_BASE_ADDR 0x30900000
Peng Fanb11a7342018-01-10 13:20:20 +080044#define I2C1_BASE_ADDR 0x30A20000
45#define I2C2_BASE_ADDR 0x30A30000
46#define I2C3_BASE_ADDR 0x30A40000
47#define I2C4_BASE_ADDR 0x30A50000
48#define UART4_BASE_ADDR 0x30A60000
Martyn Welchc445dc42022-10-25 10:54:59 +010049#ifdef CONFIG_IMX8MP
50#define I2C5_BASE_ADDR 0x30AD0000
51#define I2C6_BASE_ADDR 0x30AE0000
52#endif
Peng Fanb11a7342018-01-10 13:20:20 +080053#define USDHC1_BASE_ADDR 0x30B40000
54#define USDHC2_BASE_ADDR 0x30B50000
Mamta Shuklad5b90f02022-07-12 14:36:21 +000055#define QSPI0_AMBA_BASE 0x08000000
Martyn Welch8bd54a22022-10-25 10:54:58 +010056#if defined(CONFIG_IMX8MM) || defined(CONFIG_IMX8MP)
Peng Fan2f8c5e12019-08-27 06:25:14 +000057#define USDHC3_BASE_ADDR 0x30B60000
58#endif
Marek Vasut86a27482022-04-24 23:44:03 +020059#define UART_BASE_ADDR(n) ( \
60 !!sizeof(struct { \
61 static_assert((n) >= 1 && (n) <= 4); \
62 int pad; \
63 }) * ( \
64 (n) == 1 ? UART1_BASE_ADDR : \
65 (n) == 2 ? UART2_BASE_ADDR : \
66 (n) == 3 ? UART3_BASE_ADDR : \
67 UART4_BASE_ADDR) \
68 )
Peng Fanb11a7342018-01-10 13:20:20 +080069
Peng Fanb11a7342018-01-10 13:20:20 +080070#define TZASC_BASE_ADDR 0x32F80000
Peng Fanb11a7342018-01-10 13:20:20 +080071
Peng Fan2f8c5e12019-08-27 06:25:14 +000072#define MXS_LCDIF_BASE IS_ENABLED(CONFIG_IMX8MQ) ? \
73 0x30320000 : 0x32e00000
Peng Fanb11a7342018-01-10 13:20:20 +080074
75#define SRC_IPS_BASE_ADDR 0x30390000
76#define SRC_DDRC_RCR_ADDR 0x30391000
77#define SRC_DDRC2_RCR_ADDR 0x30391004
78
Michael Trimarchi5175d6c2022-04-12 10:31:32 -030079#define APBH_DMA_ARB_BASE_ADDR 0x33000000
80#define APBH_DMA_ARB_END_ADDR 0x33007FFF
81#define MXS_APBH_BASE APBH_DMA_ARB_BASE_ADDR
82
83#define MXS_GPMI_BASE (APBH_DMA_ARB_BASE_ADDR + 0x02000)
84#define MXS_BCH_BASE (APBH_DMA_ARB_BASE_ADDR + 0x04000)
85
Marek Vasut2e2fc972022-12-22 01:46:39 +010086#define GICD_BASE 0x38800000
87#define GICR_BASE 0x38880000
88
Peng Fanb11a7342018-01-10 13:20:20 +080089#define DDRC_DDR_SS_GPR0 0x3d000000
90#define DDRC_IPS_BASE_ADDR(X) (0x3d400000 + ((X) * 0x2000000))
91#define DDR_CSD1_BASE_ADDR 0x40000000
92
Marek Vasutebef0642023-03-06 15:53:51 +010093#define IOMUXC_GPR_GPR1_GPR_ENET1_RGMII_EN BIT(22)
Marek Vasute6576952023-03-06 15:53:49 +010094#define IOMUXC_GPR_GPR1_GPR_ENET_QOS_RGMII_EN BIT(21)
95#define IOMUXC_GPR_GPR1_GPR_ENET_QOS_CLK_TX_CLK_SEL BIT(20)
96#define IOMUXC_GPR_GPR1_GPR_ENET_QOS_CLK_GEN_EN BIT(19)
97#define IOMUXC_GPR_GPR1_GPR_ENET_QOS_INTF_SEL_MASK GENMASK(18, 16)
98#define IOMUXC_GPR_GPR1_GPR_ENET_QOS_INTF_SEL_MII (0 << 16)
99#define IOMUXC_GPR_GPR1_GPR_ENET_QOS_INTF_SEL_RGMII (1 << 16)
100#define IOMUXC_GPR_GPR1_GPR_ENET_QOS_INTF_SEL_RMII (4 << 16)
Marek Vasutebef0642023-03-06 15:53:51 +0100101#define IOMUXC_GPR_GPR1_GPR_ENET1_TX_CLK_SEL BIT(13)
Marek Vasutbefffe72021-02-25 22:02:26 +0100102#define FEC_QUIRK_ENET_MAC
Peng Fan4f0c97b2020-12-25 16:16:34 +0800103
Marek Vasutb0615a62022-12-22 01:46:41 +0100104#ifdef CONFIG_ARMV8_PSCI /* Final jump location */
105#define CPU_RELEASE_ADDR 0x900000
106#endif
107
Peng Fan956da002021-03-25 17:30:01 +0800108#define CAAM_ARB_BASE_ADDR (0x00100000)
109#define CAAM_ARB_END_ADDR (0x00107FFF)
110#define CAAM_IPS_BASE_ADDR (0x30900000)
Tom Rini376b88a2022-10-28 20:27:13 -0400111#define CFG_SYS_FSL_SEC_OFFSET (0)
112#define CFG_SYS_FSL_SEC_ADDR (CAAM_IPS_BASE_ADDR + \
113 CFG_SYS_FSL_SEC_OFFSET)
114#define CFG_SYS_FSL_JR0_OFFSET (0x1000)
115#define CFG_SYS_FSL_JR0_ADDR (CFG_SYS_FSL_SEC_ADDR + \
116 CFG_SYS_FSL_JR0_OFFSET)
Peng Fanb11a7342018-01-10 13:20:20 +0800117#if !defined(__ASSEMBLY__)
118#include <asm/types.h>
119#include <linux/bitops.h>
120#include <stdbool.h>
121
Andrey Zhizhikin7c2d23a2022-01-24 21:48:09 +0100122#define GPR_TZASC_EN BIT(0)
123#define GPR_TZASC_ID_SWAP_BYPASS BIT(1)
124#define GPR_TZASC_EN_LOCK BIT(16)
125#define GPR_TZASC_ID_SWAP_BYPASS_LOCK BIT(17)
Peng Fanb11a7342018-01-10 13:20:20 +0800126
127#define SRC_SCR_M4_ENABLE_OFFSET 3
128#define SRC_SCR_M4_ENABLE_MASK BIT(3)
129#define SRC_SCR_M4C_NON_SCLR_RST_OFFSET 0
130#define SRC_SCR_M4C_NON_SCLR_RST_MASK BIT(0)
131#define SRC_DDR1_ENABLE_MASK 0x8F000000UL
132#define SRC_DDR2_ENABLE_MASK 0x8F000000UL
133#define SRC_DDR1_RCR_PHY_PWROKIN_N_MASK BIT(3)
134#define SRC_DDR1_RCR_PHY_RESET_MASK BIT(2)
135#define SRC_DDR1_RCR_CORE_RESET_N_MASK BIT(1)
136#define SRC_DDR1_RCR_PRESET_N_MASK BIT(0)
137
Marek Vasutf7b184e2022-09-19 21:37:07 +0200138#define SNVS_LPSR 0x4c
139#define SNVS_LPLVDR 0x64
140#define SNVS_LPPGDR_INIT 0x41736166
141
Peng Fanb11a7342018-01-10 13:20:20 +0800142struct iomuxc_gpr_base_regs {
143 u32 gpr[47];
144};
145
146struct ocotp_regs {
147 u32 ctrl;
148 u32 ctrl_set;
149 u32 ctrl_clr;
150 u32 ctrl_tog;
151 u32 timing;
152 u32 rsvd0[3];
153 u32 data;
154 u32 rsvd1[3];
155 u32 read_ctrl;
156 u32 rsvd2[3];
157 u32 read_fuse_data;
158 u32 rsvd3[3];
159 u32 sw_sticky;
160 u32 rsvd4[3];
161 u32 scs;
162 u32 scs_set;
163 u32 scs_clr;
164 u32 scs_tog;
165 u32 crc_addr;
166 u32 rsvd5[3];
167 u32 crc_value;
168 u32 rsvd6[3];
169 u32 version;
170 u32 rsvd7[0xdb];
171
172 /* fuse banks */
173 struct fuse_bank {
174 u32 fuse_regs[0x10];
175 } bank[0];
176};
177
Peng Fan438b52a2021-03-19 15:57:15 +0800178#ifdef CONFIG_IMX8MP
Peng Fanb11a7342018-01-10 13:20:20 +0800179struct fuse_bank0_regs {
180 u32 lock;
Peng Fan438b52a2021-03-19 15:57:15 +0800181 u32 rsvd0[7];
182 u32 uid_low;
183 u32 rsvd1[3];
184 u32 uid_high;
185 u32 rsvd2[3];
186};
187#else
188struct fuse_bank0_regs {
189 u32 lock;
Peng Fanb11a7342018-01-10 13:20:20 +0800190 u32 rsvd0[3];
191 u32 uid_low;
192 u32 rsvd1[3];
193 u32 uid_high;
194 u32 rsvd2[7];
195};
Peng Fan438b52a2021-03-19 15:57:15 +0800196#endif
Peng Fanb11a7342018-01-10 13:20:20 +0800197
198struct fuse_bank1_regs {
199 u32 tester3;
200 u32 rsvd0[3];
201 u32 tester4;
202 u32 rsvd1[3];
203 u32 tester5;
204 u32 rsvd2[3];
205 u32 cfg0;
206 u32 rsvd3[3];
207};
208
Peng Fan60767632020-05-03 22:19:56 +0800209struct fuse_bank3_regs {
210 u32 mem_trim0;
211 u32 rsvd0[3];
212 u32 mem_trim1;
213 u32 rsvd1[3];
214 u32 mem_trim2;
215 u32 rsvd2[3];
216 u32 ana0;
217 u32 rsvd3[3];
218};
219
220struct fuse_bank9_regs {
221 u32 mac_addr0;
222 u32 rsvd0[3];
223 u32 mac_addr1;
224 u32 rsvd1[11];
225};
226
227struct fuse_bank38_regs {
228 u32 ana_trim1; /* trim0 is at 0xD70, bank 37*/
229 u32 rsvd0[3];
230 u32 ana_trim2;
231 u32 rsvd1[3];
232 u32 ana_trim3;
233 u32 rsvd2[3];
234 u32 ana_trim4;
235 u32 rsvd3[3];
236};
237
238struct fuse_bank39_regs {
239 u32 ana_trim5;
240 u32 rsvd[15];
241};
242
Peng Fan2f8c5e12019-08-27 06:25:14 +0000243#ifdef CONFIG_IMX8MQ
Peng Fanb11a7342018-01-10 13:20:20 +0800244struct anamix_pll {
245 u32 audio_pll1_cfg0;
246 u32 audio_pll1_cfg1;
247 u32 audio_pll2_cfg0;
248 u32 audio_pll2_cfg1;
249 u32 video_pll_cfg0;
250 u32 video_pll_cfg1;
251 u32 gpu_pll_cfg0;
252 u32 gpu_pll_cfg1;
253 u32 vpu_pll_cfg0;
254 u32 vpu_pll_cfg1;
255 u32 arm_pll_cfg0;
256 u32 arm_pll_cfg1;
257 u32 sys_pll1_cfg0;
258 u32 sys_pll1_cfg1;
259 u32 sys_pll1_cfg2;
260 u32 sys_pll2_cfg0;
261 u32 sys_pll2_cfg1;
262 u32 sys_pll2_cfg2;
263 u32 sys_pll3_cfg0;
264 u32 sys_pll3_cfg1;
265 u32 sys_pll3_cfg2;
266 u32 video_pll2_cfg0;
267 u32 video_pll2_cfg1;
268 u32 video_pll2_cfg2;
269 u32 dram_pll_cfg0;
270 u32 dram_pll_cfg1;
271 u32 dram_pll_cfg2;
272 u32 digprog;
273 u32 osc_misc_cfg;
274 u32 pllout_monitor_cfg;
275 u32 frac_pllout_div_cfg;
276 u32 sscg_pllout_div_cfg;
277};
Peng Fan2f8c5e12019-08-27 06:25:14 +0000278#else
279struct anamix_pll {
280 u32 audio_pll1_gnrl_ctl;
281 u32 audio_pll1_fdiv_ctl0;
282 u32 audio_pll1_fdiv_ctl1;
283 u32 audio_pll1_sscg_ctl;
284 u32 audio_pll1_mnit_ctl;
285 u32 audio_pll2_gnrl_ctl;
286 u32 audio_pll2_fdiv_ctl0;
287 u32 audio_pll2_fdiv_ctl1;
288 u32 audio_pll2_sscg_ctl;
289 u32 audio_pll2_mnit_ctl;
290 u32 video_pll1_gnrl_ctl;
291 u32 video_pll1_fdiv_ctl0;
292 u32 video_pll1_fdiv_ctl1;
293 u32 video_pll1_sscg_ctl;
294 u32 video_pll1_mnit_ctl;
295 u32 reserved[5];
296 u32 dram_pll_gnrl_ctl;
297 u32 dram_pll_fdiv_ctl0;
298 u32 dram_pll_fdiv_ctl1;
299 u32 dram_pll_sscg_ctl;
300 u32 dram_pll_mnit_ctl;
301 u32 gpu_pll_gnrl_ctl;
302 u32 gpu_pll_div_ctl;
303 u32 gpu_pll_locked_ctl1;
304 u32 gpu_pll_mnit_ctl;
305 u32 vpu_pll_gnrl_ctl;
306 u32 vpu_pll_div_ctl;
307 u32 vpu_pll_locked_ctl1;
308 u32 vpu_pll_mnit_ctl;
309 u32 arm_pll_gnrl_ctl;
310 u32 arm_pll_div_ctl;
311 u32 arm_pll_locked_ctl1;
312 u32 arm_pll_mnit_ctl;
313 u32 sys_pll1_gnrl_ctl;
314 u32 sys_pll1_div_ctl;
315 u32 sys_pll1_locked_ctl1;
316 u32 reserved2[24];
317 u32 sys_pll1_mnit_ctl;
318 u32 sys_pll2_gnrl_ctl;
319 u32 sys_pll2_div_ctl;
320 u32 sys_pll2_locked_ctl1;
321 u32 sys_pll2_mnit_ctl;
322 u32 sys_pll3_gnrl_ctl;
323 u32 sys_pll3_div_ctl;
324 u32 sys_pll3_locked_ctl1;
325 u32 sys_pll3_mnit_ctl;
326 u32 anamix_misc_ctl;
327 u32 anamix_clk_mnit_ctl;
328 u32 reserved3[437];
329 u32 digprog;
330};
331#endif
Peng Fanb11a7342018-01-10 13:20:20 +0800332
Peng Fanb11a7342018-01-10 13:20:20 +0800333/* System Reset Controller (SRC) */
334struct src {
335 u32 scr;
336 u32 a53rcr;
337 u32 a53rcr1;
338 u32 m4rcr;
339 u32 reserved1[4];
340 u32 usbophy1_rcr;
341 u32 usbophy2_rcr;
342 u32 mipiphy_rcr;
343 u32 pciephy_rcr;
344 u32 hdmi_rcr;
345 u32 disp_rcr;
346 u32 reserved2[2];
347 u32 gpu_rcr;
348 u32 vpu_rcr;
349 u32 pcie2_rcr;
350 u32 mipiphy1_rcr;
351 u32 mipiphy2_rcr;
352 u32 reserved3;
353 u32 sbmr1;
354 u32 srsr;
355 u32 reserved4[2];
356 u32 sisr;
357 u32 simr;
358 u32 sbmr2;
359 u32 gpr1;
360 u32 gpr2;
361 u32 gpr3;
362 u32 gpr4;
363 u32 gpr5;
364 u32 gpr6;
365 u32 gpr7;
366 u32 gpr8;
367 u32 gpr9;
368 u32 gpr10;
369 u32 reserved5[985];
370 u32 ddr1_rcr;
371 u32 ddr2_rcr;
372};
373
Tommaso Merciai9c884162022-03-26 12:19:02 +0100374#define PWMCR_PRESCALER(x) (((x - 1) & 0xFFF) << 4)
375#define PWMCR_DOZEEN (1 << 24)
376#define PWMCR_WAITEN (1 << 23)
377#define PWMCR_DBGEN (1 << 22)
378#define PWMCR_CLKSRC_IPG_HIGH (2 << 16)
379#define PWMCR_CLKSRC_IPG (1 << 16)
380#define PWMCR_EN (1 << 0)
381
Tommaso Merciai28354e82022-03-26 12:19:03 +0100382struct pwm_regs {
383 u32 cr;
384 u32 sr;
385 u32 ir;
386 u32 sar;
387 u32 pr;
388 u32 cnr;
389};
390
Peng Fanb11a7342018-01-10 13:20:20 +0800391#define WDOG_WDT_MASK BIT(3)
392#define WDOG_WDZST_MASK BIT(0)
393struct wdog_regs {
394 u16 wcr; /* Control */
395 u16 wsr; /* Service */
396 u16 wrsr; /* Reset Status */
397 u16 wicr; /* Interrupt Control */
398 u16 wmcr; /* Miscellaneous Control */
399};
400
401struct bootrom_sw_info {
402 u8 reserved_1;
403 u8 boot_dev_instance;
404 u8 boot_dev_type;
405 u8 reserved_2;
406 u32 core_freq;
407 u32 axi_freq;
408 u32 ddr_freq;
409 u32 tick_freq;
410 u32 reserved_3[3];
411};
412
Peng Fan2f8c5e12019-08-27 06:25:14 +0000413#define ROM_SW_INFO_ADDR_B0 (IS_ENABLED(CONFIG_IMX8MQ) ? 0x00000968 :\
414 0x000009e8)
Peng Fanb11a7342018-01-10 13:20:20 +0800415#define ROM_SW_INFO_ADDR_A0 0x000009e8
416
417#define ROM_SW_INFO_ADDR is_soc_rev(CHIP_REV_1_0) ? \
418 (struct bootrom_sw_info **)ROM_SW_INFO_ADDR_A0 : \
419 (struct bootrom_sw_info **)ROM_SW_INFO_ADDR_B0
Peng Fan9cf2aa32020-07-09 13:52:41 +0800420
421struct gpc_reg {
422 u32 lpcr_bsc;
423 u32 lpcr_ad;
424 u32 lpcr_cpu1;
425 u32 lpcr_cpu2;
426 u32 lpcr_cpu3;
427 u32 slpcr;
428 u32 mst_cpu_mapping;
429 u32 mmdc_cpu_mapping;
430 u32 mlpcr;
431 u32 pgc_ack_sel;
432 u32 pgc_ack_sel_m4;
433 u32 gpc_misc;
434 u32 imr1_core0;
435 u32 imr2_core0;
436 u32 imr3_core0;
437 u32 imr4_core0;
438 u32 imr1_core1;
439 u32 imr2_core1;
440 u32 imr3_core1;
441 u32 imr4_core1;
442 u32 imr1_cpu1;
443 u32 imr2_cpu1;
444 u32 imr3_cpu1;
445 u32 imr4_cpu1;
446 u32 imr1_cpu3;
447 u32 imr2_cpu3;
448 u32 imr3_cpu3;
449 u32 imr4_cpu3;
450 u32 isr1_cpu0;
451 u32 isr2_cpu0;
452 u32 isr3_cpu0;
453 u32 isr4_cpu0;
454 u32 isr1_cpu1;
455 u32 isr2_cpu1;
456 u32 isr3_cpu1;
457 u32 isr4_cpu1;
458 u32 isr1_cpu2;
459 u32 isr2_cpu2;
460 u32 isr3_cpu2;
461 u32 isr4_cpu2;
462 u32 isr1_cpu3;
463 u32 isr2_cpu3;
464 u32 isr3_cpu3;
465 u32 isr4_cpu3;
466 u32 slt0_cfg;
467 u32 slt1_cfg;
468 u32 slt2_cfg;
469 u32 slt3_cfg;
470 u32 slt4_cfg;
471 u32 slt5_cfg;
472 u32 slt6_cfg;
473 u32 slt7_cfg;
474 u32 slt8_cfg;
475 u32 slt9_cfg;
476 u32 slt10_cfg;
477 u32 slt11_cfg;
478 u32 slt12_cfg;
479 u32 slt13_cfg;
480 u32 slt14_cfg;
481 u32 pgc_cpu_0_1_mapping;
482 u32 cpu_pgc_up_trg;
483 u32 mix_pgc_up_trg;
484 u32 pu_pgc_up_trg;
485 u32 cpu_pgc_dn_trg;
486 u32 mix_pgc_dn_trg;
487 u32 pu_pgc_dn_trg;
488 u32 lpcr_bsc2;
489 u32 pgc_cpu_2_3_mapping;
490 u32 lps_cpu0;
491 u32 lps_cpu1;
492 u32 lps_cpu2;
493 u32 lps_cpu3;
494 u32 gpc_gpr;
495 u32 gtor;
496 u32 debug_addr1;
497 u32 debug_addr2;
498 u32 cpu_pgc_up_status1;
499 u32 mix_pgc_up_status0;
500 u32 mix_pgc_up_status1;
501 u32 mix_pgc_up_status2;
502 u32 m4_mix_pgc_up_status0;
503 u32 m4_mix_pgc_up_status1;
504 u32 m4_mix_pgc_up_status2;
505 u32 pu_pgc_up_status0;
506 u32 pu_pgc_up_status1;
507 u32 pu_pgc_up_status2;
508 u32 m4_pu_pgc_up_status0;
509 u32 m4_pu_pgc_up_status1;
510 u32 m4_pu_pgc_up_status2;
511 u32 a53_lp_io_0;
512 u32 a53_lp_io_1;
513 u32 a53_lp_io_2;
514 u32 cpu_pgc_dn_status1;
515 u32 mix_pgc_dn_status0;
516 u32 mix_pgc_dn_status1;
517 u32 mix_pgc_dn_status2;
518 u32 m4_mix_pgc_dn_status0;
519 u32 m4_mix_pgc_dn_status1;
520 u32 m4_mix_pgc_dn_status2;
521 u32 pu_pgc_dn_status0;
522 u32 pu_pgc_dn_status1;
523 u32 pu_pgc_dn_status2;
524 u32 m4_pu_pgc_dn_status0;
525 u32 m4_pu_pgc_dn_status1;
526 u32 m4_pu_pgc_dn_status2;
527 u32 res[3];
528 u32 mix_pdn_flg;
529 u32 pu_pdn_flg;
530 u32 m4_mix_pdn_flg;
531 u32 m4_pu_pdn_flg;
532 u32 imr1_core2;
533 u32 imr2_core2;
534 u32 imr3_core2;
535 u32 imr4_core2;
536 u32 imr1_core3;
537 u32 imr2_core3;
538 u32 imr3_core3;
539 u32 imr4_core3;
540 u32 pgc_ack_sel_pu;
541 u32 pgc_ack_sel_m4_pu;
542 u32 slt15_cfg;
543 u32 slt16_cfg;
544 u32 slt17_cfg;
545 u32 slt18_cfg;
546 u32 slt19_cfg;
547 u32 gpc_pu_pwrhsk;
548 u32 slt0_cfg_pu;
549 u32 slt1_cfg_pu;
550 u32 slt2_cfg_pu;
551 u32 slt3_cfg_pu;
552 u32 slt4_cfg_pu;
553 u32 slt5_cfg_pu;
554 u32 slt6_cfg_pu;
555 u32 slt7_cfg_pu;
556 u32 slt8_cfg_pu;
557 u32 slt9_cfg_pu;
558 u32 slt10_cfg_pu;
559 u32 slt11_cfg_pu;
560 u32 slt12_cfg_pu;
561 u32 slt13_cfg_pu;
562 u32 slt14_cfg_pu;
563 u32 slt15_cfg_pu;
564 u32 slt16_cfg_pu;
565 u32 slt17_cfg_pu;
566 u32 slt18_cfg_pu;
567 u32 slt19_cfg_pu;
568};
569
570struct pgc_reg {
571 u32 pgcr;
572 u32 pgpupscr;
573 u32 pgpdnscr;
574 u32 pgsr;
575 u32 pgauxsw;
576 u32 pgdr;
577};
Peng Fanb11a7342018-01-10 13:20:20 +0800578#endif
579#endif