xref: /openbmc/linux/arch/arm/mach-omap2/prm-regbits-34xx.h (revision 2bc4ef71c5a3b6986b452d6c530777974d11ef4a)
1c595713dSTony Lindgren #ifndef __ARCH_ARM_MACH_OMAP2_PRM_REGBITS_34XX_H
2c595713dSTony Lindgren #define __ARCH_ARM_MACH_OMAP2_PRM_REGBITS_34XX_H
3c595713dSTony Lindgren 
4c595713dSTony Lindgren /*
5c595713dSTony Lindgren  * OMAP3430 Power/Reset Management register bits
6c595713dSTony Lindgren  *
7c595713dSTony Lindgren  * Copyright (C) 2007-2008 Texas Instruments, Inc.
8c595713dSTony Lindgren  * Copyright (C) 2007-2008 Nokia Corporation
9c595713dSTony Lindgren  *
10c595713dSTony Lindgren  * Written by Paul Walmsley
11c595713dSTony Lindgren  *
12c595713dSTony Lindgren  * This program is free software; you can redistribute it and/or modify
13c595713dSTony Lindgren  * it under the terms of the GNU General Public License version 2 as
14c595713dSTony Lindgren  * published by the Free Software Foundation.
15c595713dSTony Lindgren  */
16c595713dSTony Lindgren 
17c595713dSTony Lindgren #include "prm.h"
18c595713dSTony Lindgren 
19c595713dSTony Lindgren /* Shared register bits */
20c595713dSTony Lindgren 
21c595713dSTony Lindgren /* PRM_VC_CMD_VAL_0, PRM_VC_CMD_VAL_1 shared bits */
22c595713dSTony Lindgren #define OMAP3430_ON_SHIFT				24
23c595713dSTony Lindgren #define OMAP3430_ON_MASK				(0xff << 24)
24c595713dSTony Lindgren #define OMAP3430_ONLP_SHIFT				16
25c595713dSTony Lindgren #define OMAP3430_ONLP_MASK				(0xff << 16)
26c595713dSTony Lindgren #define OMAP3430_RET_SHIFT				8
27c595713dSTony Lindgren #define OMAP3430_RET_MASK				(0xff << 8)
28c595713dSTony Lindgren #define OMAP3430_OFF_SHIFT				0
29c595713dSTony Lindgren #define OMAP3430_OFF_MASK				(0xff << 0)
30c595713dSTony Lindgren 
31c595713dSTony Lindgren /* PRM_VP1_CONFIG, PRM_VP2_CONFIG shared bits */
32c595713dSTony Lindgren #define OMAP3430_ERROROFFSET_SHIFT			24
33c595713dSTony Lindgren #define OMAP3430_ERROROFFSET_MASK			(0xff << 24)
34c595713dSTony Lindgren #define OMAP3430_ERRORGAIN_SHIFT			16
35c595713dSTony Lindgren #define OMAP3430_ERRORGAIN_MASK				(0xff << 16)
36c595713dSTony Lindgren #define OMAP3430_INITVOLTAGE_SHIFT			8
37c595713dSTony Lindgren #define OMAP3430_INITVOLTAGE_MASK			(0xff << 8)
38*2bc4ef71SPaul Walmsley #define OMAP3430_TIMEOUTEN_MASK				(1 << 3)
39*2bc4ef71SPaul Walmsley #define OMAP3430_INITVDD_MASK				(1 << 2)
40*2bc4ef71SPaul Walmsley #define OMAP3430_FORCEUPDATE_MASK			(1 << 1)
41*2bc4ef71SPaul Walmsley #define OMAP3430_VPENABLE_MASK				(1 << 0)
42c595713dSTony Lindgren 
43c595713dSTony Lindgren /* PRM_VP1_VSTEPMIN, PRM_VP2_VSTEPMIN shared bits */
44c595713dSTony Lindgren #define OMAP3430_SMPSWAITTIMEMIN_SHIFT			8
45c595713dSTony Lindgren #define OMAP3430_SMPSWAITTIMEMIN_MASK			(0xffff << 8)
46c595713dSTony Lindgren #define OMAP3430_VSTEPMIN_SHIFT				0
47c595713dSTony Lindgren #define OMAP3430_VSTEPMIN_MASK				(0xff << 0)
48c595713dSTony Lindgren 
49c595713dSTony Lindgren /* PRM_VP1_VSTEPMAX, PRM_VP2_VSTEPMAX shared bits */
50c595713dSTony Lindgren #define OMAP3430_SMPSWAITTIMEMAX_SHIFT			8
51c595713dSTony Lindgren #define OMAP3430_SMPSWAITTIMEMAX_MASK			(0xffff << 8)
52c595713dSTony Lindgren #define OMAP3430_VSTEPMAX_SHIFT				0
53c595713dSTony Lindgren #define OMAP3430_VSTEPMAX_MASK				(0xff << 0)
54c595713dSTony Lindgren 
55c595713dSTony Lindgren /* PRM_VP1_VLIMITTO, PRM_VP2_VLIMITTO shared bits */
56c595713dSTony Lindgren #define OMAP3430_VDDMAX_SHIFT				24
57c595713dSTony Lindgren #define OMAP3430_VDDMAX_MASK				(0xff << 24)
58c595713dSTony Lindgren #define OMAP3430_VDDMIN_SHIFT				16
59c595713dSTony Lindgren #define OMAP3430_VDDMIN_MASK				(0xff << 16)
60c595713dSTony Lindgren #define OMAP3430_TIMEOUT_SHIFT				0
61c595713dSTony Lindgren #define OMAP3430_TIMEOUT_MASK				(0xffff << 0)
62c595713dSTony Lindgren 
63c595713dSTony Lindgren /* PRM_VP1_VOLTAGE, PRM_VP2_VOLTAGE shared bits */
64c595713dSTony Lindgren #define OMAP3430_VPVOLTAGE_SHIFT			0
65c595713dSTony Lindgren #define OMAP3430_VPVOLTAGE_MASK				(0xff << 0)
66c595713dSTony Lindgren 
67c595713dSTony Lindgren /* PRM_VP1_STATUS, PRM_VP2_STATUS shared bits */
68*2bc4ef71SPaul Walmsley #define OMAP3430_VPINIDLE_MASK				(1 << 0)
69c595713dSTony Lindgren 
70c595713dSTony Lindgren /* PM_WKDEP_IVA2, PM_WKDEP_MPU shared bits */
71ecb24aa1SPaul Walmsley #define OMAP3430_EN_PER_SHIFT				7
72ecb24aa1SPaul Walmsley #define OMAP3430_EN_PER_MASK				(1 << 7)
73c595713dSTony Lindgren 
74c595713dSTony Lindgren /* PM_PWSTCTRL_IVA2, PM_PWSTCTRL_MPU, PM_PWSTCTRL_CORE shared bits */
75*2bc4ef71SPaul Walmsley #define OMAP3430_MEMORYCHANGE_MASK			(1 << 3)
76c595713dSTony Lindgren 
77c595713dSTony Lindgren /* PM_PWSTST_IVA2, PM_PWSTST_CORE shared bits */
78*2bc4ef71SPaul Walmsley #define OMAP3430_LOGICSTATEST_MASK			(1 << 2)
79c595713dSTony Lindgren 
80c595713dSTony Lindgren /* PM_PREPWSTST_IVA2, PM_PREPWSTST_CORE shared bits */
81*2bc4ef71SPaul Walmsley #define OMAP3430_LASTLOGICSTATEENTERED_MASK		(1 << 2)
82c595713dSTony Lindgren 
83c595713dSTony Lindgren /*
84c595713dSTony Lindgren  * PM_PREPWSTST_IVA2, PM_PREPWSTST_MPU, PM_PREPWSTST_CORE,
85c595713dSTony Lindgren  * PM_PREPWSTST_GFX, PM_PREPWSTST_DSS, PM_PREPWSTST_CAM,
86c595713dSTony Lindgren  * PM_PREPWSTST_PER, PM_PREPWSTST_NEON shared bits
87c595713dSTony Lindgren  */
88c595713dSTony Lindgren #define OMAP3430_LASTPOWERSTATEENTERED_SHIFT		0
89c595713dSTony Lindgren #define OMAP3430_LASTPOWERSTATEENTERED_MASK		(0x3 << 0)
90c595713dSTony Lindgren 
91c595713dSTony Lindgren /* PRM_IRQSTATUS_IVA2, PRM_IRQSTATUS_MPU shared bits */
92*2bc4ef71SPaul Walmsley #define OMAP3430_WKUP_ST_MASK				(1 << 0)
93c595713dSTony Lindgren 
94c595713dSTony Lindgren /* PRM_IRQENABLE_IVA2, PRM_IRQENABLE_MPU shared bits */
95*2bc4ef71SPaul Walmsley #define OMAP3430_WKUP_EN_MASK				(1 << 0)
96c595713dSTony Lindgren 
97c595713dSTony Lindgren /* PM_MPUGRPSEL1_CORE, PM_IVA2GRPSEL1_CORE shared bits */
98*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_MMC2_MASK			(1 << 25)
99*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_MMC1_MASK			(1 << 24)
100*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_MCSPI4_MASK			(1 << 21)
101*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_MCSPI3_MASK			(1 << 20)
102*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_MCSPI2_MASK			(1 << 19)
103*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_MCSPI1_MASK			(1 << 18)
104*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_I2C3_MASK			(1 << 17)
105*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_I2C2_MASK			(1 << 16)
106*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_I2C1_MASK			(1 << 15)
107*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_UART2_MASK			(1 << 14)
108*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_UART1_MASK			(1 << 13)
109*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPT11_MASK			(1 << 12)
110*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPT10_MASK			(1 << 11)
111*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_MCBSP5_MASK			(1 << 10)
112*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_MCBSP1_MASK			(1 << 9)
113*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_HSOTGUSB_MASK			(1 << 4)
114*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_D2D_MASK			(1 << 3)
115c595713dSTony Lindgren 
116c595713dSTony Lindgren /*
117c595713dSTony Lindgren  * PM_PWSTCTRL_GFX, PM_PWSTCTRL_DSS, PM_PWSTCTRL_CAM,
118c595713dSTony Lindgren  * PM_PWSTCTRL_PER shared bits
119c595713dSTony Lindgren  */
120c595713dSTony Lindgren #define OMAP3430_MEMONSTATE_SHIFT			16
121c595713dSTony Lindgren #define OMAP3430_MEMONSTATE_MASK			(0x3 << 16)
122*2bc4ef71SPaul Walmsley #define OMAP3430_MEMRETSTATE_MASK			(1 << 8)
123c595713dSTony Lindgren 
124c595713dSTony Lindgren /* PM_MPUGRPSEL_PER, PM_IVA2GRPSEL_PER shared bits */
125*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPIO6_MASK			(1 << 17)
126*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPIO5_MASK			(1 << 16)
127*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPIO4_MASK			(1 << 15)
128*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPIO3_MASK			(1 << 14)
129*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPIO2_MASK			(1 << 13)
130*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_UART3_MASK			(1 << 11)
131*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPT9_MASK			(1 << 10)
132*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPT8_MASK			(1 << 9)
133*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPT7_MASK			(1 << 8)
134*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPT6_MASK			(1 << 7)
135*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPT5_MASK			(1 << 6)
136*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPT4_MASK			(1 << 5)
137*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPT3_MASK			(1 << 4)
138*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPT2_MASK			(1 << 3)
139*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_MCBSP4_MASK			(1 << 2)
140*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_MCBSP3_MASK			(1 << 1)
141*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_MCBSP2_MASK			(1 << 0)
142c595713dSTony Lindgren 
143c595713dSTony Lindgren /* PM_MPUGRPSEL_WKUP, PM_IVA2GRPSEL_WKUP shared bits */
144*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_IO_MASK				(1 << 8)
145*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_SR2_MASK			(1 << 7)
146*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_SR1_MASK			(1 << 6)
147*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPIO1_MASK			(1 << 3)
148*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPT12_MASK			(1 << 1)
149*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPT1_MASK			(1 << 0)
150c595713dSTony Lindgren 
151c595713dSTony Lindgren /* Bits specific to each register */
152c595713dSTony Lindgren 
153c595713dSTony Lindgren /* RM_RSTCTRL_IVA2 */
154*2bc4ef71SPaul Walmsley #define OMAP3430_RST3_IVA2_MASK				(1 << 2)
155*2bc4ef71SPaul Walmsley #define OMAP3430_RST2_IVA2_MASK				(1 << 1)
156*2bc4ef71SPaul Walmsley #define OMAP3430_RST1_IVA2_MASK				(1 << 0)
157c595713dSTony Lindgren 
158c595713dSTony Lindgren /* RM_RSTST_IVA2 specific bits */
159*2bc4ef71SPaul Walmsley #define OMAP3430_EMULATION_VSEQ_RST_MASK		(1 << 13)
160*2bc4ef71SPaul Walmsley #define OMAP3430_EMULATION_VHWA_RST_MASK		(1 << 12)
161*2bc4ef71SPaul Walmsley #define OMAP3430_EMULATION_IVA2_RST_MASK		(1 << 11)
162*2bc4ef71SPaul Walmsley #define OMAP3430_IVA2_SW_RST3_MASK			(1 << 10)
163*2bc4ef71SPaul Walmsley #define OMAP3430_IVA2_SW_RST2_MASK			(1 << 9)
164*2bc4ef71SPaul Walmsley #define OMAP3430_IVA2_SW_RST1_MASK			(1 << 8)
165c595713dSTony Lindgren 
166c595713dSTony Lindgren /* PM_WKDEP_IVA2 specific bits */
167c595713dSTony Lindgren 
168c595713dSTony Lindgren /* PM_PWSTCTRL_IVA2 specific bits */
169c595713dSTony Lindgren #define OMAP3430_L2FLATMEMONSTATE_SHIFT			22
170c595713dSTony Lindgren #define OMAP3430_L2FLATMEMONSTATE_MASK			(0x3 << 22)
171c595713dSTony Lindgren #define OMAP3430_SHAREDL2CACHEFLATONSTATE_SHIFT		20
172c595713dSTony Lindgren #define OMAP3430_SHAREDL2CACHEFLATONSTATE_MASK		(0x3 << 20)
173c595713dSTony Lindgren #define OMAP3430_L1FLATMEMONSTATE_SHIFT			18
174c595713dSTony Lindgren #define OMAP3430_L1FLATMEMONSTATE_MASK			(0x3 << 18)
175c595713dSTony Lindgren #define OMAP3430_SHAREDL1CACHEFLATONSTATE_SHIFT		16
176c595713dSTony Lindgren #define OMAP3430_SHAREDL1CACHEFLATONSTATE_MASK		(0x3 << 16)
177*2bc4ef71SPaul Walmsley #define OMAP3430_L2FLATMEMRETSTATE_MASK			(1 << 11)
178*2bc4ef71SPaul Walmsley #define OMAP3430_SHAREDL2CACHEFLATRETSTATE_MASK		(1 << 10)
179*2bc4ef71SPaul Walmsley #define OMAP3430_L1FLATMEMRETSTATE_MASK			(1 << 9)
180*2bc4ef71SPaul Walmsley #define OMAP3430_SHAREDL1CACHEFLATRETSTATE_MASK		(1 << 8)
181c595713dSTony Lindgren 
182c595713dSTony Lindgren /* PM_PWSTST_IVA2 specific bits */
183c595713dSTony Lindgren #define OMAP3430_L2FLATMEMSTATEST_SHIFT			10
184c595713dSTony Lindgren #define OMAP3430_L2FLATMEMSTATEST_MASK			(0x3 << 10)
185c595713dSTony Lindgren #define OMAP3430_SHAREDL2CACHEFLATSTATEST_SHIFT		8
186c595713dSTony Lindgren #define OMAP3430_SHAREDL2CACHEFLATSTATEST_MASK		(0x3 << 8)
187c595713dSTony Lindgren #define OMAP3430_L1FLATMEMSTATEST_SHIFT			6
188c595713dSTony Lindgren #define OMAP3430_L1FLATMEMSTATEST_MASK			(0x3 << 6)
189c595713dSTony Lindgren #define OMAP3430_SHAREDL1CACHEFLATSTATEST_SHIFT		4
190c595713dSTony Lindgren #define OMAP3430_SHAREDL1CACHEFLATSTATEST_MASK		(0x3 << 4)
191c595713dSTony Lindgren 
192c595713dSTony Lindgren /* PM_PREPWSTST_IVA2 specific bits */
193c595713dSTony Lindgren #define OMAP3430_LASTL2FLATMEMSTATEENTERED_SHIFT		10
194c595713dSTony Lindgren #define OMAP3430_LASTL2FLATMEMSTATEENTERED_MASK			(0x3 << 10)
195c595713dSTony Lindgren #define OMAP3430_LASTSHAREDL2CACHEFLATSTATEENTERED_SHIFT	8
196c595713dSTony Lindgren #define OMAP3430_LASTSHAREDL2CACHEFLATSTATEENTERED_MASK		(0x3 << 8)
197c595713dSTony Lindgren #define OMAP3430_LASTL1FLATMEMSTATEENTERED_SHIFT		6
198c595713dSTony Lindgren #define OMAP3430_LASTL1FLATMEMSTATEENTERED_MASK			(0x3 << 6)
199c595713dSTony Lindgren #define OMAP3430_LASTSHAREDL1CACHEFLATSTATEENTERED_SHIFT	4
200c595713dSTony Lindgren #define OMAP3430_LASTSHAREDL1CACHEFLATSTATEENTERED_MASK		(0x3 << 4)
201c595713dSTony Lindgren 
202c595713dSTony Lindgren /* PRM_IRQSTATUS_IVA2 specific bits */
203*2bc4ef71SPaul Walmsley #define OMAP3430_PRM_IRQSTATUS_IVA2_IVA2_DPLL_ST_MASK	(1 << 2)
204*2bc4ef71SPaul Walmsley #define OMAP3430_FORCEWKUP_ST_MASK			(1 << 1)
205c595713dSTony Lindgren 
206c595713dSTony Lindgren /* PRM_IRQENABLE_IVA2 specific bits */
207*2bc4ef71SPaul Walmsley #define OMAP3430_PRM_IRQENABLE_IVA2_IVA2_DPLL_RECAL_EN_MASK	(1 << 2)
208*2bc4ef71SPaul Walmsley #define OMAP3430_FORCEWKUP_EN_MASK				(1 << 1)
209c595713dSTony Lindgren 
210c595713dSTony Lindgren /* PRM_REVISION specific bits */
211c595713dSTony Lindgren 
212c595713dSTony Lindgren /* PRM_SYSCONFIG specific bits */
213c595713dSTony Lindgren 
214c595713dSTony Lindgren /* PRM_IRQSTATUS_MPU specific bits */
215c595713dSTony Lindgren #define OMAP3430ES2_SND_PERIPH_DPLL_ST_SHIFT		25
216*2bc4ef71SPaul Walmsley #define OMAP3430ES2_SND_PERIPH_DPLL_ST_MASK		(1 << 25)
217*2bc4ef71SPaul Walmsley #define OMAP3430_VC_TIMEOUTERR_ST_MASK			(1 << 24)
218*2bc4ef71SPaul Walmsley #define OMAP3430_VC_RAERR_ST_MASK			(1 << 23)
219*2bc4ef71SPaul Walmsley #define OMAP3430_VC_SAERR_ST_MASK			(1 << 22)
220*2bc4ef71SPaul Walmsley #define OMAP3430_VP2_TRANXDONE_ST_MASK			(1 << 21)
221*2bc4ef71SPaul Walmsley #define OMAP3430_VP2_EQVALUE_ST_MASK			(1 << 20)
222*2bc4ef71SPaul Walmsley #define OMAP3430_VP2_NOSMPSACK_ST_MASK			(1 << 19)
223*2bc4ef71SPaul Walmsley #define OMAP3430_VP2_MAXVDD_ST_MASK			(1 << 18)
224*2bc4ef71SPaul Walmsley #define OMAP3430_VP2_MINVDD_ST_MASK			(1 << 17)
225*2bc4ef71SPaul Walmsley #define OMAP3430_VP2_OPPCHANGEDONE_ST_MASK		(1 << 16)
226*2bc4ef71SPaul Walmsley #define OMAP3430_VP1_TRANXDONE_ST_MASK			(1 << 15)
227*2bc4ef71SPaul Walmsley #define OMAP3430_VP1_EQVALUE_ST_MASK			(1 << 14)
228*2bc4ef71SPaul Walmsley #define OMAP3430_VP1_NOSMPSACK_ST_MASK			(1 << 13)
229*2bc4ef71SPaul Walmsley #define OMAP3430_VP1_MAXVDD_ST_MASK			(1 << 12)
230*2bc4ef71SPaul Walmsley #define OMAP3430_VP1_MINVDD_ST_MASK			(1 << 11)
231*2bc4ef71SPaul Walmsley #define OMAP3430_VP1_OPPCHANGEDONE_ST_MASK		(1 << 10)
232*2bc4ef71SPaul Walmsley #define OMAP3430_IO_ST_MASK				(1 << 9)
233*2bc4ef71SPaul Walmsley #define OMAP3430_PRM_IRQSTATUS_MPU_IVA2_DPLL_ST_MASK	(1 << 8)
234c595713dSTony Lindgren #define OMAP3430_PRM_IRQSTATUS_MPU_IVA2_DPLL_ST_SHIFT	8
235*2bc4ef71SPaul Walmsley #define OMAP3430_MPU_DPLL_ST_MASK			(1 << 7)
236c595713dSTony Lindgren #define OMAP3430_MPU_DPLL_ST_SHIFT			7
237*2bc4ef71SPaul Walmsley #define OMAP3430_PERIPH_DPLL_ST_MASK			(1 << 6)
238c595713dSTony Lindgren #define OMAP3430_PERIPH_DPLL_ST_SHIFT			6
239*2bc4ef71SPaul Walmsley #define OMAP3430_CORE_DPLL_ST_MASK			(1 << 5)
240c595713dSTony Lindgren #define OMAP3430_CORE_DPLL_ST_SHIFT			5
241*2bc4ef71SPaul Walmsley #define OMAP3430_TRANSITION_ST_MASK			(1 << 4)
242*2bc4ef71SPaul Walmsley #define OMAP3430_EVGENOFF_ST_MASK			(1 << 3)
243*2bc4ef71SPaul Walmsley #define OMAP3430_EVGENON_ST_MASK			(1 << 2)
244*2bc4ef71SPaul Walmsley #define OMAP3430_FS_USB_WKUP_ST_MASK			(1 << 1)
245c595713dSTony Lindgren 
246c595713dSTony Lindgren /* PRM_IRQENABLE_MPU specific bits */
247c595713dSTony Lindgren #define OMAP3430ES2_SND_PERIPH_DPLL_RECAL_EN_SHIFT		25
248*2bc4ef71SPaul Walmsley #define OMAP3430ES2_SND_PERIPH_DPLL_RECAL_EN_MASK		(1 << 25)
249*2bc4ef71SPaul Walmsley #define OMAP3430_VC_TIMEOUTERR_EN_MASK				(1 << 24)
250*2bc4ef71SPaul Walmsley #define OMAP3430_VC_RAERR_EN_MASK				(1 << 23)
251*2bc4ef71SPaul Walmsley #define OMAP3430_VC_SAERR_EN_MASK				(1 << 22)
252*2bc4ef71SPaul Walmsley #define OMAP3430_VP2_TRANXDONE_EN_MASK				(1 << 21)
253*2bc4ef71SPaul Walmsley #define OMAP3430_VP2_EQVALUE_EN_MASK				(1 << 20)
254*2bc4ef71SPaul Walmsley #define OMAP3430_VP2_NOSMPSACK_EN_MASK				(1 << 19)
255*2bc4ef71SPaul Walmsley #define OMAP3430_VP2_MAXVDD_EN_MASK				(1 << 18)
256*2bc4ef71SPaul Walmsley #define OMAP3430_VP2_MINVDD_EN_MASK				(1 << 17)
257*2bc4ef71SPaul Walmsley #define OMAP3430_VP2_OPPCHANGEDONE_EN_MASK			(1 << 16)
258*2bc4ef71SPaul Walmsley #define OMAP3430_VP1_TRANXDONE_EN_MASK				(1 << 15)
259*2bc4ef71SPaul Walmsley #define OMAP3430_VP1_EQVALUE_EN_MASK				(1 << 14)
260*2bc4ef71SPaul Walmsley #define OMAP3430_VP1_NOSMPSACK_EN_MASK				(1 << 13)
261*2bc4ef71SPaul Walmsley #define OMAP3430_VP1_MAXVDD_EN_MASK				(1 << 12)
262*2bc4ef71SPaul Walmsley #define OMAP3430_VP1_MINVDD_EN_MASK				(1 << 11)
263*2bc4ef71SPaul Walmsley #define OMAP3430_VP1_OPPCHANGEDONE_EN_MASK			(1 << 10)
264*2bc4ef71SPaul Walmsley #define OMAP3430_IO_EN_MASK					(1 << 9)
265*2bc4ef71SPaul Walmsley #define OMAP3430_PRM_IRQENABLE_MPU_IVA2_DPLL_RECAL_EN_MASK	(1 << 8)
266c595713dSTony Lindgren #define OMAP3430_PRM_IRQENABLE_MPU_IVA2_DPLL_RECAL_EN_SHIFT	8
267*2bc4ef71SPaul Walmsley #define OMAP3430_MPU_DPLL_RECAL_EN_MASK				(1 << 7)
268c595713dSTony Lindgren #define OMAP3430_MPU_DPLL_RECAL_EN_SHIFT			7
269*2bc4ef71SPaul Walmsley #define OMAP3430_PERIPH_DPLL_RECAL_EN_MASK			(1 << 6)
270c595713dSTony Lindgren #define OMAP3430_PERIPH_DPLL_RECAL_EN_SHIFT			6
271*2bc4ef71SPaul Walmsley #define OMAP3430_CORE_DPLL_RECAL_EN_MASK			(1 << 5)
272c595713dSTony Lindgren #define OMAP3430_CORE_DPLL_RECAL_EN_SHIFT			5
273*2bc4ef71SPaul Walmsley #define OMAP3430_TRANSITION_EN_MASK				(1 << 4)
274*2bc4ef71SPaul Walmsley #define OMAP3430_EVGENOFF_EN_MASK				(1 << 3)
275*2bc4ef71SPaul Walmsley #define OMAP3430_EVGENON_EN_MASK				(1 << 2)
276*2bc4ef71SPaul Walmsley #define OMAP3430_FS_USB_WKUP_EN_MASK				(1 << 1)
277c595713dSTony Lindgren 
278c595713dSTony Lindgren /* RM_RSTST_MPU specific bits */
279*2bc4ef71SPaul Walmsley #define OMAP3430_EMULATION_MPU_RST_MASK			(1 << 11)
280c595713dSTony Lindgren 
281c595713dSTony Lindgren /* PM_WKDEP_MPU specific bits */
282ecb24aa1SPaul Walmsley #define OMAP3430_PM_WKDEP_MPU_EN_DSS_SHIFT		5
283ecb24aa1SPaul Walmsley #define OMAP3430_PM_WKDEP_MPU_EN_DSS_MASK		(1 << 5)
284ecb24aa1SPaul Walmsley #define OMAP3430_PM_WKDEP_MPU_EN_IVA2_SHIFT		2
285ecb24aa1SPaul Walmsley #define OMAP3430_PM_WKDEP_MPU_EN_IVA2_MASK		(1 << 2)
286c595713dSTony Lindgren 
287c595713dSTony Lindgren /* PM_EVGENCTRL_MPU */
288c595713dSTony Lindgren #define OMAP3430_OFFLOADMODE_SHIFT			3
289c595713dSTony Lindgren #define OMAP3430_OFFLOADMODE_MASK			(0x3 << 3)
290c595713dSTony Lindgren #define OMAP3430_ONLOADMODE_SHIFT			1
291c595713dSTony Lindgren #define OMAP3430_ONLOADMODE_MASK			(0x3 << 1)
292*2bc4ef71SPaul Walmsley #define OMAP3430_ENABLE_MASK				(1 << 0)
293c595713dSTony Lindgren 
294c595713dSTony Lindgren /* PM_EVGENONTIM_MPU */
295c595713dSTony Lindgren #define OMAP3430_ONTIMEVAL_SHIFT			0
296c595713dSTony Lindgren #define OMAP3430_ONTIMEVAL_MASK				(0xffffffff << 0)
297c595713dSTony Lindgren 
298c595713dSTony Lindgren /* PM_EVGENOFFTIM_MPU */
299c595713dSTony Lindgren #define OMAP3430_OFFTIMEVAL_SHIFT			0
300c595713dSTony Lindgren #define OMAP3430_OFFTIMEVAL_MASK			(0xffffffff << 0)
301c595713dSTony Lindgren 
302c595713dSTony Lindgren /* PM_PWSTCTRL_MPU specific bits */
303c595713dSTony Lindgren #define OMAP3430_L2CACHEONSTATE_SHIFT			16
304c595713dSTony Lindgren #define OMAP3430_L2CACHEONSTATE_MASK			(0x3 << 16)
305*2bc4ef71SPaul Walmsley #define OMAP3430_L2CACHERETSTATE_MASK			(1 << 8)
306*2bc4ef71SPaul Walmsley #define OMAP3430_LOGICL1CACHERETSTATE_MASK		(1 << 2)
307c595713dSTony Lindgren 
308c595713dSTony Lindgren /* PM_PWSTST_MPU specific bits */
309c595713dSTony Lindgren #define OMAP3430_L2CACHESTATEST_SHIFT			6
310c595713dSTony Lindgren #define OMAP3430_L2CACHESTATEST_MASK			(0x3 << 6)
311*2bc4ef71SPaul Walmsley #define OMAP3430_LOGICL1CACHESTATEST_MASK		(1 << 2)
312c595713dSTony Lindgren 
313c595713dSTony Lindgren /* PM_PREPWSTST_MPU specific bits */
314c595713dSTony Lindgren #define OMAP3430_LASTL2CACHESTATEENTERED_SHIFT		6
315c595713dSTony Lindgren #define OMAP3430_LASTL2CACHESTATEENTERED_MASK		(0x3 << 6)
316*2bc4ef71SPaul Walmsley #define OMAP3430_LASTLOGICL1CACHESTATEENTERED_MASK	(1 << 2)
317c595713dSTony Lindgren 
318c595713dSTony Lindgren /* RM_RSTCTRL_CORE */
319*2bc4ef71SPaul Walmsley #define OMAP3430_RM_RSTCTRL_CORE_MODEM_SW_RSTPWRON_MASK		(1 << 1)
320*2bc4ef71SPaul Walmsley #define OMAP3430_RM_RSTCTRL_CORE_MODEM_SW_RST_MASK		(1 << 0)
321c595713dSTony Lindgren 
322c595713dSTony Lindgren /* RM_RSTST_CORE specific bits */
323*2bc4ef71SPaul Walmsley #define OMAP3430_MODEM_SECURITY_VIOL_RST_MASK		(1 << 10)
324*2bc4ef71SPaul Walmsley #define OMAP3430_RM_RSTST_CORE_MODEM_SW_RSTPWRON_MASK	(1 << 9)
325*2bc4ef71SPaul Walmsley #define OMAP3430_RM_RSTST_CORE_MODEM_SW_RST_MASK	(1 << 8)
326c595713dSTony Lindgren 
327c595713dSTony Lindgren /* PM_WKEN1_CORE specific bits */
328c595713dSTony Lindgren 
329c595713dSTony Lindgren /* PM_MPUGRPSEL1_CORE specific bits */
330*2bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_FSHOSTUSB_MASK			(1 << 5)
331c595713dSTony Lindgren 
332c595713dSTony Lindgren /* PM_IVA2GRPSEL1_CORE specific bits */
333c595713dSTony Lindgren 
334c595713dSTony Lindgren /* PM_WKST1_CORE specific bits */
335c595713dSTony Lindgren 
336c595713dSTony Lindgren /* PM_PWSTCTRL_CORE specific bits */
337c595713dSTony Lindgren #define OMAP3430_MEM2ONSTATE_SHIFT			18
338c595713dSTony Lindgren #define OMAP3430_MEM2ONSTATE_MASK			(0x3 << 18)
339c595713dSTony Lindgren #define OMAP3430_MEM1ONSTATE_SHIFT			16
340c595713dSTony Lindgren #define OMAP3430_MEM1ONSTATE_MASK			(0x3 << 16)
341*2bc4ef71SPaul Walmsley #define OMAP3430_MEM2RETSTATE_MASK			(1 << 9)
342*2bc4ef71SPaul Walmsley #define OMAP3430_MEM1RETSTATE_MASK			(1 << 8)
343c595713dSTony Lindgren 
344c595713dSTony Lindgren /* PM_PWSTST_CORE specific bits */
345c595713dSTony Lindgren #define OMAP3430_MEM2STATEST_SHIFT			6
346c595713dSTony Lindgren #define OMAP3430_MEM2STATEST_MASK			(0x3 << 6)
347c595713dSTony Lindgren #define OMAP3430_MEM1STATEST_SHIFT			4
348c595713dSTony Lindgren #define OMAP3430_MEM1STATEST_MASK			(0x3 << 4)
349c595713dSTony Lindgren 
350c595713dSTony Lindgren /* PM_PREPWSTST_CORE specific bits */
351c595713dSTony Lindgren #define OMAP3430_LASTMEM2STATEENTERED_SHIFT		6
352c595713dSTony Lindgren #define OMAP3430_LASTMEM2STATEENTERED_MASK		(0x3 << 6)
353c595713dSTony Lindgren #define OMAP3430_LASTMEM1STATEENTERED_SHIFT		4
354c595713dSTony Lindgren #define OMAP3430_LASTMEM1STATEENTERED_MASK		(0x3 << 4)
355c595713dSTony Lindgren 
356c595713dSTony Lindgren /* RM_RSTST_GFX specific bits */
357c595713dSTony Lindgren 
358c595713dSTony Lindgren /* PM_WKDEP_GFX specific bits */
359*2bc4ef71SPaul Walmsley #define OMAP3430_PM_WKDEP_GFX_EN_IVA2_MASK		(1 << 2)
360c595713dSTony Lindgren 
361c595713dSTony Lindgren /* PM_PWSTCTRL_GFX specific bits */
362c595713dSTony Lindgren 
363c595713dSTony Lindgren /* PM_PWSTST_GFX specific bits */
364c595713dSTony Lindgren 
365c595713dSTony Lindgren /* PM_PREPWSTST_GFX specific bits */
366c595713dSTony Lindgren 
367c595713dSTony Lindgren /* PM_WKEN_WKUP specific bits */
368*2bc4ef71SPaul Walmsley #define OMAP3430_EN_IO_CHAIN_MASK			(1 << 16)
369*2bc4ef71SPaul Walmsley #define OMAP3430_EN_IO_MASK				(1 << 8)
370*2bc4ef71SPaul Walmsley #define OMAP3430_EN_GPIO1_MASK				(1 << 3)
371c595713dSTony Lindgren 
372c595713dSTony Lindgren /* PM_MPUGRPSEL_WKUP specific bits */
373c595713dSTony Lindgren 
374c595713dSTony Lindgren /* PM_IVA2GRPSEL_WKUP specific bits */
375c595713dSTony Lindgren 
376c595713dSTony Lindgren /* PM_WKST_WKUP specific bits */
377*2bc4ef71SPaul Walmsley #define OMAP3430_ST_IO_CHAIN_MASK			(1 << 16)
378*2bc4ef71SPaul Walmsley #define OMAP3430_ST_IO_MASK				(1 << 8)
379c595713dSTony Lindgren 
380c595713dSTony Lindgren /* PRM_CLKSEL */
381c595713dSTony Lindgren #define OMAP3430_SYS_CLKIN_SEL_SHIFT			0
382c595713dSTony Lindgren #define OMAP3430_SYS_CLKIN_SEL_MASK			(0x7 << 0)
383c595713dSTony Lindgren 
384c595713dSTony Lindgren /* PRM_CLKOUT_CTRL */
385*2bc4ef71SPaul Walmsley #define OMAP3430_CLKOUT_EN_MASK				(1 << 7)
386c595713dSTony Lindgren #define OMAP3430_CLKOUT_EN_SHIFT			7
387c595713dSTony Lindgren 
388c595713dSTony Lindgren /* RM_RSTST_DSS specific bits */
389c595713dSTony Lindgren 
390c595713dSTony Lindgren /* PM_WKEN_DSS */
391*2bc4ef71SPaul Walmsley #define OMAP3430_PM_WKEN_DSS_EN_DSS_MASK		(1 << 0)
392c595713dSTony Lindgren 
393c595713dSTony Lindgren /* PM_WKDEP_DSS specific bits */
394*2bc4ef71SPaul Walmsley #define OMAP3430_PM_WKDEP_DSS_EN_IVA2_MASK		(1 << 2)
395c595713dSTony Lindgren 
396c595713dSTony Lindgren /* PM_PWSTCTRL_DSS specific bits */
397c595713dSTony Lindgren 
398c595713dSTony Lindgren /* PM_PWSTST_DSS specific bits */
399c595713dSTony Lindgren 
400c595713dSTony Lindgren /* PM_PREPWSTST_DSS specific bits */
401c595713dSTony Lindgren 
402c595713dSTony Lindgren /* RM_RSTST_CAM specific bits */
403c595713dSTony Lindgren 
404c595713dSTony Lindgren /* PM_WKDEP_CAM specific bits */
405*2bc4ef71SPaul Walmsley #define OMAP3430_PM_WKDEP_CAM_EN_IVA2_MASK		(1 << 2)
406c595713dSTony Lindgren 
407c595713dSTony Lindgren /* PM_PWSTCTRL_CAM specific bits */
408c595713dSTony Lindgren 
409c595713dSTony Lindgren /* PM_PWSTST_CAM specific bits */
410c595713dSTony Lindgren 
411c595713dSTony Lindgren /* PM_PREPWSTST_CAM specific bits */
412c595713dSTony Lindgren 
413c595713dSTony Lindgren /* PM_PWSTCTRL_USBHOST specific bits */
4148dbe4393SKalle Jokiniemi #define OMAP3430ES2_SAVEANDRESTORE_SHIFT		4
415c595713dSTony Lindgren 
416c595713dSTony Lindgren /* RM_RSTST_PER specific bits */
417c595713dSTony Lindgren 
418c595713dSTony Lindgren /* PM_WKEN_PER specific bits */
419c595713dSTony Lindgren 
420c595713dSTony Lindgren /* PM_MPUGRPSEL_PER specific bits */
421c595713dSTony Lindgren 
422c595713dSTony Lindgren /* PM_IVA2GRPSEL_PER specific bits */
423c595713dSTony Lindgren 
424c595713dSTony Lindgren /* PM_WKST_PER specific bits */
425c595713dSTony Lindgren 
426c595713dSTony Lindgren /* PM_WKDEP_PER specific bits */
427*2bc4ef71SPaul Walmsley #define OMAP3430_PM_WKDEP_PER_EN_IVA2_MASK		(1 << 2)
428c595713dSTony Lindgren 
429c595713dSTony Lindgren /* PM_PWSTCTRL_PER specific bits */
430c595713dSTony Lindgren 
431c595713dSTony Lindgren /* PM_PWSTST_PER specific bits */
432c595713dSTony Lindgren 
433c595713dSTony Lindgren /* PM_PREPWSTST_PER specific bits */
434c595713dSTony Lindgren 
435c595713dSTony Lindgren /* RM_RSTST_EMU specific bits */
436c595713dSTony Lindgren 
437c595713dSTony Lindgren /* PM_PWSTST_EMU specific bits */
438c595713dSTony Lindgren 
439c595713dSTony Lindgren /* PRM_VC_SMPS_SA */
440c595713dSTony Lindgren #define OMAP3430_PRM_VC_SMPS_SA_SA1_SHIFT		16
441c595713dSTony Lindgren #define OMAP3430_PRM_VC_SMPS_SA_SA1_MASK		(0x7f << 16)
442c595713dSTony Lindgren #define OMAP3430_PRM_VC_SMPS_SA_SA0_SHIFT		0
443c595713dSTony Lindgren #define OMAP3430_PRM_VC_SMPS_SA_SA0_MASK		(0x7f << 0)
444c595713dSTony Lindgren 
445c595713dSTony Lindgren /* PRM_VC_SMPS_VOL_RA */
446c595713dSTony Lindgren #define OMAP3430_VOLRA1_SHIFT				16
447c595713dSTony Lindgren #define OMAP3430_VOLRA1_MASK				(0xff << 16)
448c595713dSTony Lindgren #define OMAP3430_VOLRA0_SHIFT				0
449c595713dSTony Lindgren #define OMAP3430_VOLRA0_MASK				(0xff << 0)
450c595713dSTony Lindgren 
451c595713dSTony Lindgren /* PRM_VC_SMPS_CMD_RA */
452c595713dSTony Lindgren #define OMAP3430_CMDRA1_SHIFT				16
453c595713dSTony Lindgren #define OMAP3430_CMDRA1_MASK				(0xff << 16)
454c595713dSTony Lindgren #define OMAP3430_CMDRA0_SHIFT				0
455c595713dSTony Lindgren #define OMAP3430_CMDRA0_MASK				(0xff << 0)
456c595713dSTony Lindgren 
457c595713dSTony Lindgren /* PRM_VC_CMD_VAL_0 specific bits */
458027d8dedSJouni Hogander #define OMAP3430_VC_CMD_ON_SHIFT			24
459027d8dedSJouni Hogander #define OMAP3430_VC_CMD_ON_MASK				(0xFF << 24)
460027d8dedSJouni Hogander #define OMAP3430_VC_CMD_ONLP_SHIFT			16
461027d8dedSJouni Hogander #define OMAP3430_VC_CMD_ONLP_MASK			(0xFF << 16)
462027d8dedSJouni Hogander #define OMAP3430_VC_CMD_RET_SHIFT			8
463027d8dedSJouni Hogander #define OMAP3430_VC_CMD_RET_MASK			(0xFF << 8)
464027d8dedSJouni Hogander #define OMAP3430_VC_CMD_OFF_SHIFT			0
465027d8dedSJouni Hogander #define OMAP3430_VC_CMD_OFF_MASK			(0xFF << 0)
466c595713dSTony Lindgren 
467c595713dSTony Lindgren /* PRM_VC_CMD_VAL_1 specific bits */
468c595713dSTony Lindgren 
469c595713dSTony Lindgren /* PRM_VC_CH_CONF */
470*2bc4ef71SPaul Walmsley #define OMAP3430_CMD1_MASK				(1 << 20)
471*2bc4ef71SPaul Walmsley #define OMAP3430_RACEN1_MASK				(1 << 19)
472*2bc4ef71SPaul Walmsley #define OMAP3430_RAC1_MASK				(1 << 18)
473*2bc4ef71SPaul Walmsley #define OMAP3430_RAV1_MASK				(1 << 17)
474*2bc4ef71SPaul Walmsley #define OMAP3430_PRM_VC_CH_CONF_SA1_MASK		(1 << 16)
475*2bc4ef71SPaul Walmsley #define OMAP3430_CMD0_MASK				(1 << 4)
476*2bc4ef71SPaul Walmsley #define OMAP3430_RACEN0_MASK				(1 << 3)
477*2bc4ef71SPaul Walmsley #define OMAP3430_RAC0_MASK				(1 << 2)
478*2bc4ef71SPaul Walmsley #define OMAP3430_RAV0_MASK				(1 << 1)
479*2bc4ef71SPaul Walmsley #define OMAP3430_PRM_VC_CH_CONF_SA0_MASK		(1 << 0)
480c595713dSTony Lindgren 
481c595713dSTony Lindgren /* PRM_VC_I2C_CFG */
482*2bc4ef71SPaul Walmsley #define OMAP3430_HSMASTER_MASK				(1 << 5)
483*2bc4ef71SPaul Walmsley #define OMAP3430_SREN_MASK				(1 << 4)
484*2bc4ef71SPaul Walmsley #define OMAP3430_HSEN_MASK				(1 << 3)
485c595713dSTony Lindgren #define OMAP3430_MCODE_SHIFT				0
486c595713dSTony Lindgren #define OMAP3430_MCODE_MASK				(0x7 << 0)
487c595713dSTony Lindgren 
488c595713dSTony Lindgren /* PRM_VC_BYPASS_VAL */
489*2bc4ef71SPaul Walmsley #define OMAP3430_VALID_MASK				(1 << 24)
490c595713dSTony Lindgren #define OMAP3430_DATA_SHIFT				16
491c595713dSTony Lindgren #define OMAP3430_DATA_MASK				(0xff << 16)
492c595713dSTony Lindgren #define OMAP3430_REGADDR_SHIFT				8
493c595713dSTony Lindgren #define OMAP3430_REGADDR_MASK				(0xff << 8)
494c595713dSTony Lindgren #define OMAP3430_SLAVEADDR_SHIFT			0
495c595713dSTony Lindgren #define OMAP3430_SLAVEADDR_MASK				(0x7f << 0)
496c595713dSTony Lindgren 
497c595713dSTony Lindgren /* PRM_RSTCTRL */
498*2bc4ef71SPaul Walmsley #define OMAP3430_RST_DPLL3_MASK				(1 << 2)
499*2bc4ef71SPaul Walmsley #define OMAP3430_RST_GS_MASK				(1 << 1)
500c595713dSTony Lindgren 
501c595713dSTony Lindgren /* PRM_RSTTIME */
502c595713dSTony Lindgren #define OMAP3430_RSTTIME2_SHIFT				8
503c595713dSTony Lindgren #define OMAP3430_RSTTIME2_MASK				(0x1f << 8)
504c595713dSTony Lindgren #define OMAP3430_RSTTIME1_SHIFT				0
505c595713dSTony Lindgren #define OMAP3430_RSTTIME1_MASK				(0xff << 0)
506c595713dSTony Lindgren 
507c595713dSTony Lindgren /* PRM_RSTST */
508*2bc4ef71SPaul Walmsley #define OMAP3430_ICECRUSHER_RST_MASK			(1 << 10)
509*2bc4ef71SPaul Walmsley #define OMAP3430_ICEPICK_RST_MASK			(1 << 9)
510*2bc4ef71SPaul Walmsley #define OMAP3430_VDD2_VOLTAGE_MANAGER_RST_MASK		(1 << 8)
511*2bc4ef71SPaul Walmsley #define OMAP3430_VDD1_VOLTAGE_MANAGER_RST_MASK		(1 << 7)
512*2bc4ef71SPaul Walmsley #define OMAP3430_EXTERNAL_WARM_RST_MASK			(1 << 6)
513*2bc4ef71SPaul Walmsley #define OMAP3430_SECURE_WD_RST_MASK			(1 << 5)
514*2bc4ef71SPaul Walmsley #define OMAP3430_MPU_WD_RST_MASK			(1 << 4)
515*2bc4ef71SPaul Walmsley #define OMAP3430_SECURITY_VIOL_RST_MASK			(1 << 3)
516*2bc4ef71SPaul Walmsley #define OMAP3430_GLOBAL_SW_RST_MASK			(1 << 1)
517*2bc4ef71SPaul Walmsley #define OMAP3430_GLOBAL_COLD_RST_MASK			(1 << 0)
518c595713dSTony Lindgren 
519c595713dSTony Lindgren /* PRM_VOLTCTRL */
520*2bc4ef71SPaul Walmsley #define OMAP3430_SEL_VMODE_MASK				(1 << 4)
521*2bc4ef71SPaul Walmsley #define OMAP3430_SEL_OFF_MASK				(1 << 3)
522*2bc4ef71SPaul Walmsley #define OMAP3430_AUTO_OFF_MASK				(1 << 2)
523*2bc4ef71SPaul Walmsley #define OMAP3430_AUTO_RET_MASK				(1 << 1)
524*2bc4ef71SPaul Walmsley #define OMAP3430_AUTO_SLEEP_MASK			(1 << 0)
525c595713dSTony Lindgren 
526c595713dSTony Lindgren /* PRM_SRAM_PCHARGE */
527c595713dSTony Lindgren #define OMAP3430_PCHARGE_TIME_SHIFT			0
528c595713dSTony Lindgren #define OMAP3430_PCHARGE_TIME_MASK			(0xff << 0)
529c595713dSTony Lindgren 
530c595713dSTony Lindgren /* PRM_CLKSRC_CTRL */
531c595713dSTony Lindgren #define OMAP3430_SYSCLKDIV_SHIFT			6
532c595713dSTony Lindgren #define OMAP3430_SYSCLKDIV_MASK				(0x3 << 6)
533c595713dSTony Lindgren #define OMAP3430_AUTOEXTCLKMODE_SHIFT			3
534c595713dSTony Lindgren #define OMAP3430_AUTOEXTCLKMODE_MASK			(0x3 << 3)
535c595713dSTony Lindgren #define OMAP3430_SYSCLKSEL_SHIFT			0
536c595713dSTony Lindgren #define OMAP3430_SYSCLKSEL_MASK				(0x3 << 0)
537c595713dSTony Lindgren 
538c595713dSTony Lindgren /* PRM_VOLTSETUP1 */
539c595713dSTony Lindgren #define OMAP3430_SETUP_TIME2_SHIFT			16
540c595713dSTony Lindgren #define OMAP3430_SETUP_TIME2_MASK			(0xffff << 16)
541c595713dSTony Lindgren #define OMAP3430_SETUP_TIME1_SHIFT			0
542c595713dSTony Lindgren #define OMAP3430_SETUP_TIME1_MASK			(0xffff << 0)
543c595713dSTony Lindgren 
544c595713dSTony Lindgren /* PRM_VOLTOFFSET */
545c595713dSTony Lindgren #define OMAP3430_OFFSET_TIME_SHIFT			0
546c595713dSTony Lindgren #define OMAP3430_OFFSET_TIME_MASK			(0xffff << 0)
547c595713dSTony Lindgren 
548c595713dSTony Lindgren /* PRM_CLKSETUP */
549c595713dSTony Lindgren #define OMAP3430_SETUP_TIME_SHIFT			0
550c595713dSTony Lindgren #define OMAP3430_SETUP_TIME_MASK			(0xffff << 0)
551c595713dSTony Lindgren 
552c595713dSTony Lindgren /* PRM_POLCTRL */
553*2bc4ef71SPaul Walmsley #define OMAP3430_OFFMODE_POL_MASK			(1 << 3)
554*2bc4ef71SPaul Walmsley #define OMAP3430_CLKOUT_POL_MASK			(1 << 2)
555*2bc4ef71SPaul Walmsley #define OMAP3430_CLKREQ_POL_MASK			(1 << 1)
556*2bc4ef71SPaul Walmsley #define OMAP3430_EXTVOL_POL_MASK			(1 << 0)
557c595713dSTony Lindgren 
558c595713dSTony Lindgren /* PRM_VOLTSETUP2 */
559c595713dSTony Lindgren #define OMAP3430_OFFMODESETUPTIME_SHIFT			0
560c595713dSTony Lindgren #define OMAP3430_OFFMODESETUPTIME_MASK			(0xffff << 0)
561c595713dSTony Lindgren 
562c595713dSTony Lindgren /* PRM_VP1_CONFIG specific bits */
563c595713dSTony Lindgren 
564c595713dSTony Lindgren /* PRM_VP1_VSTEPMIN specific bits */
565c595713dSTony Lindgren 
566c595713dSTony Lindgren /* PRM_VP1_VSTEPMAX specific bits */
567c595713dSTony Lindgren 
568c595713dSTony Lindgren /* PRM_VP1_VLIMITTO specific bits */
569c595713dSTony Lindgren 
570c595713dSTony Lindgren /* PRM_VP1_VOLTAGE specific bits */
571c595713dSTony Lindgren 
572c595713dSTony Lindgren /* PRM_VP1_STATUS specific bits */
573c595713dSTony Lindgren 
574c595713dSTony Lindgren /* PRM_VP2_CONFIG specific bits */
575c595713dSTony Lindgren 
576c595713dSTony Lindgren /* PRM_VP2_VSTEPMIN specific bits */
577c595713dSTony Lindgren 
578c595713dSTony Lindgren /* PRM_VP2_VSTEPMAX specific bits */
579c595713dSTony Lindgren 
580c595713dSTony Lindgren /* PRM_VP2_VLIMITTO specific bits */
581c595713dSTony Lindgren 
582c595713dSTony Lindgren /* PRM_VP2_VOLTAGE specific bits */
583c595713dSTony Lindgren 
584c595713dSTony Lindgren /* PRM_VP2_STATUS specific bits */
585c595713dSTony Lindgren 
586c595713dSTony Lindgren /* RM_RSTST_NEON specific bits */
587c595713dSTony Lindgren 
588c595713dSTony Lindgren /* PM_WKDEP_NEON specific bits */
589c595713dSTony Lindgren 
590c595713dSTony Lindgren /* PM_PWSTCTRL_NEON specific bits */
591c595713dSTony Lindgren 
592c595713dSTony Lindgren /* PM_PWSTST_NEON specific bits */
593c595713dSTony Lindgren 
594c595713dSTony Lindgren /* PM_PREPWSTST_NEON specific bits */
595c595713dSTony Lindgren 
596c595713dSTony Lindgren #endif
597