diff options
Diffstat (limited to 'arch/arm/mach-exynos/regs-pmu.h')
-rw-r--r-- | arch/arm/mach-exynos/regs-pmu.h | 358 |
1 files changed, 358 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/regs-pmu.h b/arch/arm/mach-exynos/regs-pmu.h index 4e9b4440e2bd..b5f4406fc1b5 100644 --- a/arch/arm/mach-exynos/regs-pmu.h +++ b/arch/arm/mach-exynos/regs-pmu.h | |||
@@ -19,9 +19,24 @@ | |||
19 | #define S5P_CENTRAL_SEQ_OPTION 0x0208 | 19 | #define S5P_CENTRAL_SEQ_OPTION 0x0208 |
20 | 20 | ||
21 | #define S5P_USE_STANDBY_WFI0 (1 << 16) | 21 | #define S5P_USE_STANDBY_WFI0 (1 << 16) |
22 | #define S5P_USE_STANDBY_WFI1 (1 << 17) | ||
23 | #define S5P_USE_STANDBY_WFI2 (1 << 19) | ||
24 | #define S5P_USE_STANDBY_WFI3 (1 << 20) | ||
22 | #define S5P_USE_STANDBY_WFE0 (1 << 24) | 25 | #define S5P_USE_STANDBY_WFE0 (1 << 24) |
26 | #define S5P_USE_STANDBY_WFE1 (1 << 25) | ||
27 | #define S5P_USE_STANDBY_WFE2 (1 << 27) | ||
28 | #define S5P_USE_STANDBY_WFE3 (1 << 28) | ||
29 | |||
30 | #define S5P_USE_STANDBY_WFI_ALL \ | ||
31 | (S5P_USE_STANDBY_WFI0 | S5P_USE_STANDBY_WFI1 | \ | ||
32 | S5P_USE_STANDBY_WFI2 | S5P_USE_STANDBY_WFI3 | \ | ||
33 | S5P_USE_STANDBY_WFE0 | S5P_USE_STANDBY_WFE1 | \ | ||
34 | S5P_USE_STANDBY_WFE2 | S5P_USE_STANDBY_WFE3) | ||
35 | |||
23 | #define S5P_USE_DELAYED_RESET_ASSERTION BIT(12) | 36 | #define S5P_USE_DELAYED_RESET_ASSERTION BIT(12) |
24 | 37 | ||
38 | #define EXYNOS_CORE_PO_RESET(n) ((1 << 4) << n) | ||
39 | #define EXYNOS_WAKEUP_FROM_LOWPWR (1 << 28) | ||
25 | #define EXYNOS_SWRESET 0x0400 | 40 | #define EXYNOS_SWRESET 0x0400 |
26 | #define EXYNOS5440_SWRESET 0x00C4 | 41 | #define EXYNOS5440_SWRESET 0x00C4 |
27 | 42 | ||
@@ -36,6 +51,7 @@ | |||
36 | #define S5P_INFORM7 0x081C | 51 | #define S5P_INFORM7 0x081C |
37 | #define S5P_PMU_SPARE3 0x090C | 52 | #define S5P_PMU_SPARE3 0x090C |
38 | 53 | ||
54 | #define EXYNOS_IROM_DATA2 0x0988 | ||
39 | #define S5P_ARM_CORE0_LOWPWR 0x1000 | 55 | #define S5P_ARM_CORE0_LOWPWR 0x1000 |
40 | #define S5P_DIS_IRQ_CORE0 0x1004 | 56 | #define S5P_DIS_IRQ_CORE0 0x1004 |
41 | #define S5P_DIS_IRQ_CENTRAL0 0x1008 | 57 | #define S5P_DIS_IRQ_CENTRAL0 0x1008 |
@@ -118,6 +134,31 @@ | |||
118 | #define EXYNOS_COMMON_OPTION(_nr) \ | 134 | #define EXYNOS_COMMON_OPTION(_nr) \ |
119 | (EXYNOS_COMMON_CONFIGURATION(_nr) + 0x8) | 135 | (EXYNOS_COMMON_CONFIGURATION(_nr) + 0x8) |
120 | 136 | ||
137 | #define EXYNOS_CORE_LOCAL_PWR_EN 0x3 | ||
138 | |||
139 | #define EXYNOS_ARM_COMMON_STATUS 0x2504 | ||
140 | #define EXYNOS_COMMON_OPTION(_nr) \ | ||
141 | (EXYNOS_COMMON_CONFIGURATION(_nr) + 0x8) | ||
142 | |||
143 | #define EXYNOS_ARM_L2_CONFIGURATION 0x2600 | ||
144 | #define EXYNOS_L2_CONFIGURATION(_nr) \ | ||
145 | (EXYNOS_ARM_L2_CONFIGURATION + ((_nr) * 0x80)) | ||
146 | #define EXYNOS_L2_STATUS(_nr) \ | ||
147 | (EXYNOS_L2_CONFIGURATION(_nr) + 0x4) | ||
148 | #define EXYNOS_L2_OPTION(_nr) \ | ||
149 | (EXYNOS_L2_CONFIGURATION(_nr) + 0x8) | ||
150 | #define EXYNOS_L2_COMMON_PWR_EN 0x3 | ||
151 | |||
152 | #define EXYNOS_ARM_CORE_X_STATUS_OFFSET 0x4 | ||
153 | |||
154 | #define EXYNOS5_APLL_SYSCLK_CONFIGURATION 0x2A00 | ||
155 | #define EXYNOS5_APLL_SYSCLK_STATUS 0x2A04 | ||
156 | |||
157 | #define EXYNOS5_ARM_L2_OPTION 0x2608 | ||
158 | #define EXYNOS5_USE_RETENTION BIT(4) | ||
159 | |||
160 | #define EXYNOS5_L2RSTDISABLE_VALUE BIT(3) | ||
161 | |||
121 | #define S5P_PAD_RET_MAUDIO_OPTION 0x3028 | 162 | #define S5P_PAD_RET_MAUDIO_OPTION 0x3028 |
122 | #define S5P_PAD_RET_GPIO_OPTION 0x3108 | 163 | #define S5P_PAD_RET_GPIO_OPTION 0x3108 |
123 | #define S5P_PAD_RET_UART_OPTION 0x3128 | 164 | #define S5P_PAD_RET_UART_OPTION 0x3128 |
@@ -126,7 +167,19 @@ | |||
126 | #define S5P_PAD_RET_EBIA_OPTION 0x3188 | 167 | #define S5P_PAD_RET_EBIA_OPTION 0x3188 |
127 | #define S5P_PAD_RET_EBIB_OPTION 0x31A8 | 168 | #define S5P_PAD_RET_EBIB_OPTION 0x31A8 |
128 | 169 | ||
170 | #define S5P_PS_HOLD_CONTROL 0x330C | ||
171 | #define S5P_PS_HOLD_EN (1 << 31) | ||
172 | #define S5P_PS_HOLD_OUTPUT_HIGH (3 << 8) | ||
173 | |||
174 | #define S5P_CAM_OPTION 0x3C08 | ||
175 | #define S5P_MFC_OPTION 0x3C48 | ||
176 | #define S5P_G3D_OPTION 0x3C68 | ||
177 | #define S5P_LCD0_OPTION 0x3C88 | ||
178 | #define S5P_LCD1_OPTION 0x3CA8 | ||
179 | #define S5P_ISP_OPTION S5P_LCD1_OPTION | ||
180 | |||
129 | #define S5P_CORE_LOCAL_PWR_EN 0x3 | 181 | #define S5P_CORE_LOCAL_PWR_EN 0x3 |
182 | #define S5P_CORE_WAKEUP_FROM_LOCAL_CFG (0x3 << 8) | ||
130 | 183 | ||
131 | /* Only for EXYNOS4210 */ | 184 | /* Only for EXYNOS4210 */ |
132 | #define S5P_CMU_CLKSTOP_LCD1_LOWPWR 0x1154 | 185 | #define S5P_CMU_CLKSTOP_LCD1_LOWPWR 0x1154 |
@@ -185,11 +238,116 @@ | |||
185 | #define S5P_DIS_IRQ_CORE3 0x1034 | 238 | #define S5P_DIS_IRQ_CORE3 0x1034 |
186 | #define S5P_DIS_IRQ_CENTRAL3 0x1038 | 239 | #define S5P_DIS_IRQ_CENTRAL3 0x1038 |
187 | 240 | ||
241 | /* Only for EXYNOS3XXX */ | ||
242 | #define EXYNOS3_ARM_CORE0_SYS_PWR_REG 0x1000 | ||
243 | #define EXYNOS3_DIS_IRQ_ARM_CORE0_LOCAL_SYS_PWR_REG 0x1004 | ||
244 | #define EXYNOS3_DIS_IRQ_ARM_CORE0_CENTRAL_SYS_PWR_REG 0x1008 | ||
245 | #define EXYNOS3_ARM_CORE1_SYS_PWR_REG 0x1010 | ||
246 | #define EXYNOS3_DIS_IRQ_ARM_CORE1_LOCAL_SYS_PWR_REG 0x1014 | ||
247 | #define EXYNOS3_DIS_IRQ_ARM_CORE1_CENTRAL_SYS_PWR_REG 0x1018 | ||
248 | #define EXYNOS3_ISP_ARM_SYS_PWR_REG 0x1050 | ||
249 | #define EXYNOS3_DIS_IRQ_ISP_ARM_LOCAL_SYS_PWR_REG 0x1054 | ||
250 | #define EXYNOS3_DIS_IRQ_ISP_ARM_CENTRAL_SYS_PWR_REG 0x1058 | ||
251 | #define EXYNOS3_ARM_COMMON_SYS_PWR_REG 0x1080 | ||
252 | #define EXYNOS3_ARM_L2_SYS_PWR_REG 0x10C0 | ||
253 | #define EXYNOS3_CMU_ACLKSTOP_SYS_PWR_REG 0x1100 | ||
254 | #define EXYNOS3_CMU_SCLKSTOP_SYS_PWR_REG 0x1104 | ||
255 | #define EXYNOS3_CMU_RESET_SYS_PWR_REG 0x110C | ||
256 | #define EXYNOS3_CMU_ACLKSTOP_COREBLK_SYS_PWR_REG 0x1110 | ||
257 | #define EXYNOS3_CMU_SCLKSTOP_COREBLK_SYS_PWR_REG 0x1114 | ||
258 | #define EXYNOS3_CMU_RESET_COREBLK_SYS_PWR_REG 0x111C | ||
259 | #define EXYNOS3_APLL_SYSCLK_SYS_PWR_REG 0x1120 | ||
260 | #define EXYNOS3_MPLL_SYSCLK_SYS_PWR_REG 0x1124 | ||
261 | #define EXYNOS3_VPLL_SYSCLK_SYS_PWR_REG 0x1128 | ||
262 | #define EXYNOS3_EPLL_SYSCLK_SYS_PWR_REG 0x112C | ||
263 | #define EXYNOS3_MPLLUSER_SYSCLK_SYS_PWR_REG 0x1130 | ||
264 | #define EXYNOS3_BPLLUSER_SYSCLK_SYS_PWR_REG 0x1134 | ||
265 | #define EXYNOS3_EPLLUSER_SYSCLK_SYS_PWR_REG 0x1138 | ||
266 | #define EXYNOS3_CMU_CLKSTOP_CAM_SYS_PWR_REG 0x1140 | ||
267 | #define EXYNOS3_CMU_CLKSTOP_MFC_SYS_PWR_REG 0x1148 | ||
268 | #define EXYNOS3_CMU_CLKSTOP_G3D_SYS_PWR_REG 0x114C | ||
269 | #define EXYNOS3_CMU_CLKSTOP_LCD0_SYS_PWR_REG 0x1150 | ||
270 | #define EXYNOS3_CMU_CLKSTOP_ISP_SYS_PWR_REG 0x1154 | ||
271 | #define EXYNOS3_CMU_CLKSTOP_MAUDIO_SYS_PWR_REG 0x1158 | ||
272 | #define EXYNOS3_CMU_RESET_CAM_SYS_PWR_REG 0x1160 | ||
273 | #define EXYNOS3_CMU_RESET_MFC_SYS_PWR_REG 0x1168 | ||
274 | #define EXYNOS3_CMU_RESET_G3D_SYS_PWR_REG 0x116C | ||
275 | #define EXYNOS3_CMU_RESET_LCD0_SYS_PWR_REG 0x1170 | ||
276 | #define EXYNOS3_CMU_RESET_ISP_SYS_PWR_REG 0x1174 | ||
277 | #define EXYNOS3_CMU_RESET_MAUDIO_SYS_PWR_REG 0x1178 | ||
278 | #define EXYNOS3_TOP_BUS_SYS_PWR_REG 0x1180 | ||
279 | #define EXYNOS3_TOP_RETENTION_SYS_PWR_REG 0x1184 | ||
280 | #define EXYNOS3_TOP_PWR_SYS_PWR_REG 0x1188 | ||
281 | #define EXYNOS3_TOP_BUS_COREBLK_SYS_PWR_REG 0x1190 | ||
282 | #define EXYNOS3_TOP_RETENTION_COREBLK_SYS_PWR_REG 0x1194 | ||
283 | #define EXYNOS3_TOP_PWR_COREBLK_SYS_PWR_REG 0x1198 | ||
284 | #define EXYNOS3_LOGIC_RESET_SYS_PWR_REG 0x11A0 | ||
285 | #define EXYNOS3_OSCCLK_GATE_SYS_PWR_REG 0x11A4 | ||
286 | #define EXYNOS3_LOGIC_RESET_COREBLK_SYS_PWR_REG 0x11B0 | ||
287 | #define EXYNOS3_OSCCLK_GATE_COREBLK_SYS_PWR_REG 0x11B4 | ||
288 | #define EXYNOS3_PAD_RETENTION_DRAM_SYS_PWR_REG 0x1200 | ||
289 | #define EXYNOS3_PAD_RETENTION_MAUDIO_SYS_PWR_REG 0x1204 | ||
290 | #define EXYNOS3_PAD_RETENTION_SPI_SYS_PWR_REG 0x1208 | ||
291 | #define EXYNOS3_PAD_RETENTION_MMC2_SYS_PWR_REG 0x1218 | ||
292 | #define EXYNOS3_PAD_RETENTION_GPIO_SYS_PWR_REG 0x1220 | ||
293 | #define EXYNOS3_PAD_RETENTION_UART_SYS_PWR_REG 0x1224 | ||
294 | #define EXYNOS3_PAD_RETENTION_MMC0_SYS_PWR_REG 0x1228 | ||
295 | #define EXYNOS3_PAD_RETENTION_MMC1_SYS_PWR_REG 0x122C | ||
296 | #define EXYNOS3_PAD_RETENTION_EBIA_SYS_PWR_REG 0x1230 | ||
297 | #define EXYNOS3_PAD_RETENTION_EBIB_SYS_PWR_REG 0x1234 | ||
298 | #define EXYNOS3_PAD_RETENTION_JTAG_SYS_PWR_REG 0x1238 | ||
299 | #define EXYNOS3_PAD_ISOLATION_SYS_PWR_REG 0x1240 | ||
300 | #define EXYNOS3_PAD_ALV_SEL_SYS_PWR_REG 0x1260 | ||
301 | #define EXYNOS3_XUSBXTI_SYS_PWR_REG 0x1280 | ||
302 | #define EXYNOS3_XXTI_SYS_PWR_REG 0x1284 | ||
303 | #define EXYNOS3_EXT_REGULATOR_SYS_PWR_REG 0x12C0 | ||
304 | #define EXYNOS3_EXT_REGULATOR_COREBLK_SYS_PWR_REG 0x12C4 | ||
305 | #define EXYNOS3_GPIO_MODE_SYS_PWR_REG 0x1300 | ||
306 | #define EXYNOS3_GPIO_MODE_MAUDIO_SYS_PWR_REG 0x1340 | ||
307 | #define EXYNOS3_TOP_ASB_RESET_SYS_PWR_REG 0x1344 | ||
308 | #define EXYNOS3_TOP_ASB_ISOLATION_SYS_PWR_REG 0x1348 | ||
309 | #define EXYNOS3_TOP_ASB_RESET_COREBLK_SYS_PWR_REG 0x1350 | ||
310 | #define EXYNOS3_TOP_ASB_ISOLATION_COREBLK_SYS_PWR_REG 0x1354 | ||
311 | #define EXYNOS3_CAM_SYS_PWR_REG 0x1380 | ||
312 | #define EXYNOS3_MFC_SYS_PWR_REG 0x1388 | ||
313 | #define EXYNOS3_G3D_SYS_PWR_REG 0x138C | ||
314 | #define EXYNOS3_LCD0_SYS_PWR_REG 0x1390 | ||
315 | #define EXYNOS3_ISP_SYS_PWR_REG 0x1394 | ||
316 | #define EXYNOS3_MAUDIO_SYS_PWR_REG 0x1398 | ||
317 | #define EXYNOS3_DRAM_FREQ_DOWN_SYS_PWR_REG 0x13B0 | ||
318 | #define EXYNOS3_DDRPHY_DLLOFF_SYS_PWR_REG 0x13B4 | ||
319 | #define EXYNOS3_CMU_SYSCLK_ISP_SYS_PWR_REG 0x13B8 | ||
320 | #define EXYNOS3_LPDDR_PHY_DLL_LOCK_SYS_PWR_REG 0x13C0 | ||
321 | #define EXYNOS3_BPLL_SYSCLK_SYS_PWR_REG 0x13C4 | ||
322 | #define EXYNOS3_UPLL_SYSCLK_SYS_PWR_REG 0x13C8 | ||
323 | |||
324 | #define EXYNOS3_ARM_CORE0_OPTION 0x2008 | ||
325 | #define EXYNOS3_ARM_CORE_OPTION(_nr) \ | ||
326 | (EXYNOS3_ARM_CORE0_OPTION + ((_nr) * 0x80)) | ||
327 | |||
328 | #define EXYNOS3_ARM_COMMON_OPTION 0x2408 | ||
329 | #define EXYNOS3_TOP_PWR_OPTION 0x2C48 | ||
330 | #define EXYNOS3_CORE_TOP_PWR_OPTION 0x2CA8 | ||
331 | #define EXYNOS3_XUSBXTI_DURATION 0x341C | ||
332 | #define EXYNOS3_XXTI_DURATION 0x343C | ||
333 | #define EXYNOS3_EXT_REGULATOR_DURATION 0x361C | ||
334 | #define EXYNOS3_EXT_REGULATOR_COREBLK_DURATION 0x363C | ||
335 | #define XUSBXTI_DURATION 0x00000BB8 | ||
336 | #define XXTI_DURATION XUSBXTI_DURATION | ||
337 | #define EXT_REGULATOR_DURATION 0x00001D4C | ||
338 | #define EXT_REGULATOR_COREBLK_DURATION EXT_REGULATOR_DURATION | ||
339 | |||
340 | /* for XXX_OPTION */ | ||
341 | #define EXYNOS3_OPTION_USE_SC_COUNTER (1 << 0) | ||
342 | #define EXYNOS3_OPTION_USE_SC_FEEDBACK (1 << 1) | ||
343 | #define EXYNOS3_OPTION_SKIP_DEACTIVATE_ACEACP_IN_PWDN (1 << 7) | ||
344 | |||
188 | /* For EXYNOS5 */ | 345 | /* For EXYNOS5 */ |
189 | 346 | ||
190 | #define EXYNOS5_AUTO_WDTRESET_DISABLE 0x0408 | 347 | #define EXYNOS5_AUTO_WDTRESET_DISABLE 0x0408 |
191 | #define EXYNOS5_MASK_WDTRESET_REQUEST 0x040C | 348 | #define EXYNOS5_MASK_WDTRESET_REQUEST 0x040C |
192 | 349 | ||
350 | #define EXYNOS5_USE_RETENTION BIT(4) | ||
193 | #define EXYNOS5_SYS_WDTRESET (1 << 20) | 351 | #define EXYNOS5_SYS_WDTRESET (1 << 20) |
194 | 352 | ||
195 | #define EXYNOS5_ARM_CORE0_SYS_PWR_REG 0x1000 | 353 | #define EXYNOS5_ARM_CORE0_SYS_PWR_REG 0x1000 |
@@ -329,4 +487,204 @@ static inline unsigned int exynos_pmu_cpunr(unsigned int mpidr) | |||
329 | + MPIDR_AFFINITY_LEVEL(mpidr, 0)); | 487 | + MPIDR_AFFINITY_LEVEL(mpidr, 0)); |
330 | } | 488 | } |
331 | 489 | ||
490 | /* Only for EXYNOS5420 */ | ||
491 | #define EXYNOS5420_ISP_ARM_OPTION 0x2488 | ||
492 | #define EXYNOS5420_L2RSTDISABLE_VALUE BIT(3) | ||
493 | |||
494 | #define EXYNOS5420_LPI_MASK 0x0004 | ||
495 | #define EXYNOS5420_LPI_MASK1 0x0008 | ||
496 | #define EXYNOS5420_UFS BIT(8) | ||
497 | #define EXYNOS5420_ATB_KFC BIT(13) | ||
498 | #define EXYNOS5420_ATB_ISP_ARM BIT(19) | ||
499 | #define EXYNOS5420_EMULATION BIT(31) | ||
500 | #define ATB_ISP_ARM BIT(12) | ||
501 | #define ATB_KFC BIT(13) | ||
502 | #define ATB_NOC BIT(14) | ||
503 | |||
504 | #define EXYNOS5420_ARM_INTR_SPREAD_ENABLE 0x0100 | ||
505 | #define EXYNOS5420_ARM_INTR_SPREAD_USE_STANDBYWFI 0x0104 | ||
506 | #define EXYNOS5420_UP_SCHEDULER 0x0120 | ||
507 | #define SPREAD_ENABLE 0xF | ||
508 | #define SPREAD_USE_STANDWFI 0xF | ||
509 | |||
510 | #define EXYNOS5420_BB_CON1 0x0784 | ||
511 | #define EXYNOS5420_BB_SEL_EN BIT(31) | ||
512 | #define EXYNOS5420_BB_PMOS_EN BIT(7) | ||
513 | #define EXYNOS5420_BB_1300X 0XF | ||
514 | |||
515 | #define EXYNOS5420_ARM_CORE2_SYS_PWR_REG 0x1020 | ||
516 | #define EXYNOS5420_DIS_IRQ_ARM_CORE2_LOCAL_SYS_PWR_REG 0x1024 | ||
517 | #define EXYNOS5420_DIS_IRQ_ARM_CORE2_CENTRAL_SYS_PWR_REG 0x1028 | ||
518 | #define EXYNOS5420_ARM_CORE3_SYS_PWR_REG 0x1030 | ||
519 | #define EXYNOS5420_DIS_IRQ_ARM_CORE3_LOCAL_SYS_PWR_REG 0x1034 | ||
520 | #define EXYNOS5420_DIS_IRQ_ARM_CORE3_CENTRAL_SYS_PWR_REG 0x1038 | ||
521 | #define EXYNOS5420_KFC_CORE0_SYS_PWR_REG 0x1040 | ||
522 | #define EXYNOS5420_DIS_IRQ_KFC_CORE0_LOCAL_SYS_PWR_REG 0x1044 | ||
523 | #define EXYNOS5420_DIS_IRQ_KFC_CORE0_CENTRAL_SYS_PWR_REG 0x1048 | ||
524 | #define EXYNOS5420_KFC_CORE1_SYS_PWR_REG 0x1050 | ||
525 | #define EXYNOS5420_DIS_IRQ_KFC_CORE1_LOCAL_SYS_PWR_REG 0x1054 | ||
526 | #define EXYNOS5420_DIS_IRQ_KFC_CORE1_CENTRAL_SYS_PWR_REG 0x1058 | ||
527 | #define EXYNOS5420_KFC_CORE2_SYS_PWR_REG 0x1060 | ||
528 | #define EXYNOS5420_DIS_IRQ_KFC_CORE2_LOCAL_SYS_PWR_REG 0x1064 | ||
529 | #define EXYNOS5420_DIS_IRQ_KFC_CORE2_CENTRAL_SYS_PWR_REG 0x1068 | ||
530 | #define EXYNOS5420_KFC_CORE3_SYS_PWR_REG 0x1070 | ||
531 | #define EXYNOS5420_DIS_IRQ_KFC_CORE3_LOCAL_SYS_PWR_REG 0x1074 | ||
532 | #define EXYNOS5420_DIS_IRQ_KFC_CORE3_CENTRAL_SYS_PWR_REG 0x1078 | ||
533 | #define EXYNOS5420_ISP_ARM_SYS_PWR_REG 0x1090 | ||
534 | #define EXYNOS5420_DIS_IRQ_ISP_ARM_LOCAL_SYS_PWR_REG 0x1094 | ||
535 | #define EXYNOS5420_DIS_IRQ_ISP_ARM_CENTRAL_SYS_PWR_REG 0x1098 | ||
536 | #define EXYNOS5420_ARM_COMMON_SYS_PWR_REG 0x10A0 | ||
537 | #define EXYNOS5420_KFC_COMMON_SYS_PWR_REG 0x10B0 | ||
538 | #define EXYNOS5420_KFC_L2_SYS_PWR_REG 0x10D0 | ||
539 | #define EXYNOS5420_DPLL_SYSCLK_SYS_PWR_REG 0x1158 | ||
540 | #define EXYNOS5420_IPLL_SYSCLK_SYS_PWR_REG 0x115C | ||
541 | #define EXYNOS5420_KPLL_SYSCLK_SYS_PWR_REG 0x1160 | ||
542 | #define EXYNOS5420_RPLL_SYSCLK_SYS_PWR_REG 0x1174 | ||
543 | #define EXYNOS5420_SPLL_SYSCLK_SYS_PWR_REG 0x1178 | ||
544 | #define EXYNOS5420_INTRAM_MEM_SYS_PWR_REG 0x11B8 | ||
545 | #define EXYNOS5420_INTROM_MEM_SYS_PWR_REG 0x11BC | ||
546 | #define EXYNOS5420_ONENANDXL_MEM_SYS_PWR 0x11C0 | ||
547 | #define EXYNOS5420_USBDEV_MEM_SYS_PWR 0x11CC | ||
548 | #define EXYNOS5420_USBDEV1_MEM_SYS_PWR 0x11D0 | ||
549 | #define EXYNOS5420_SDMMC_MEM_SYS_PWR 0x11D4 | ||
550 | #define EXYNOS5420_CSSYS_MEM_SYS_PWR 0x11D8 | ||
551 | #define EXYNOS5420_SECSS_MEM_SYS_PWR 0x11DC | ||
552 | #define EXYNOS5420_ROTATOR_MEM_SYS_PWR 0x11E0 | ||
553 | #define EXYNOS5420_INTRAM_MEM_SYS_PWR 0x11E4 | ||
554 | #define EXYNOS5420_INTROM_MEM_SYS_PWR 0x11E8 | ||
555 | #define EXYNOS5420_PAD_RETENTION_JTAG_SYS_PWR_REG 0x1208 | ||
556 | #define EXYNOS5420_PAD_RETENTION_DRAM_SYS_PWR_REG 0x1210 | ||
557 | #define EXYNOS5420_PAD_RETENTION_UART_SYS_PWR_REG 0x1214 | ||
558 | #define EXYNOS5420_PAD_RETENTION_MMC0_SYS_PWR_REG 0x1218 | ||
559 | #define EXYNOS5420_PAD_RETENTION_MMC1_SYS_PWR_REG 0x121C | ||
560 | #define EXYNOS5420_PAD_RETENTION_MMC2_SYS_PWR_REG 0x1220 | ||
561 | #define EXYNOS5420_PAD_RETENTION_HSI_SYS_PWR_REG 0x1224 | ||
562 | #define EXYNOS5420_PAD_RETENTION_EBIA_SYS_PWR_REG 0x1228 | ||
563 | #define EXYNOS5420_PAD_RETENTION_EBIB_SYS_PWR_REG 0x122C | ||
564 | #define EXYNOS5420_PAD_RETENTION_SPI_SYS_PWR_REG 0x1230 | ||
565 | #define EXYNOS5420_PAD_RETENTION_DRAM_COREBLK_SYS_PWR_REG 0x1234 | ||
566 | #define EXYNOS5420_DISP1_SYS_PWR_REG 0x1410 | ||
567 | #define EXYNOS5420_MAU_SYS_PWR_REG 0x1414 | ||
568 | #define EXYNOS5420_G2D_SYS_PWR_REG 0x1418 | ||
569 | #define EXYNOS5420_MSC_SYS_PWR_REG 0x141C | ||
570 | #define EXYNOS5420_FSYS_SYS_PWR_REG 0x1420 | ||
571 | #define EXYNOS5420_FSYS2_SYS_PWR_REG 0x1424 | ||
572 | #define EXYNOS5420_PSGEN_SYS_PWR_REG 0x1428 | ||
573 | #define EXYNOS5420_PERIC_SYS_PWR_REG 0x142C | ||
574 | #define EXYNOS5420_WCORE_SYS_PWR_REG 0x1430 | ||
575 | #define EXYNOS5420_CMU_CLKSTOP_DISP1_SYS_PWR_REG 0x1490 | ||
576 | #define EXYNOS5420_CMU_CLKSTOP_MAU_SYS_PWR_REG 0x1494 | ||
577 | #define EXYNOS5420_CMU_CLKSTOP_G2D_SYS_PWR_REG 0x1498 | ||
578 | #define EXYNOS5420_CMU_CLKSTOP_MSC_SYS_PWR_REG 0x149C | ||
579 | #define EXYNOS5420_CMU_CLKSTOP_FSYS_SYS_PWR_REG 0x14A0 | ||
580 | #define EXYNOS5420_CMU_CLKSTOP_FSYS2_SYS_PWR_REG 0x14A4 | ||
581 | #define EXYNOS5420_CMU_CLKSTOP_PSGEN_SYS_PWR_REG 0x14A8 | ||
582 | #define EXYNOS5420_CMU_CLKSTOP_PERIC_SYS_PWR_REG 0x14AC | ||
583 | #define EXYNOS5420_CMU_CLKSTOP_WCORE_SYS_PWR_REG 0x14B0 | ||
584 | #define EXYNOS5420_CMU_SYSCLK_TOPPWR_SYS_PWR_REG 0x14BC | ||
585 | #define EXYNOS5420_CMU_SYSCLK_DISP1_SYS_PWR_REG 0x14D0 | ||
586 | #define EXYNOS5420_CMU_SYSCLK_MAU_SYS_PWR_REG 0x14D4 | ||
587 | #define EXYNOS5420_CMU_SYSCLK_G2D_SYS_PWR_REG 0x14D8 | ||
588 | #define EXYNOS5420_CMU_SYSCLK_MSC_SYS_PWR_REG 0x14DC | ||
589 | #define EXYNOS5420_CMU_SYSCLK_FSYS_SYS_PWR_REG 0x14E0 | ||
590 | #define EXYNOS5420_CMU_SYSCLK_FSYS2_SYS_PWR_REG 0x14E4 | ||
591 | #define EXYNOS5420_CMU_SYSCLK_PSGEN_SYS_PWR_REG 0x14E8 | ||
592 | #define EXYNOS5420_CMU_SYSCLK_PERIC_SYS_PWR_REG 0x14EC | ||
593 | #define EXYNOS5420_CMU_SYSCLK_WCORE_SYS_PWR_REG 0x14F0 | ||
594 | #define EXYNOS5420_CMU_SYSCLK_SYSMEM_TOPPWR_SYS_PWR_REG 0x14F4 | ||
595 | #define EXYNOS5420_CMU_RESET_FSYS2_SYS_PWR_REG 0x1570 | ||
596 | #define EXYNOS5420_CMU_RESET_PSGEN_SYS_PWR_REG 0x1574 | ||
597 | #define EXYNOS5420_CMU_RESET_PERIC_SYS_PWR_REG 0x1578 | ||
598 | #define EXYNOS5420_CMU_RESET_WCORE_SYS_PWR_REG 0x157C | ||
599 | #define EXYNOS5420_CMU_RESET_DISP1_SYS_PWR_REG 0x1590 | ||
600 | #define EXYNOS5420_CMU_RESET_MAU_SYS_PWR_REG 0x1594 | ||
601 | #define EXYNOS5420_CMU_RESET_G2D_SYS_PWR_REG 0x1598 | ||
602 | #define EXYNOS5420_CMU_RESET_MSC_SYS_PWR_REG 0x159C | ||
603 | #define EXYNOS5420_CMU_RESET_FSYS_SYS_PWR_REG 0x15A0 | ||
604 | #define EXYNOS5420_SFR_AXI_CGDIS1 0x15E4 | ||
605 | #define EXYNOS_ARM_CORE2_CONFIGURATION 0x2100 | ||
606 | #define EXYNOS5420_ARM_CORE2_OPTION 0x2108 | ||
607 | #define EXYNOS_ARM_CORE3_CONFIGURATION 0x2180 | ||
608 | #define EXYNOS5420_ARM_CORE3_OPTION 0x2188 | ||
609 | #define EXYNOS5420_ARM_COMMON_STATUS 0x2504 | ||
610 | #define EXYNOS5420_ARM_COMMON_OPTION 0x2508 | ||
611 | #define EXYNOS5420_KFC_COMMON_STATUS 0x2584 | ||
612 | #define EXYNOS5420_KFC_COMMON_OPTION 0x2588 | ||
613 | #define EXYNOS5420_LOGIC_RESET_DURATION3 0x2D1C | ||
614 | |||
615 | #define EXYNOS5420_PAD_RET_GPIO_OPTION 0x30C8 | ||
616 | #define EXYNOS5420_PAD_RET_UART_OPTION 0x30E8 | ||
617 | #define EXYNOS5420_PAD_RET_MMCA_OPTION 0x3108 | ||
618 | #define EXYNOS5420_PAD_RET_MMCB_OPTION 0x3128 | ||
619 | #define EXYNOS5420_PAD_RET_MMCC_OPTION 0x3148 | ||
620 | #define EXYNOS5420_PAD_RET_HSI_OPTION 0x3168 | ||
621 | #define EXYNOS5420_PAD_RET_SPI_OPTION 0x31C8 | ||
622 | #define EXYNOS5420_PAD_RET_DRAM_COREBLK_OPTION 0x31E8 | ||
623 | #define EXYNOS_PAD_RET_DRAM_OPTION 0x3008 | ||
624 | #define EXYNOS_PAD_RET_MAUDIO_OPTION 0x3028 | ||
625 | #define EXYNOS_PAD_RET_JTAG_OPTION 0x3048 | ||
626 | #define EXYNOS_PAD_RET_GPIO_OPTION 0x3108 | ||
627 | #define EXYNOS_PAD_RET_UART_OPTION 0x3128 | ||
628 | #define EXYNOS_PAD_RET_MMCA_OPTION 0x3148 | ||
629 | #define EXYNOS_PAD_RET_MMCB_OPTION 0x3168 | ||
630 | #define EXYNOS_PAD_RET_EBIA_OPTION 0x3188 | ||
631 | #define EXYNOS_PAD_RET_EBIB_OPTION 0x31A8 | ||
632 | |||
633 | #define EXYNOS_PS_HOLD_CONTROL 0x330C | ||
634 | |||
635 | /* For SYS_PWR_REG */ | ||
636 | #define EXYNOS_SYS_PWR_CFG BIT(0) | ||
637 | |||
638 | #define EXYNOS5420_MFC_CONFIGURATION 0x4060 | ||
639 | #define EXYNOS5420_MFC_STATUS 0x4064 | ||
640 | #define EXYNOS5420_MFC_OPTION 0x4068 | ||
641 | #define EXYNOS5420_G3D_CONFIGURATION 0x4080 | ||
642 | #define EXYNOS5420_G3D_STATUS 0x4084 | ||
643 | #define EXYNOS5420_G3D_OPTION 0x4088 | ||
644 | #define EXYNOS5420_DISP0_CONFIGURATION 0x40A0 | ||
645 | #define EXYNOS5420_DISP0_STATUS 0x40A4 | ||
646 | #define EXYNOS5420_DISP0_OPTION 0x40A8 | ||
647 | #define EXYNOS5420_DISP1_CONFIGURATION 0x40C0 | ||
648 | #define EXYNOS5420_DISP1_STATUS 0x40C4 | ||
649 | #define EXYNOS5420_DISP1_OPTION 0x40C8 | ||
650 | #define EXYNOS5420_MAU_CONFIGURATION 0x40E0 | ||
651 | #define EXYNOS5420_MAU_STATUS 0x40E4 | ||
652 | #define EXYNOS5420_MAU_OPTION 0x40E8 | ||
653 | #define EXYNOS5420_FSYS2_OPTION 0x4168 | ||
654 | #define EXYNOS5420_PSGEN_OPTION 0x4188 | ||
655 | |||
656 | /* For EXYNOS_CENTRAL_SEQ_OPTION */ | ||
657 | #define EXYNOS5_USE_STANDBYWFI_ARM_CORE0 BIT(16) | ||
658 | #define EXYNOS5_USE_STANDBYWFI_ARM_CORE1 BUT(17) | ||
659 | #define EXYNOS5_USE_STANDBYWFE_ARM_CORE0 BIT(24) | ||
660 | #define EXYNOS5_USE_STANDBYWFE_ARM_CORE1 BIT(25) | ||
661 | |||
662 | #define EXYNOS5420_ARM_USE_STANDBY_WFI0 BIT(4) | ||
663 | #define EXYNOS5420_ARM_USE_STANDBY_WFI1 BIT(5) | ||
664 | #define EXYNOS5420_ARM_USE_STANDBY_WFI2 BIT(6) | ||
665 | #define EXYNOS5420_ARM_USE_STANDBY_WFI3 BIT(7) | ||
666 | #define EXYNOS5420_KFC_USE_STANDBY_WFI0 BIT(8) | ||
667 | #define EXYNOS5420_KFC_USE_STANDBY_WFI1 BIT(9) | ||
668 | #define EXYNOS5420_KFC_USE_STANDBY_WFI2 BIT(10) | ||
669 | #define EXYNOS5420_KFC_USE_STANDBY_WFI3 BIT(11) | ||
670 | #define EXYNOS5420_ARM_USE_STANDBY_WFE0 BIT(16) | ||
671 | #define EXYNOS5420_ARM_USE_STANDBY_WFE1 BIT(17) | ||
672 | #define EXYNOS5420_ARM_USE_STANDBY_WFE2 BIT(18) | ||
673 | #define EXYNOS5420_ARM_USE_STANDBY_WFE3 BIT(19) | ||
674 | #define EXYNOS5420_KFC_USE_STANDBY_WFE0 BIT(20) | ||
675 | #define EXYNOS5420_KFC_USE_STANDBY_WFE1 BIT(21) | ||
676 | #define EXYNOS5420_KFC_USE_STANDBY_WFE2 BIT(22) | ||
677 | #define EXYNOS5420_KFC_USE_STANDBY_WFE3 BIT(23) | ||
678 | |||
679 | #define DUR_WAIT_RESET 0xF | ||
680 | |||
681 | #define EXYNOS5420_USE_STANDBY_WFI_ALL (EXYNOS5420_ARM_USE_STANDBY_WFI0 \ | ||
682 | | EXYNOS5420_ARM_USE_STANDBY_WFI1 \ | ||
683 | | EXYNOS5420_ARM_USE_STANDBY_WFI2 \ | ||
684 | | EXYNOS5420_ARM_USE_STANDBY_WFI3 \ | ||
685 | | EXYNOS5420_KFC_USE_STANDBY_WFI0 \ | ||
686 | | EXYNOS5420_KFC_USE_STANDBY_WFI1 \ | ||
687 | | EXYNOS5420_KFC_USE_STANDBY_WFI2 \ | ||
688 | | EXYNOS5420_KFC_USE_STANDBY_WFI3) | ||
689 | |||
332 | #endif /* __ASM_ARCH_REGS_PMU_H */ | 690 | #endif /* __ASM_ARCH_REGS_PMU_H */ |