blob: 25b19b6101779e6fb596f4f2c02bde8cbeb828d2 [file] [log] [blame]
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001/*
2 * OMAP44xx Power Management register bits
3 *
Rajendra Nayak568997c2010-09-27 14:02:55 -06004 * Copyright (C) 2009-2010 Texas Instruments, Inc.
5 * Copyright (C) 2009-2010 Nokia Corporation
Rajendra Nayak234f0c42009-12-08 18:24:52 -07006 *
7 * Paul Walmsley (paul@pwsan.com)
8 * Rajendra Nayak (rnayak@ti.com)
9 * Benoit Cousson (b-cousson@ti.com)
10 *
11 * This file is automatically generated from the OMAP hardware databases.
12 * We respectfully ask that any modifications to this file be coordinated
13 * with the public linux-omap@vger.kernel.org mailing list and the
14 * authors above to ensure that the autogeneration scripts are kept
15 * up-to-date with the file contents.
16 *
17 * This program is free software; you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License version 2 as
19 * published by the Free Software Foundation.
20 */
21
22#ifndef __ARCH_ARM_MACH_OMAP2_PRM_REGBITS_44XX_H
23#define __ARCH_ARM_MACH_OMAP2_PRM_REGBITS_44XX_H
24
25#include "prm.h"
26
27
28/*
29 * Used by PRM_LDO_SRAM_CORE_SETUP, PRM_LDO_SRAM_IVA_SETUP,
30 * PRM_LDO_SRAM_MPU_SETUP
31 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070032#define OMAP4430_ABBOFF_ACT_EXPORT_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -060033#define OMAP4430_ABBOFF_ACT_EXPORT_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -070034
35/*
36 * Used by PRM_LDO_SRAM_CORE_SETUP, PRM_LDO_SRAM_IVA_SETUP,
37 * PRM_LDO_SRAM_MPU_SETUP
38 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070039#define OMAP4430_ABBOFF_SLEEP_EXPORT_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -060040#define OMAP4430_ABBOFF_SLEEP_EXPORT_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -070041
42/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070043#define OMAP4430_ABB_IVA_DONE_EN_SHIFT 31
Rajendra Nayak568997c2010-09-27 14:02:55 -060044#define OMAP4430_ABB_IVA_DONE_EN_MASK (1 << 31)
Rajendra Nayak234f0c42009-12-08 18:24:52 -070045
46/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070047#define OMAP4430_ABB_IVA_DONE_ST_SHIFT 31
Rajendra Nayak568997c2010-09-27 14:02:55 -060048#define OMAP4430_ABB_IVA_DONE_ST_MASK (1 << 31)
Rajendra Nayak234f0c42009-12-08 18:24:52 -070049
50/* Used by PRM_IRQENABLE_MPU_2 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070051#define OMAP4430_ABB_MPU_DONE_EN_SHIFT 7
Rajendra Nayak568997c2010-09-27 14:02:55 -060052#define OMAP4430_ABB_MPU_DONE_EN_MASK (1 << 7)
Rajendra Nayak234f0c42009-12-08 18:24:52 -070053
54/* Used by PRM_IRQSTATUS_MPU_2 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070055#define OMAP4430_ABB_MPU_DONE_ST_SHIFT 7
Rajendra Nayak568997c2010-09-27 14:02:55 -060056#define OMAP4430_ABB_MPU_DONE_ST_MASK (1 << 7)
Rajendra Nayak234f0c42009-12-08 18:24:52 -070057
58/* Used by PRM_LDO_ABB_IVA_SETUP, PRM_LDO_ABB_MPU_SETUP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070059#define OMAP4430_ACTIVE_FBB_SEL_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -060060#define OMAP4430_ACTIVE_FBB_SEL_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -070061
62/* Used by PRM_LDO_ABB_IVA_SETUP, PRM_LDO_ABB_MPU_SETUP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070063#define OMAP4430_ACTIVE_RBB_SEL_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -060064#define OMAP4430_ACTIVE_RBB_SEL_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -070065
66/* Used by PM_ABE_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070067#define OMAP4430_AESSMEM_ONSTATE_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -060068#define OMAP4430_AESSMEM_ONSTATE_MASK (0x3 << 16)
Rajendra Nayak234f0c42009-12-08 18:24:52 -070069
70/* Used by PM_ABE_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070071#define OMAP4430_AESSMEM_RETSTATE_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -060072#define OMAP4430_AESSMEM_RETSTATE_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -070073
74/* Used by PM_ABE_PWRSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070075#define OMAP4430_AESSMEM_STATEST_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -060076#define OMAP4430_AESSMEM_STATEST_MASK (0x3 << 4)
Rajendra Nayak234f0c42009-12-08 18:24:52 -070077
78/*
79 * Used by PRM_LDO_SRAM_CORE_SETUP, PRM_LDO_SRAM_IVA_SETUP,
80 * PRM_LDO_SRAM_MPU_SETUP
81 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070082#define OMAP4430_AIPOFF_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -060083#define OMAP4430_AIPOFF_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -070084
85/* Used by PRM_VOLTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070086#define OMAP4430_AUTO_CTRL_VDD_CORE_L_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -060087#define OMAP4430_AUTO_CTRL_VDD_CORE_L_MASK (0x3 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -070088
89/* Used by PRM_VOLTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070090#define OMAP4430_AUTO_CTRL_VDD_IVA_L_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -060091#define OMAP4430_AUTO_CTRL_VDD_IVA_L_MASK (0x3 << 4)
Rajendra Nayak234f0c42009-12-08 18:24:52 -070092
93/* Used by PRM_VOLTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070094#define OMAP4430_AUTO_CTRL_VDD_MPU_L_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -060095#define OMAP4430_AUTO_CTRL_VDD_MPU_L_MASK (0x3 << 2)
96
97/* Used by PRM_VC_ERRST */
98#define OMAP4430_BYPS_RA_ERR_SHIFT 25
99#define OMAP4430_BYPS_RA_ERR_MASK (1 << 25)
100
101/* Used by PRM_VC_ERRST */
102#define OMAP4430_BYPS_SA_ERR_SHIFT 24
103#define OMAP4430_BYPS_SA_ERR_MASK (1 << 24)
104
105/* Used by PRM_VC_ERRST */
106#define OMAP4430_BYPS_TIMEOUT_ERR_SHIFT 26
107#define OMAP4430_BYPS_TIMEOUT_ERR_MASK (1 << 26)
108
109/* Used by PRM_RSTST */
110#define OMAP4430_C2C_RST_SHIFT 10
111#define OMAP4430_C2C_RST_MASK (1 << 10)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700112
113/* Used by PM_CAM_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700114#define OMAP4430_CAM_MEM_ONSTATE_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -0600115#define OMAP4430_CAM_MEM_ONSTATE_MASK (0x3 << 16)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700116
117/* Used by PM_CAM_PWRSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700118#define OMAP4430_CAM_MEM_STATEST_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -0600119#define OMAP4430_CAM_MEM_STATEST_MASK (0x3 << 4)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700120
121/* Used by PRM_CLKREQCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700122#define OMAP4430_CLKREQ_COND_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600123#define OMAP4430_CLKREQ_COND_MASK (0x7 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700124
125/* Used by PRM_VC_VAL_SMPS_RA_CMD */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700126#define OMAP4430_CMDRA_VDD_CORE_L_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600127#define OMAP4430_CMDRA_VDD_CORE_L_MASK (0xff << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700128
129/* Used by PRM_VC_VAL_SMPS_RA_CMD */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700130#define OMAP4430_CMDRA_VDD_IVA_L_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600131#define OMAP4430_CMDRA_VDD_IVA_L_MASK (0xff << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700132
133/* Used by PRM_VC_VAL_SMPS_RA_CMD */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700134#define OMAP4430_CMDRA_VDD_MPU_L_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -0600135#define OMAP4430_CMDRA_VDD_MPU_L_MASK (0xff << 16)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700136
137/* Used by PRM_VC_CFG_CHANNEL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700138#define OMAP4430_CMD_VDD_CORE_L_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -0600139#define OMAP4430_CMD_VDD_CORE_L_MASK (1 << 4)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700140
141/* Used by PRM_VC_CFG_CHANNEL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700142#define OMAP4430_CMD_VDD_IVA_L_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -0600143#define OMAP4430_CMD_VDD_IVA_L_MASK (1 << 12)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700144
145/* Used by PRM_VC_CFG_CHANNEL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700146#define OMAP4430_CMD_VDD_MPU_L_SHIFT 17
Rajendra Nayak568997c2010-09-27 14:02:55 -0600147#define OMAP4430_CMD_VDD_MPU_L_MASK (1 << 17)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700148
149/* Used by PM_CORE_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700150#define OMAP4430_CORE_OCMRAM_ONSTATE_SHIFT 18
Rajendra Nayak568997c2010-09-27 14:02:55 -0600151#define OMAP4430_CORE_OCMRAM_ONSTATE_MASK (0x3 << 18)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700152
153/* Used by PM_CORE_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700154#define OMAP4430_CORE_OCMRAM_RETSTATE_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600155#define OMAP4430_CORE_OCMRAM_RETSTATE_MASK (1 << 9)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700156
157/* Used by PM_CORE_PWRSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700158#define OMAP4430_CORE_OCMRAM_STATEST_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -0600159#define OMAP4430_CORE_OCMRAM_STATEST_MASK (0x3 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700160
161/* Used by PM_CORE_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700162#define OMAP4430_CORE_OTHER_BANK_ONSTATE_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -0600163#define OMAP4430_CORE_OTHER_BANK_ONSTATE_MASK (0x3 << 16)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700164
165/* Used by PM_CORE_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700166#define OMAP4430_CORE_OTHER_BANK_RETSTATE_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600167#define OMAP4430_CORE_OTHER_BANK_RETSTATE_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700168
169/* Used by PM_CORE_PWRSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700170#define OMAP4430_CORE_OTHER_BANK_STATEST_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -0600171#define OMAP4430_CORE_OTHER_BANK_STATEST_MASK (0x3 << 4)
172
173/* Used by REVISION_PRM */
174#define OMAP4430_CUSTOM_SHIFT 6
175#define OMAP4430_CUSTOM_MASK (0x3 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700176
177/* Used by PRM_VC_VAL_BYPASS */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700178#define OMAP4430_DATA_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -0600179#define OMAP4430_DATA_MASK (0xff << 16)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700180
181/* Used by PRM_DEVICE_OFF_CTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700182#define OMAP4430_DEVICE_OFF_ENABLE_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600183#define OMAP4430_DEVICE_OFF_ENABLE_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700184
185/* Used by PRM_VC_CFG_I2C_MODE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700186#define OMAP4430_DFILTEREN_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -0600187#define OMAP4430_DFILTEREN_MASK (1 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700188
189/*
190 * Used by PRM_LDO_SRAM_CORE_SETUP, PRM_LDO_SRAM_IVA_SETUP,
191 * PRM_LDO_SRAM_MPU_SETUP, PRM_SRAM_WKUP_SETUP
192 */
Rajendra Nayak568997c2010-09-27 14:02:55 -0600193#define OMAP4430_DISABLE_RTA_EXPORT_SHIFT 0
194#define OMAP4430_DISABLE_RTA_EXPORT_MASK (1 << 0)
195
196/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU, PRM_IRQENABLE_TESLA */
197#define OMAP4430_DPLL_ABE_RECAL_EN_SHIFT 4
198#define OMAP4430_DPLL_ABE_RECAL_EN_MASK (1 << 4)
199
200/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU, PRM_IRQSTATUS_TESLA */
201#define OMAP4430_DPLL_ABE_RECAL_ST_SHIFT 4
202#define OMAP4430_DPLL_ABE_RECAL_ST_MASK (1 << 4)
203
204/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU */
205#define OMAP4430_DPLL_CORE_RECAL_EN_SHIFT 0
206#define OMAP4430_DPLL_CORE_RECAL_EN_MASK (1 << 0)
207
208/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU */
209#define OMAP4430_DPLL_CORE_RECAL_ST_SHIFT 0
210#define OMAP4430_DPLL_CORE_RECAL_ST_MASK (1 << 0)
211
212/* Used by PRM_IRQENABLE_MPU */
213#define OMAP4430_DPLL_DDRPHY_RECAL_EN_SHIFT 6
214#define OMAP4430_DPLL_DDRPHY_RECAL_EN_MASK (1 << 6)
215
216/* Used by PRM_IRQSTATUS_MPU */
217#define OMAP4430_DPLL_DDRPHY_RECAL_ST_SHIFT 6
218#define OMAP4430_DPLL_DDRPHY_RECAL_ST_MASK (1 << 6)
219
220/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU, PRM_IRQENABLE_TESLA */
221#define OMAP4430_DPLL_IVA_RECAL_EN_SHIFT 2
222#define OMAP4430_DPLL_IVA_RECAL_EN_MASK (1 << 2)
223
224/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU, PRM_IRQSTATUS_TESLA */
225#define OMAP4430_DPLL_IVA_RECAL_ST_SHIFT 2
226#define OMAP4430_DPLL_IVA_RECAL_ST_MASK (1 << 2)
227
228/* Used by PRM_IRQENABLE_MPU */
229#define OMAP4430_DPLL_MPU_RECAL_EN_SHIFT 1
230#define OMAP4430_DPLL_MPU_RECAL_EN_MASK (1 << 1)
231
232/* Used by PRM_IRQSTATUS_MPU */
233#define OMAP4430_DPLL_MPU_RECAL_ST_SHIFT 1
234#define OMAP4430_DPLL_MPU_RECAL_ST_MASK (1 << 1)
235
236/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU */
237#define OMAP4430_DPLL_PER_RECAL_EN_SHIFT 3
238#define OMAP4430_DPLL_PER_RECAL_EN_MASK (1 << 3)
239
240/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU */
241#define OMAP4430_DPLL_PER_RECAL_ST_SHIFT 3
242#define OMAP4430_DPLL_PER_RECAL_ST_MASK (1 << 3)
243
244/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU */
245#define OMAP4430_DPLL_UNIPRO_RECAL_EN_SHIFT 7
246#define OMAP4430_DPLL_UNIPRO_RECAL_EN_MASK (1 << 7)
247
248/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU */
249#define OMAP4430_DPLL_UNIPRO_RECAL_ST_SHIFT 7
250#define OMAP4430_DPLL_UNIPRO_RECAL_ST_MASK (1 << 7)
251
252/* Used by PM_DSS_PWRSTCTRL */
253#define OMAP4430_DSS_MEM_ONSTATE_SHIFT 16
254#define OMAP4430_DSS_MEM_ONSTATE_MASK (0x3 << 16)
255
256/* Used by PM_DSS_PWRSTCTRL */
257#define OMAP4430_DSS_MEM_RETSTATE_SHIFT 8
258#define OMAP4430_DSS_MEM_RETSTATE_MASK (1 << 8)
259
260/* Used by PM_DSS_PWRSTST */
261#define OMAP4430_DSS_MEM_STATEST_SHIFT 4
262#define OMAP4430_DSS_MEM_STATEST_MASK (0x3 << 4)
263
264/* Used by PM_CORE_PWRSTCTRL */
265#define OMAP4430_DUCATI_L2RAM_ONSTATE_SHIFT 20
266#define OMAP4430_DUCATI_L2RAM_ONSTATE_MASK (0x3 << 20)
267
268/* Used by PM_CORE_PWRSTCTRL */
269#define OMAP4430_DUCATI_L2RAM_RETSTATE_SHIFT 10
270#define OMAP4430_DUCATI_L2RAM_RETSTATE_MASK (1 << 10)
271
272/* Used by PM_CORE_PWRSTST */
273#define OMAP4430_DUCATI_L2RAM_STATEST_SHIFT 8
274#define OMAP4430_DUCATI_L2RAM_STATEST_MASK (0x3 << 8)
275
276/* Used by PM_CORE_PWRSTCTRL */
277#define OMAP4430_DUCATI_UNICACHE_ONSTATE_SHIFT 22
278#define OMAP4430_DUCATI_UNICACHE_ONSTATE_MASK (0x3 << 22)
279
280/* Used by PM_CORE_PWRSTCTRL */
281#define OMAP4430_DUCATI_UNICACHE_RETSTATE_SHIFT 11
282#define OMAP4430_DUCATI_UNICACHE_RETSTATE_MASK (1 << 11)
283
284/* Used by PM_CORE_PWRSTST */
285#define OMAP4430_DUCATI_UNICACHE_STATEST_SHIFT 10
286#define OMAP4430_DUCATI_UNICACHE_STATEST_MASK (0x3 << 10)
287
288/* Used by RM_MPU_RSTST */
289#define OMAP4430_EMULATION_RST_SHIFT 0
290#define OMAP4430_EMULATION_RST_MASK (1 << 0)
291
292/* Used by RM_DUCATI_RSTST */
293#define OMAP4430_EMULATION_RST1ST_SHIFT 3
294#define OMAP4430_EMULATION_RST1ST_MASK (1 << 3)
295
296/* Used by RM_DUCATI_RSTST */
297#define OMAP4430_EMULATION_RST2ST_SHIFT 4
298#define OMAP4430_EMULATION_RST2ST_MASK (1 << 4)
299
300/* Used by RM_IVAHD_RSTST */
301#define OMAP4430_EMULATION_SEQ1_RST1ST_SHIFT 3
302#define OMAP4430_EMULATION_SEQ1_RST1ST_MASK (1 << 3)
303
304/* Used by RM_IVAHD_RSTST */
305#define OMAP4430_EMULATION_SEQ2_RST2ST_SHIFT 4
306#define OMAP4430_EMULATION_SEQ2_RST2ST_MASK (1 << 4)
307
308/* Used by PM_EMU_PWRSTCTRL */
309#define OMAP4430_EMU_BANK_ONSTATE_SHIFT 16
310#define OMAP4430_EMU_BANK_ONSTATE_MASK (0x3 << 16)
311
312/* Used by PM_EMU_PWRSTST */
313#define OMAP4430_EMU_BANK_STATEST_SHIFT 4
314#define OMAP4430_EMU_BANK_STATEST_MASK (0x3 << 4)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700315
316/*
317 * Used by PRM_LDO_SRAM_CORE_SETUP, PRM_LDO_SRAM_IVA_SETUP,
318 * PRM_LDO_SRAM_MPU_SETUP
319 */
Rajendra Nayak568997c2010-09-27 14:02:55 -0600320#define OMAP4430_ENFUNC1_EXPORT_SHIFT 3
321#define OMAP4430_ENFUNC1_EXPORT_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700322
323/*
324 * Used by PRM_LDO_SRAM_CORE_SETUP, PRM_LDO_SRAM_IVA_SETUP,
325 * PRM_LDO_SRAM_MPU_SETUP
326 */
Rajendra Nayak568997c2010-09-27 14:02:55 -0600327#define OMAP4430_ENFUNC3_EXPORT_SHIFT 5
328#define OMAP4430_ENFUNC3_EXPORT_MASK (1 << 5)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700329
330/*
331 * Used by PRM_LDO_SRAM_CORE_SETUP, PRM_LDO_SRAM_IVA_SETUP,
332 * PRM_LDO_SRAM_MPU_SETUP
333 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700334#define OMAP4430_ENFUNC4_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -0600335#define OMAP4430_ENFUNC4_MASK (1 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700336
337/*
338 * Used by PRM_LDO_SRAM_CORE_SETUP, PRM_LDO_SRAM_IVA_SETUP,
339 * PRM_LDO_SRAM_MPU_SETUP
340 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700341#define OMAP4430_ENFUNC5_SHIFT 7
Rajendra Nayak568997c2010-09-27 14:02:55 -0600342#define OMAP4430_ENFUNC5_MASK (1 << 7)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700343
344/* Used by PRM_VP_CORE_CONFIG, PRM_VP_IVA_CONFIG, PRM_VP_MPU_CONFIG */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700345#define OMAP4430_ERRORGAIN_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -0600346#define OMAP4430_ERRORGAIN_MASK (0xff << 16)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700347
348/* Used by PRM_VP_CORE_CONFIG, PRM_VP_IVA_CONFIG, PRM_VP_MPU_CONFIG */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700349#define OMAP4430_ERROROFFSET_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600350#define OMAP4430_ERROROFFSET_MASK (0xff << 24)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700351
352/* Used by PRM_RSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700353#define OMAP4430_EXTERNAL_WARM_RST_SHIFT 5
Rajendra Nayak568997c2010-09-27 14:02:55 -0600354#define OMAP4430_EXTERNAL_WARM_RST_MASK (1 << 5)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700355
356/* Used by PRM_VP_CORE_CONFIG, PRM_VP_IVA_CONFIG, PRM_VP_MPU_CONFIG */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700357#define OMAP4430_FORCEUPDATE_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600358#define OMAP4430_FORCEUPDATE_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700359
360/* Used by PRM_VP_CORE_VOLTAGE, PRM_VP_IVA_VOLTAGE, PRM_VP_MPU_VOLTAGE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700361#define OMAP4430_FORCEUPDATEWAIT_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600362#define OMAP4430_FORCEUPDATEWAIT_MASK (0xffffff << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700363
364/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_TESLA */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700365#define OMAP4430_FORCEWKUP_EN_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600366#define OMAP4430_FORCEWKUP_EN_MASK (1 << 10)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700367
368/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_TESLA */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700369#define OMAP4430_FORCEWKUP_ST_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600370#define OMAP4430_FORCEWKUP_ST_MASK (1 << 10)
371
372/* Used by REVISION_PRM */
373#define OMAP4430_FUNC_SHIFT 16
374#define OMAP4430_FUNC_MASK (0xfff << 16)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700375
376/* Used by PM_GFX_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700377#define OMAP4430_GFX_MEM_ONSTATE_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -0600378#define OMAP4430_GFX_MEM_ONSTATE_MASK (0x3 << 16)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700379
380/* Used by PM_GFX_PWRSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700381#define OMAP4430_GFX_MEM_STATEST_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -0600382#define OMAP4430_GFX_MEM_STATEST_MASK (0x3 << 4)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700383
384/* Used by PRM_RSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700385#define OMAP4430_GLOBAL_COLD_RST_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600386#define OMAP4430_GLOBAL_COLD_RST_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700387
388/* Used by PRM_RSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700389#define OMAP4430_GLOBAL_WARM_SW_RST_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600390#define OMAP4430_GLOBAL_WARM_SW_RST_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700391
392/* Used by PRM_IO_PMCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700393#define OMAP4430_GLOBAL_WUEN_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -0600394#define OMAP4430_GLOBAL_WUEN_MASK (1 << 16)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700395
396/* Used by PRM_VC_CFG_I2C_MODE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700397#define OMAP4430_HSMCODE_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600398#define OMAP4430_HSMCODE_MASK (0x7 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700399
400/* Used by PRM_VC_CFG_I2C_MODE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700401#define OMAP4430_HSMODEEN_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -0600402#define OMAP4430_HSMODEEN_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700403
404/* Used by PRM_VC_CFG_I2C_CLK */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700405#define OMAP4430_HSSCLH_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -0600406#define OMAP4430_HSSCLH_MASK (0xff << 16)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700407
408/* Used by PRM_VC_CFG_I2C_CLK */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700409#define OMAP4430_HSSCLL_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600410#define OMAP4430_HSSCLL_MASK (0xff << 24)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700411
412/* Used by PM_IVAHD_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700413#define OMAP4430_HWA_MEM_ONSTATE_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -0600414#define OMAP4430_HWA_MEM_ONSTATE_MASK (0x3 << 16)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700415
416/* Used by PM_IVAHD_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700417#define OMAP4430_HWA_MEM_RETSTATE_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600418#define OMAP4430_HWA_MEM_RETSTATE_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700419
420/* Used by PM_IVAHD_PWRSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700421#define OMAP4430_HWA_MEM_STATEST_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -0600422#define OMAP4430_HWA_MEM_STATEST_MASK (0x3 << 4)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700423
424/* Used by RM_MPU_RSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700425#define OMAP4430_ICECRUSHER_MPU_RST_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600426#define OMAP4430_ICECRUSHER_MPU_RST_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700427
428/* Used by RM_DUCATI_RSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700429#define OMAP4430_ICECRUSHER_RST1ST_SHIFT 5
Rajendra Nayak568997c2010-09-27 14:02:55 -0600430#define OMAP4430_ICECRUSHER_RST1ST_MASK (1 << 5)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700431
432/* Used by RM_DUCATI_RSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700433#define OMAP4430_ICECRUSHER_RST2ST_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -0600434#define OMAP4430_ICECRUSHER_RST2ST_MASK (1 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700435
436/* Used by RM_IVAHD_RSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700437#define OMAP4430_ICECRUSHER_SEQ1_RST1ST_SHIFT 5
Rajendra Nayak568997c2010-09-27 14:02:55 -0600438#define OMAP4430_ICECRUSHER_SEQ1_RST1ST_MASK (1 << 5)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700439
440/* Used by RM_IVAHD_RSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700441#define OMAP4430_ICECRUSHER_SEQ2_RST2ST_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -0600442#define OMAP4430_ICECRUSHER_SEQ2_RST2ST_MASK (1 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700443
444/* Used by PRM_RSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700445#define OMAP4430_ICEPICK_RST_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600446#define OMAP4430_ICEPICK_RST_MASK (1 << 9)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700447
448/* Used by PRM_VP_CORE_CONFIG, PRM_VP_IVA_CONFIG, PRM_VP_MPU_CONFIG */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700449#define OMAP4430_INITVDD_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -0600450#define OMAP4430_INITVDD_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700451
452/* Used by PRM_VP_CORE_CONFIG, PRM_VP_IVA_CONFIG, PRM_VP_MPU_CONFIG */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700453#define OMAP4430_INITVOLTAGE_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600454#define OMAP4430_INITVOLTAGE_MASK (0xff << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700455
456/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600457 * Used by PM_ABE_PWRSTST, PM_CAM_PWRSTST, PM_CEFUSE_PWRSTST, PM_CORE_PWRSTST,
458 * PM_DSS_PWRSTST, PM_EMU_PWRSTST, PM_GFX_PWRSTST, PM_IVAHD_PWRSTST,
459 * PM_L3INIT_PWRSTST, PM_L4PER_PWRSTST, PM_MPU_PWRSTST, PM_TESLA_PWRSTST
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700460 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700461#define OMAP4430_INTRANSITION_SHIFT 20
Rajendra Nayak568997c2010-09-27 14:02:55 -0600462#define OMAP4430_INTRANSITION_MASK (1 << 20)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700463
464/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700465#define OMAP4430_IO_EN_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600466#define OMAP4430_IO_EN_MASK (1 << 9)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700467
468/* Used by PRM_IO_PMCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700469#define OMAP4430_IO_ON_STATUS_SHIFT 5
Rajendra Nayak568997c2010-09-27 14:02:55 -0600470#define OMAP4430_IO_ON_STATUS_MASK (1 << 5)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700471
472/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700473#define OMAP4430_IO_ST_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600474#define OMAP4430_IO_ST_MASK (1 << 9)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700475
476/* Used by PRM_IO_PMCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700477#define OMAP4430_ISOCLK_OVERRIDE_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600478#define OMAP4430_ISOCLK_OVERRIDE_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700479
480/* Used by PRM_IO_PMCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700481#define OMAP4430_ISOCLK_STATUS_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600482#define OMAP4430_ISOCLK_STATUS_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700483
484/* Used by PRM_IO_PMCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700485#define OMAP4430_ISOOVR_EXTEND_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -0600486#define OMAP4430_ISOOVR_EXTEND_MASK (1 << 4)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700487
488/* Used by PRM_IO_COUNT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700489#define OMAP4430_ISO_2_ON_TIME_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600490#define OMAP4430_ISO_2_ON_TIME_MASK (0xff << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700491
492/* Used by PM_L3INIT_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700493#define OMAP4430_L3INIT_BANK1_ONSTATE_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -0600494#define OMAP4430_L3INIT_BANK1_ONSTATE_MASK (0x3 << 16)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700495
496/* Used by PM_L3INIT_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700497#define OMAP4430_L3INIT_BANK1_RETSTATE_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600498#define OMAP4430_L3INIT_BANK1_RETSTATE_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700499
500/* Used by PM_L3INIT_PWRSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700501#define OMAP4430_L3INIT_BANK1_STATEST_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -0600502#define OMAP4430_L3INIT_BANK1_STATEST_MASK (0x3 << 4)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700503
504/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600505 * Used by PM_ABE_PWRSTST, PM_CORE_PWRSTST, PM_IVAHD_PWRSTST,
506 * PM_L3INIT_PWRSTST, PM_L4PER_PWRSTST, PM_MPU_PWRSTST, PM_TESLA_PWRSTST
507 */
508#define OMAP4430_LASTPOWERSTATEENTERED_SHIFT 24
509#define OMAP4430_LASTPOWERSTATEENTERED_MASK (0x3 << 24)
510
511/*
512 * Used by PM_ABE_PWRSTCTRL, PM_CORE_PWRSTCTRL, PM_DSS_PWRSTCTRL,
513 * PM_IVAHD_PWRSTCTRL, PM_L3INIT_PWRSTCTRL, PM_L4PER_PWRSTCTRL,
514 * PM_MPU_PWRSTCTRL, PM_TESLA_PWRSTCTRL
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700515 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700516#define OMAP4430_LOGICRETSTATE_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -0600517#define OMAP4430_LOGICRETSTATE_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700518
519/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600520 * Used by PM_ABE_PWRSTST, PM_CAM_PWRSTST, PM_CEFUSE_PWRSTST, PM_CORE_PWRSTST,
521 * PM_DSS_PWRSTST, PM_EMU_PWRSTST, PM_GFX_PWRSTST, PM_IVAHD_PWRSTST,
522 * PM_L3INIT_PWRSTST, PM_L4PER_PWRSTST, PM_MPU_PWRSTST, PM_TESLA_PWRSTST
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700523 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700524#define OMAP4430_LOGICSTATEST_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -0600525#define OMAP4430_LOGICSTATEST_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700526
527/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600528 * Used by RM_ABE_AESS_CONTEXT, RM_ABE_DMIC_CONTEXT, RM_ABE_MCASP_CONTEXT,
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700529 * RM_ABE_MCBSP1_CONTEXT, RM_ABE_MCBSP2_CONTEXT, RM_ABE_MCBSP3_CONTEXT,
530 * RM_ABE_PDM_CONTEXT, RM_ABE_SLIMBUS_CONTEXT, RM_ABE_TIMER5_CONTEXT,
531 * RM_ABE_TIMER6_CONTEXT, RM_ABE_TIMER7_CONTEXT, RM_ABE_TIMER8_CONTEXT,
Rajendra Nayak568997c2010-09-27 14:02:55 -0600532 * RM_ABE_WDT3_CONTEXT, RM_ALWON_MDMINTC_CONTEXT, RM_ALWON_SR_CORE_CONTEXT,
533 * RM_ALWON_SR_IVA_CONTEXT, RM_ALWON_SR_MPU_CONTEXT, RM_CAM_FDIF_CONTEXT,
534 * RM_CAM_ISS_CONTEXT, RM_CEFUSE_CEFUSE_CONTEXT, RM_D2D_SAD2D_CONTEXT,
535 * RM_D2D_SAD2D_FW_CONTEXT, RM_DSS_DEISS_CONTEXT, RM_DSS_DSS_CONTEXT,
536 * RM_DUCATI_DUCATI_CONTEXT, RM_EMU_DEBUGSS_CONTEXT, RM_GFX_GFX_CONTEXT,
537 * RM_IVAHD_IVAHD_CONTEXT, RM_IVAHD_SL2_CONTEXT, RM_L3INIT_CCPTX_CONTEXT,
538 * RM_L3INIT_EMAC_CONTEXT, RM_L3INIT_P1500_CONTEXT, RM_L3INIT_PCIESS_CONTEXT,
539 * RM_L3INIT_SATA_CONTEXT, RM_L3INIT_TPPSS_CONTEXT, RM_L3INIT_UNIPRO1_CONTEXT,
540 * RM_L3INIT_USBPHYOCP2SCP_CONTEXT, RM_L3INIT_XHPI_CONTEXT,
541 * RM_L3INSTR_L3_3_CONTEXT, RM_L3INSTR_L3_INSTR_CONTEXT,
542 * RM_L3INSTR_OCP_WP1_CONTEXT, RM_L3_1_L3_1_CONTEXT, RM_L3_2_L3_2_CONTEXT,
543 * RM_L3_2_OCMC_RAM_CONTEXT, RM_L4CFG_L4_CFG_CONTEXT, RM_L4CFG_SAR_ROM_CONTEXT,
544 * RM_L4PER_ADC_CONTEXT, RM_L4PER_DMTIMER10_CONTEXT,
545 * RM_L4PER_DMTIMER11_CONTEXT, RM_L4PER_DMTIMER2_CONTEXT,
546 * RM_L4PER_DMTIMER3_CONTEXT, RM_L4PER_DMTIMER4_CONTEXT,
547 * RM_L4PER_DMTIMER9_CONTEXT, RM_L4PER_ELM_CONTEXT, RM_L4PER_HDQ1W_CONTEXT,
548 * RM_L4PER_HECC1_CONTEXT, RM_L4PER_HECC2_CONTEXT, RM_L4PER_I2C2_CONTEXT,
549 * RM_L4PER_I2C3_CONTEXT, RM_L4PER_I2C4_CONTEXT, RM_L4PER_I2C5_CONTEXT,
550 * RM_L4PER_L4_PER_CONTEXT, RM_L4PER_MCASP2_CONTEXT, RM_L4PER_MCASP3_CONTEXT,
551 * RM_L4PER_MCBSP4_CONTEXT, RM_L4PER_MCSPI1_CONTEXT, RM_L4PER_MCSPI2_CONTEXT,
552 * RM_L4PER_MCSPI3_CONTEXT, RM_L4PER_MCSPI4_CONTEXT, RM_L4PER_MGATE_CONTEXT,
553 * RM_L4PER_MMCSD3_CONTEXT, RM_L4PER_MMCSD4_CONTEXT, RM_L4PER_MMCSD5_CONTEXT,
554 * RM_L4PER_MSPROHG_CONTEXT, RM_L4PER_SLIMBUS2_CONTEXT,
555 * RM_L4SEC_PKAEIP29_CONTEXT, RM_MEMIF_DLL_CONTEXT, RM_MEMIF_DLL_H_CONTEXT,
556 * RM_MEMIF_DMM_CONTEXT, RM_MEMIF_EMIF_1_CONTEXT, RM_MEMIF_EMIF_2_CONTEXT,
557 * RM_MEMIF_EMIF_FW_CONTEXT, RM_MPU_MPU_CONTEXT, RM_TESLA_TESLA_CONTEXT,
558 * RM_WKUP_GPIO1_CONTEXT, RM_WKUP_KEYBOARD_CONTEXT, RM_WKUP_L4WKUP_CONTEXT,
559 * RM_WKUP_RTC_CONTEXT, RM_WKUP_SARRAM_CONTEXT, RM_WKUP_SYNCTIMER_CONTEXT,
560 * RM_WKUP_TIMER12_CONTEXT, RM_WKUP_TIMER1_CONTEXT, RM_WKUP_USIM_CONTEXT,
561 * RM_WKUP_WDT1_CONTEXT, RM_WKUP_WDT2_CONTEXT
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700562 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700563#define OMAP4430_LOSTCONTEXT_DFF_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600564#define OMAP4430_LOSTCONTEXT_DFF_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700565
566/*
567 * Used by RM_D2D_MODEM_ICR_CONTEXT, RM_D2D_SAD2D_CONTEXT,
Rajendra Nayak568997c2010-09-27 14:02:55 -0600568 * RM_D2D_SAD2D_FW_CONTEXT, RM_DSS_DSS_CONTEXT, RM_DUCATI_DUCATI_CONTEXT,
569 * RM_L3INIT_HSI_CONTEXT, RM_L3INIT_MMC1_CONTEXT, RM_L3INIT_MMC2_CONTEXT,
570 * RM_L3INIT_MMC6_CONTEXT, RM_L3INIT_USB_HOST_CONTEXT,
571 * RM_L3INIT_USB_HOST_FS_CONTEXT, RM_L3INIT_USB_OTG_CONTEXT,
572 * RM_L3INIT_USB_TLL_CONTEXT, RM_L3INSTR_L3_3_CONTEXT,
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700573 * RM_L3INSTR_OCP_WP1_CONTEXT, RM_L3_1_L3_1_CONTEXT, RM_L3_2_GPMC_CONTEXT,
574 * RM_L3_2_L3_2_CONTEXT, RM_L4CFG_HW_SEM_CONTEXT, RM_L4CFG_L4_CFG_CONTEXT,
Rajendra Nayak568997c2010-09-27 14:02:55 -0600575 * RM_L4CFG_MAILBOX_CONTEXT, RM_L4PER_GPIO2_CONTEXT, RM_L4PER_GPIO3_CONTEXT,
576 * RM_L4PER_GPIO4_CONTEXT, RM_L4PER_GPIO5_CONTEXT, RM_L4PER_GPIO6_CONTEXT,
577 * RM_L4PER_I2C1_CONTEXT, RM_L4PER_L4_PER_CONTEXT, RM_L4PER_UART1_CONTEXT,
578 * RM_L4PER_UART2_CONTEXT, RM_L4PER_UART3_CONTEXT, RM_L4PER_UART4_CONTEXT,
579 * RM_L4SEC_AES1_CONTEXT, RM_L4SEC_AES2_CONTEXT, RM_L4SEC_CRYPTODMA_CONTEXT,
580 * RM_L4SEC_DES3DES_CONTEXT, RM_L4SEC_RNG_CONTEXT, RM_L4SEC_SHA2MD51_CONTEXT,
581 * RM_MEMIF_DMM_CONTEXT, RM_MEMIF_EMIF_1_CONTEXT, RM_MEMIF_EMIF_2_CONTEXT,
582 * RM_MEMIF_EMIF_FW_CONTEXT, RM_MEMIF_EMIF_H1_CONTEXT,
583 * RM_MEMIF_EMIF_H2_CONTEXT, RM_SDMA_SDMA_CONTEXT, RM_TESLA_TESLA_CONTEXT
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700584 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700585#define OMAP4430_LOSTCONTEXT_RFF_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600586#define OMAP4430_LOSTCONTEXT_RFF_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700587
588/* Used by RM_ABE_AESS_CONTEXT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700589#define OMAP4430_LOSTMEM_AESSMEM_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600590#define OMAP4430_LOSTMEM_AESSMEM_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700591
592/* Used by RM_CAM_FDIF_CONTEXT, RM_CAM_ISS_CONTEXT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700593#define OMAP4430_LOSTMEM_CAM_MEM_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600594#define OMAP4430_LOSTMEM_CAM_MEM_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700595
596/* Used by RM_L3INSTR_OCP_WP1_CONTEXT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700597#define OMAP4430_LOSTMEM_CORE_NRET_BANK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600598#define OMAP4430_LOSTMEM_CORE_NRET_BANK_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700599
600/* Renamed from LOSTMEM_CORE_NRET_BANK Used by RM_MEMIF_DMM_CONTEXT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700601#define OMAP4430_LOSTMEM_CORE_NRET_BANK_9_9_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600602#define OMAP4430_LOSTMEM_CORE_NRET_BANK_9_9_MASK (1 << 9)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700603
604/* Used by RM_L3_2_OCMC_RAM_CONTEXT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700605#define OMAP4430_LOSTMEM_CORE_OCMRAM_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600606#define OMAP4430_LOSTMEM_CORE_OCMRAM_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700607
608/*
609 * Used by RM_D2D_MODEM_ICR_CONTEXT, RM_MEMIF_DMM_CONTEXT,
610 * RM_SDMA_SDMA_CONTEXT
611 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700612#define OMAP4430_LOSTMEM_CORE_OTHER_BANK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600613#define OMAP4430_LOSTMEM_CORE_OTHER_BANK_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700614
615/* Used by RM_DSS_DEISS_CONTEXT, RM_DSS_DSS_CONTEXT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700616#define OMAP4430_LOSTMEM_DSS_MEM_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600617#define OMAP4430_LOSTMEM_DSS_MEM_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700618
619/* Used by RM_DUCATI_DUCATI_CONTEXT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700620#define OMAP4430_LOSTMEM_DUCATI_L2RAM_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600621#define OMAP4430_LOSTMEM_DUCATI_L2RAM_MASK (1 << 9)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700622
623/* Used by RM_DUCATI_DUCATI_CONTEXT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700624#define OMAP4430_LOSTMEM_DUCATI_UNICACHE_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600625#define OMAP4430_LOSTMEM_DUCATI_UNICACHE_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700626
627/* Used by RM_EMU_DEBUGSS_CONTEXT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700628#define OMAP4430_LOSTMEM_EMU_BANK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600629#define OMAP4430_LOSTMEM_EMU_BANK_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700630
631/* Used by RM_GFX_GFX_CONTEXT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700632#define OMAP4430_LOSTMEM_GFX_MEM_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600633#define OMAP4430_LOSTMEM_GFX_MEM_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700634
635/* Used by RM_IVAHD_IVAHD_CONTEXT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700636#define OMAP4430_LOSTMEM_HWA_MEM_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600637#define OMAP4430_LOSTMEM_HWA_MEM_MASK (1 << 10)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700638
639/*
640 * Used by RM_L3INIT_CCPTX_CONTEXT, RM_L3INIT_EMAC_CONTEXT,
641 * RM_L3INIT_HSI_CONTEXT, RM_L3INIT_MMC1_CONTEXT, RM_L3INIT_MMC2_CONTEXT,
642 * RM_L3INIT_MMC6_CONTEXT, RM_L3INIT_PCIESS_CONTEXT, RM_L3INIT_SATA_CONTEXT,
643 * RM_L3INIT_TPPSS_CONTEXT, RM_L3INIT_UNIPRO1_CONTEXT,
644 * RM_L3INIT_USB_OTG_CONTEXT, RM_L3INIT_XHPI_CONTEXT
645 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700646#define OMAP4430_LOSTMEM_L3INIT_BANK1_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600647#define OMAP4430_LOSTMEM_L3INIT_BANK1_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700648
649/* Used by RM_MPU_MPU_CONTEXT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700650#define OMAP4430_LOSTMEM_MPU_L1_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600651#define OMAP4430_LOSTMEM_MPU_L1_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700652
653/* Used by RM_MPU_MPU_CONTEXT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700654#define OMAP4430_LOSTMEM_MPU_L2_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600655#define OMAP4430_LOSTMEM_MPU_L2_MASK (1 << 9)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700656
657/* Used by RM_MPU_MPU_CONTEXT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700658#define OMAP4430_LOSTMEM_MPU_RAM_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600659#define OMAP4430_LOSTMEM_MPU_RAM_MASK (1 << 10)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700660
661/*
662 * Used by RM_L4PER_HECC1_CONTEXT, RM_L4PER_HECC2_CONTEXT,
663 * RM_L4PER_MCBSP4_CONTEXT, RM_L4PER_MMCSD3_CONTEXT, RM_L4PER_MMCSD4_CONTEXT,
664 * RM_L4PER_MMCSD5_CONTEXT, RM_L4PER_SLIMBUS2_CONTEXT, RM_L4SEC_PKAEIP29_CONTEXT
665 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700666#define OMAP4430_LOSTMEM_NONRETAINED_BANK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600667#define OMAP4430_LOSTMEM_NONRETAINED_BANK_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700668
669/*
670 * Used by RM_ABE_DMIC_CONTEXT, RM_ABE_MCBSP1_CONTEXT, RM_ABE_MCBSP2_CONTEXT,
671 * RM_ABE_MCBSP3_CONTEXT, RM_ABE_PDM_CONTEXT, RM_ABE_SLIMBUS_CONTEXT
672 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700673#define OMAP4430_LOSTMEM_PERIHPMEM_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600674#define OMAP4430_LOSTMEM_PERIHPMEM_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700675
676/*
677 * Used by RM_L4PER_MSPROHG_CONTEXT, RM_L4PER_UART1_CONTEXT,
678 * RM_L4PER_UART2_CONTEXT, RM_L4PER_UART3_CONTEXT, RM_L4PER_UART4_CONTEXT,
679 * RM_L4SEC_CRYPTODMA_CONTEXT
680 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700681#define OMAP4430_LOSTMEM_RETAINED_BANK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600682#define OMAP4430_LOSTMEM_RETAINED_BANK_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700683
684/* Used by RM_IVAHD_SL2_CONTEXT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700685#define OMAP4430_LOSTMEM_SL2_MEM_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600686#define OMAP4430_LOSTMEM_SL2_MEM_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700687
688/* Used by RM_IVAHD_IVAHD_CONTEXT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700689#define OMAP4430_LOSTMEM_TCM1_MEM_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600690#define OMAP4430_LOSTMEM_TCM1_MEM_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700691
692/* Used by RM_IVAHD_IVAHD_CONTEXT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700693#define OMAP4430_LOSTMEM_TCM2_MEM_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600694#define OMAP4430_LOSTMEM_TCM2_MEM_MASK (1 << 9)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700695
696/* Used by RM_TESLA_TESLA_CONTEXT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700697#define OMAP4430_LOSTMEM_TESLA_EDMA_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600698#define OMAP4430_LOSTMEM_TESLA_EDMA_MASK (1 << 10)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700699
700/* Used by RM_TESLA_TESLA_CONTEXT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700701#define OMAP4430_LOSTMEM_TESLA_L1_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600702#define OMAP4430_LOSTMEM_TESLA_L1_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700703
704/* Used by RM_TESLA_TESLA_CONTEXT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700705#define OMAP4430_LOSTMEM_TESLA_L2_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600706#define OMAP4430_LOSTMEM_TESLA_L2_MASK (1 << 9)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700707
708/* Used by RM_WKUP_SARRAM_CONTEXT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700709#define OMAP4430_LOSTMEM_WKUP_BANK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600710#define OMAP4430_LOSTMEM_WKUP_BANK_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700711
712/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600713 * Used by PM_ABE_PWRSTCTRL, PM_CAM_PWRSTCTRL, PM_CEFUSE_PWRSTCTRL,
714 * PM_CORE_PWRSTCTRL, PM_DSS_PWRSTCTRL, PM_GFX_PWRSTCTRL, PM_IVAHD_PWRSTCTRL,
715 * PM_L3INIT_PWRSTCTRL, PM_L4PER_PWRSTCTRL, PM_MPU_PWRSTCTRL, PM_TESLA_PWRSTCTRL
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700716 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700717#define OMAP4430_LOWPOWERSTATECHANGE_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -0600718#define OMAP4430_LOWPOWERSTATECHANGE_MASK (1 << 4)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700719
720/* Used by PRM_MODEM_IF_CTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700721#define OMAP4430_MODEM_READY_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600722#define OMAP4430_MODEM_READY_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700723
724/* Used by PRM_MODEM_IF_CTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700725#define OMAP4430_MODEM_SHUTDOWN_IRQ_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600726#define OMAP4430_MODEM_SHUTDOWN_IRQ_MASK (1 << 9)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700727
728/* Used by PRM_MODEM_IF_CTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700729#define OMAP4430_MODEM_SLEEP_ST_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -0600730#define OMAP4430_MODEM_SLEEP_ST_MASK (1 << 16)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700731
732/* Used by PRM_MODEM_IF_CTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700733#define OMAP4430_MODEM_WAKE_IRQ_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600734#define OMAP4430_MODEM_WAKE_IRQ_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700735
736/* Used by PM_MPU_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700737#define OMAP4430_MPU_L1_ONSTATE_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -0600738#define OMAP4430_MPU_L1_ONSTATE_MASK (0x3 << 16)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700739
740/* Used by PM_MPU_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700741#define OMAP4430_MPU_L1_RETSTATE_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600742#define OMAP4430_MPU_L1_RETSTATE_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700743
744/* Used by PM_MPU_PWRSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700745#define OMAP4430_MPU_L1_STATEST_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -0600746#define OMAP4430_MPU_L1_STATEST_MASK (0x3 << 4)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700747
748/* Used by PM_MPU_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700749#define OMAP4430_MPU_L2_ONSTATE_SHIFT 18
Rajendra Nayak568997c2010-09-27 14:02:55 -0600750#define OMAP4430_MPU_L2_ONSTATE_MASK (0x3 << 18)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700751
752/* Used by PM_MPU_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700753#define OMAP4430_MPU_L2_RETSTATE_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600754#define OMAP4430_MPU_L2_RETSTATE_MASK (1 << 9)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700755
756/* Used by PM_MPU_PWRSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700757#define OMAP4430_MPU_L2_STATEST_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -0600758#define OMAP4430_MPU_L2_STATEST_MASK (0x3 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700759
760/* Used by PM_MPU_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700761#define OMAP4430_MPU_RAM_ONSTATE_SHIFT 20
Rajendra Nayak568997c2010-09-27 14:02:55 -0600762#define OMAP4430_MPU_RAM_ONSTATE_MASK (0x3 << 20)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700763
764/* Used by PM_MPU_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700765#define OMAP4430_MPU_RAM_RETSTATE_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600766#define OMAP4430_MPU_RAM_RETSTATE_MASK (1 << 10)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700767
768/* Used by PM_MPU_PWRSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700769#define OMAP4430_MPU_RAM_STATEST_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600770#define OMAP4430_MPU_RAM_STATEST_MASK (0x3 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700771
772/* Used by PRM_RSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700773#define OMAP4430_MPU_SECURITY_VIOL_RST_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -0600774#define OMAP4430_MPU_SECURITY_VIOL_RST_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700775
776/* Used by PRM_RSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700777#define OMAP4430_MPU_WDT_RST_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -0600778#define OMAP4430_MPU_WDT_RST_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700779
780/* Used by PM_L4PER_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700781#define OMAP4430_NONRETAINED_BANK_ONSTATE_SHIFT 18
Rajendra Nayak568997c2010-09-27 14:02:55 -0600782#define OMAP4430_NONRETAINED_BANK_ONSTATE_MASK (0x3 << 18)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700783
784/* Used by PM_L4PER_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700785#define OMAP4430_NONRETAINED_BANK_RETSTATE_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600786#define OMAP4430_NONRETAINED_BANK_RETSTATE_MASK (1 << 9)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700787
788/* Used by PM_L4PER_PWRSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700789#define OMAP4430_NONRETAINED_BANK_STATEST_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -0600790#define OMAP4430_NONRETAINED_BANK_STATEST_MASK (0x3 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700791
792/* Used by PM_CORE_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700793#define OMAP4430_OCP_NRET_BANK_ONSTATE_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600794#define OMAP4430_OCP_NRET_BANK_ONSTATE_MASK (0x3 << 24)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700795
796/* Used by PM_CORE_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700797#define OMAP4430_OCP_NRET_BANK_RETSTATE_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -0600798#define OMAP4430_OCP_NRET_BANK_RETSTATE_MASK (1 << 12)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700799
800/* Used by PM_CORE_PWRSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700801#define OMAP4430_OCP_NRET_BANK_STATEST_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -0600802#define OMAP4430_OCP_NRET_BANK_STATEST_MASK (0x3 << 12)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700803
804/*
805 * Used by PRM_VC_VAL_CMD_VDD_CORE_L, PRM_VC_VAL_CMD_VDD_IVA_L,
806 * PRM_VC_VAL_CMD_VDD_MPU_L
807 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700808#define OMAP4430_OFF_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600809#define OMAP4430_OFF_MASK (0xff << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700810
811/*
812 * Used by PRM_VC_VAL_CMD_VDD_CORE_L, PRM_VC_VAL_CMD_VDD_IVA_L,
813 * PRM_VC_VAL_CMD_VDD_MPU_L
814 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700815#define OMAP4430_ON_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600816#define OMAP4430_ON_MASK (0xff << 24)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700817
818/*
819 * Used by PRM_VC_VAL_CMD_VDD_CORE_L, PRM_VC_VAL_CMD_VDD_IVA_L,
820 * PRM_VC_VAL_CMD_VDD_MPU_L
821 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700822#define OMAP4430_ONLP_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -0600823#define OMAP4430_ONLP_MASK (0xff << 16)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700824
825/* Used by PRM_LDO_ABB_IVA_CTRL, PRM_LDO_ABB_MPU_CTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700826#define OMAP4430_OPP_CHANGE_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -0600827#define OMAP4430_OPP_CHANGE_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700828
829/* Used by PRM_LDO_ABB_IVA_CTRL, PRM_LDO_ABB_MPU_CTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700830#define OMAP4430_OPP_SEL_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600831#define OMAP4430_OPP_SEL_MASK (0x3 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700832
833/* Used by PRM_SRAM_COUNT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700834#define OMAP4430_PCHARGECNT_VALUE_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600835#define OMAP4430_PCHARGECNT_VALUE_MASK (0x3f << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700836
837/* Used by PRM_PSCON_COUNT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700838#define OMAP4430_PCHARGE_TIME_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600839#define OMAP4430_PCHARGE_TIME_MASK (0xff << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700840
841/* Used by PM_ABE_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700842#define OMAP4430_PERIPHMEM_ONSTATE_SHIFT 20
Rajendra Nayak568997c2010-09-27 14:02:55 -0600843#define OMAP4430_PERIPHMEM_ONSTATE_MASK (0x3 << 20)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700844
845/* Used by PM_ABE_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700846#define OMAP4430_PERIPHMEM_RETSTATE_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600847#define OMAP4430_PERIPHMEM_RETSTATE_MASK (1 << 10)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700848
849/* Used by PM_ABE_PWRSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700850#define OMAP4430_PERIPHMEM_STATEST_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600851#define OMAP4430_PERIPHMEM_STATEST_MASK (0x3 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700852
853/* Used by PRM_PHASE1_CNDP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700854#define OMAP4430_PHASE1_CNDP_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600855#define OMAP4430_PHASE1_CNDP_MASK (0xffffffff << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700856
857/* Used by PRM_PHASE2A_CNDP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700858#define OMAP4430_PHASE2A_CNDP_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600859#define OMAP4430_PHASE2A_CNDP_MASK (0xffffffff << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700860
861/* Used by PRM_PHASE2B_CNDP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700862#define OMAP4430_PHASE2B_CNDP_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600863#define OMAP4430_PHASE2B_CNDP_MASK (0xffffffff << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700864
865/* Used by PRM_PSCON_COUNT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700866#define OMAP4430_PONOUT_2_PGOODIN_TIME_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600867#define OMAP4430_PONOUT_2_PGOODIN_TIME_MASK (0xff << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700868
869/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600870 * Used by PM_ABE_PWRSTCTRL, PM_CAM_PWRSTCTRL, PM_CEFUSE_PWRSTCTRL,
871 * PM_CORE_PWRSTCTRL, PM_DSS_PWRSTCTRL, PM_EMU_PWRSTCTRL, PM_GFX_PWRSTCTRL,
872 * PM_IVAHD_PWRSTCTRL, PM_L3INIT_PWRSTCTRL, PM_L4PER_PWRSTCTRL,
873 * PM_MPU_PWRSTCTRL, PM_TESLA_PWRSTCTRL
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700874 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700875#define OMAP4430_POWERSTATE_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600876#define OMAP4430_POWERSTATE_MASK (0x3 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700877
878/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600879 * Used by PM_ABE_PWRSTST, PM_CAM_PWRSTST, PM_CEFUSE_PWRSTST, PM_CORE_PWRSTST,
880 * PM_DSS_PWRSTST, PM_EMU_PWRSTST, PM_GFX_PWRSTST, PM_IVAHD_PWRSTST,
881 * PM_L3INIT_PWRSTST, PM_L4PER_PWRSTST, PM_MPU_PWRSTST, PM_TESLA_PWRSTST
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700882 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700883#define OMAP4430_POWERSTATEST_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600884#define OMAP4430_POWERSTATEST_MASK (0x3 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700885
886/* Used by PRM_PWRREQCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700887#define OMAP4430_PWRREQ_COND_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600888#define OMAP4430_PWRREQ_COND_MASK (0x3 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700889
890/* Used by PRM_VC_CFG_CHANNEL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700891#define OMAP4430_RACEN_VDD_CORE_L_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -0600892#define OMAP4430_RACEN_VDD_CORE_L_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700893
894/* Used by PRM_VC_CFG_CHANNEL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700895#define OMAP4430_RACEN_VDD_IVA_L_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -0600896#define OMAP4430_RACEN_VDD_IVA_L_MASK (1 << 11)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700897
898/* Used by PRM_VC_CFG_CHANNEL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700899#define OMAP4430_RACEN_VDD_MPU_L_SHIFT 20
Rajendra Nayak568997c2010-09-27 14:02:55 -0600900#define OMAP4430_RACEN_VDD_MPU_L_MASK (1 << 20)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700901
902/* Used by PRM_VC_CFG_CHANNEL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700903#define OMAP4430_RAC_VDD_CORE_L_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -0600904#define OMAP4430_RAC_VDD_CORE_L_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700905
906/* Used by PRM_VC_CFG_CHANNEL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700907#define OMAP4430_RAC_VDD_IVA_L_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600908#define OMAP4430_RAC_VDD_IVA_L_MASK (1 << 10)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700909
910/* Used by PRM_VC_CFG_CHANNEL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700911#define OMAP4430_RAC_VDD_MPU_L_SHIFT 19
Rajendra Nayak568997c2010-09-27 14:02:55 -0600912#define OMAP4430_RAC_VDD_MPU_L_MASK (1 << 19)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700913
914/*
915 * Used by PRM_VOLTSETUP_CORE_OFF, PRM_VOLTSETUP_CORE_RET_SLEEP,
916 * PRM_VOLTSETUP_IVA_OFF, PRM_VOLTSETUP_IVA_RET_SLEEP, PRM_VOLTSETUP_MPU_OFF,
917 * PRM_VOLTSETUP_MPU_RET_SLEEP
918 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700919#define OMAP4430_RAMP_DOWN_COUNT_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -0600920#define OMAP4430_RAMP_DOWN_COUNT_MASK (0x3f << 16)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700921
922/*
923 * Used by PRM_VOLTSETUP_CORE_OFF, PRM_VOLTSETUP_CORE_RET_SLEEP,
924 * PRM_VOLTSETUP_IVA_OFF, PRM_VOLTSETUP_IVA_RET_SLEEP, PRM_VOLTSETUP_MPU_OFF,
925 * PRM_VOLTSETUP_MPU_RET_SLEEP
926 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700927#define OMAP4430_RAMP_DOWN_PRESCAL_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600928#define OMAP4430_RAMP_DOWN_PRESCAL_MASK (0x3 << 24)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700929
930/*
931 * Used by PRM_VOLTSETUP_CORE_OFF, PRM_VOLTSETUP_CORE_RET_SLEEP,
932 * PRM_VOLTSETUP_IVA_OFF, PRM_VOLTSETUP_IVA_RET_SLEEP, PRM_VOLTSETUP_MPU_OFF,
933 * PRM_VOLTSETUP_MPU_RET_SLEEP
934 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700935#define OMAP4430_RAMP_UP_COUNT_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600936#define OMAP4430_RAMP_UP_COUNT_MASK (0x3f << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700937
938/*
939 * Used by PRM_VOLTSETUP_CORE_OFF, PRM_VOLTSETUP_CORE_RET_SLEEP,
940 * PRM_VOLTSETUP_IVA_OFF, PRM_VOLTSETUP_IVA_RET_SLEEP, PRM_VOLTSETUP_MPU_OFF,
941 * PRM_VOLTSETUP_MPU_RET_SLEEP
942 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700943#define OMAP4430_RAMP_UP_PRESCAL_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600944#define OMAP4430_RAMP_UP_PRESCAL_MASK (0x3 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700945
946/* Used by PRM_VC_CFG_CHANNEL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700947#define OMAP4430_RAV_VDD_CORE_L_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600948#define OMAP4430_RAV_VDD_CORE_L_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700949
950/* Used by PRM_VC_CFG_CHANNEL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700951#define OMAP4430_RAV_VDD_IVA_L_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600952#define OMAP4430_RAV_VDD_IVA_L_MASK (1 << 9)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700953
954/* Used by PRM_VC_CFG_CHANNEL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700955#define OMAP4430_RAV_VDD_MPU_L_SHIFT 18
Rajendra Nayak568997c2010-09-27 14:02:55 -0600956#define OMAP4430_RAV_VDD_MPU_L_MASK (1 << 18)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700957
958/* Used by PRM_VC_VAL_BYPASS */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700959#define OMAP4430_REGADDR_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600960#define OMAP4430_REGADDR_MASK (0xff << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700961
962/*
963 * Used by PRM_VC_VAL_CMD_VDD_CORE_L, PRM_VC_VAL_CMD_VDD_IVA_L,
964 * PRM_VC_VAL_CMD_VDD_MPU_L
965 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700966#define OMAP4430_RET_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600967#define OMAP4430_RET_MASK (0xff << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700968
969/* Used by PM_L4PER_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700970#define OMAP4430_RETAINED_BANK_ONSTATE_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -0600971#define OMAP4430_RETAINED_BANK_ONSTATE_MASK (0x3 << 16)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700972
973/* Used by PM_L4PER_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700974#define OMAP4430_RETAINED_BANK_RETSTATE_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600975#define OMAP4430_RETAINED_BANK_RETSTATE_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700976
977/* Used by PM_L4PER_PWRSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700978#define OMAP4430_RETAINED_BANK_STATEST_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -0600979#define OMAP4430_RETAINED_BANK_STATEST_MASK (0x3 << 4)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700980
981/*
982 * Used by PRM_LDO_SRAM_CORE_CTRL, PRM_LDO_SRAM_IVA_CTRL,
983 * PRM_LDO_SRAM_MPU_CTRL
984 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700985#define OMAP4430_RETMODE_ENABLE_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600986#define OMAP4430_RETMODE_ENABLE_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700987
Rajendra Nayak568997c2010-09-27 14:02:55 -0600988/* Used by RM_DUCATI_RSTCTRL, RM_IVAHD_RSTCTRL, RM_TESLA_RSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700989#define OMAP4430_RST1_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600990#define OMAP4430_RST1_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700991
Rajendra Nayak568997c2010-09-27 14:02:55 -0600992/* Used by RM_DUCATI_RSTST, RM_IVAHD_RSTST, RM_TESLA_RSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700993#define OMAP4430_RST1ST_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600994#define OMAP4430_RST1ST_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700995
Rajendra Nayak568997c2010-09-27 14:02:55 -0600996/* Used by RM_DUCATI_RSTCTRL, RM_IVAHD_RSTCTRL, RM_TESLA_RSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700997#define OMAP4430_RST2_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600998#define OMAP4430_RST2_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700999
Rajendra Nayak568997c2010-09-27 14:02:55 -06001000/* Used by RM_DUCATI_RSTST, RM_IVAHD_RSTST, RM_TESLA_RSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001001#define OMAP4430_RST2ST_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001002#define OMAP4430_RST2ST_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001003
1004/* Used by RM_DUCATI_RSTCTRL, RM_IVAHD_RSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001005#define OMAP4430_RST3_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06001006#define OMAP4430_RST3_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001007
1008/* Used by RM_DUCATI_RSTST, RM_IVAHD_RSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001009#define OMAP4430_RST3ST_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06001010#define OMAP4430_RST3ST_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001011
1012/* Used by PRM_RSTTIME */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001013#define OMAP4430_RSTTIME1_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001014#define OMAP4430_RSTTIME1_MASK (0x3ff << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001015
1016/* Used by PRM_RSTTIME */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001017#define OMAP4430_RSTTIME2_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -06001018#define OMAP4430_RSTTIME2_MASK (0x1f << 10)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001019
1020/* Used by PRM_RSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001021#define OMAP4430_RST_GLOBAL_COLD_SW_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001022#define OMAP4430_RST_GLOBAL_COLD_SW_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001023
1024/* Used by PRM_RSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001025#define OMAP4430_RST_GLOBAL_WARM_SW_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001026#define OMAP4430_RST_GLOBAL_WARM_SW_MASK (1 << 0)
1027
1028/* Used by REVISION_PRM */
1029#define OMAP4430_R_RTL_SHIFT 11
1030#define OMAP4430_R_RTL_MASK (0x1f << 11)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001031
1032/* Used by PRM_VC_CFG_CHANNEL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001033#define OMAP4430_SA_VDD_CORE_L_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001034#define OMAP4430_SA_VDD_CORE_L_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001035
1036/* Renamed from SA_VDD_CORE_L Used by PRM_VC_SMPS_SA */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001037#define OMAP4430_SA_VDD_CORE_L_0_6_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001038#define OMAP4430_SA_VDD_CORE_L_0_6_MASK (0x7f << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001039
1040/* Used by PRM_VC_CFG_CHANNEL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001041#define OMAP4430_SA_VDD_IVA_L_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001042#define OMAP4430_SA_VDD_IVA_L_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001043
1044/* Renamed from SA_VDD_IVA_L Used by PRM_VC_SMPS_SA */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001045#define OMAP4430_SA_VDD_IVA_L_PRM_VC_SMPS_SA_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001046#define OMAP4430_SA_VDD_IVA_L_PRM_VC_SMPS_SA_MASK (0x7f << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001047
1048/* Used by PRM_VC_CFG_CHANNEL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001049#define OMAP4430_SA_VDD_MPU_L_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -06001050#define OMAP4430_SA_VDD_MPU_L_MASK (1 << 16)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001051
1052/* Renamed from SA_VDD_MPU_L Used by PRM_VC_SMPS_SA */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001053#define OMAP4430_SA_VDD_MPU_L_PRM_VC_SMPS_SA_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -06001054#define OMAP4430_SA_VDD_MPU_L_PRM_VC_SMPS_SA_MASK (0x7f << 16)
1055
1056/* Used by REVISION_PRM */
1057#define OMAP4430_SCHEME_SHIFT 30
1058#define OMAP4430_SCHEME_MASK (0x3 << 30)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001059
1060/* Used by PRM_VC_CFG_I2C_CLK */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001061#define OMAP4430_SCLH_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001062#define OMAP4430_SCLH_MASK (0xff << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001063
1064/* Used by PRM_VC_CFG_I2C_CLK */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001065#define OMAP4430_SCLL_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001066#define OMAP4430_SCLL_MASK (0xff << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001067
1068/* Used by PRM_RSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001069#define OMAP4430_SECURE_WDT_RST_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -06001070#define OMAP4430_SECURE_WDT_RST_MASK (1 << 4)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001071
1072/* Used by PM_IVAHD_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001073#define OMAP4430_SL2_MEM_ONSTATE_SHIFT 18
Rajendra Nayak568997c2010-09-27 14:02:55 -06001074#define OMAP4430_SL2_MEM_ONSTATE_MASK (0x3 << 18)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001075
1076/* Used by PM_IVAHD_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001077#define OMAP4430_SL2_MEM_RETSTATE_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001078#define OMAP4430_SL2_MEM_RETSTATE_MASK (1 << 9)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001079
1080/* Used by PM_IVAHD_PWRSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001081#define OMAP4430_SL2_MEM_STATEST_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -06001082#define OMAP4430_SL2_MEM_STATEST_MASK (0x3 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001083
1084/* Used by PRM_VC_VAL_BYPASS */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001085#define OMAP4430_SLAVEADDR_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001086#define OMAP4430_SLAVEADDR_MASK (0x7f << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001087
1088/* Used by PRM_LDO_ABB_IVA_SETUP, PRM_LDO_ABB_MPU_SETUP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001089#define OMAP4430_SLEEP_RBB_SEL_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -06001090#define OMAP4430_SLEEP_RBB_SEL_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001091
1092/* Used by PRM_SRAM_COUNT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001093#define OMAP4430_SLPCNT_VALUE_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -06001094#define OMAP4430_SLPCNT_VALUE_MASK (0xff << 16)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001095
1096/* Used by PRM_VP_CORE_VSTEPMAX, PRM_VP_IVA_VSTEPMAX, PRM_VP_MPU_VSTEPMAX */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001097#define OMAP4430_SMPSWAITTIMEMAX_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001098#define OMAP4430_SMPSWAITTIMEMAX_MASK (0xffff << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001099
1100/* Used by PRM_VP_CORE_VSTEPMIN, PRM_VP_IVA_VSTEPMIN, PRM_VP_MPU_VSTEPMIN */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001101#define OMAP4430_SMPSWAITTIMEMIN_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001102#define OMAP4430_SMPSWAITTIMEMIN_MASK (0xffff << 8)
1103
1104/* Used by PRM_VC_ERRST */
1105#define OMAP4430_SMPS_RA_ERR_CORE_SHIFT 1
1106#define OMAP4430_SMPS_RA_ERR_CORE_MASK (1 << 1)
1107
1108/* Used by PRM_VC_ERRST */
1109#define OMAP4430_SMPS_RA_ERR_IVA_SHIFT 9
1110#define OMAP4430_SMPS_RA_ERR_IVA_MASK (1 << 9)
1111
1112/* Used by PRM_VC_ERRST */
1113#define OMAP4430_SMPS_RA_ERR_MPU_SHIFT 17
1114#define OMAP4430_SMPS_RA_ERR_MPU_MASK (1 << 17)
1115
1116/* Used by PRM_VC_ERRST */
1117#define OMAP4430_SMPS_SA_ERR_CORE_SHIFT 0
1118#define OMAP4430_SMPS_SA_ERR_CORE_MASK (1 << 0)
1119
1120/* Used by PRM_VC_ERRST */
1121#define OMAP4430_SMPS_SA_ERR_IVA_SHIFT 8
1122#define OMAP4430_SMPS_SA_ERR_IVA_MASK (1 << 8)
1123
1124/* Used by PRM_VC_ERRST */
1125#define OMAP4430_SMPS_SA_ERR_MPU_SHIFT 16
1126#define OMAP4430_SMPS_SA_ERR_MPU_MASK (1 << 16)
1127
1128/* Used by PRM_VC_ERRST */
1129#define OMAP4430_SMPS_TIMEOUT_ERR_CORE_SHIFT 2
1130#define OMAP4430_SMPS_TIMEOUT_ERR_CORE_MASK (1 << 2)
1131
1132/* Used by PRM_VC_ERRST */
1133#define OMAP4430_SMPS_TIMEOUT_ERR_IVA_SHIFT 10
1134#define OMAP4430_SMPS_TIMEOUT_ERR_IVA_MASK (1 << 10)
1135
1136/* Used by PRM_VC_ERRST */
1137#define OMAP4430_SMPS_TIMEOUT_ERR_MPU_SHIFT 18
1138#define OMAP4430_SMPS_TIMEOUT_ERR_MPU_MASK (1 << 18)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001139
1140/* Used by PRM_LDO_ABB_IVA_SETUP, PRM_LDO_ABB_MPU_SETUP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001141#define OMAP4430_SR2EN_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001142#define OMAP4430_SR2EN_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001143
1144/* Used by PRM_LDO_ABB_IVA_CTRL, PRM_LDO_ABB_MPU_CTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001145#define OMAP4430_SR2_IN_TRANSITION_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -06001146#define OMAP4430_SR2_IN_TRANSITION_MASK (1 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001147
1148/* Used by PRM_LDO_ABB_IVA_CTRL, PRM_LDO_ABB_MPU_CTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001149#define OMAP4430_SR2_STATUS_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -06001150#define OMAP4430_SR2_STATUS_MASK (0x3 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001151
1152/* Used by PRM_LDO_ABB_IVA_SETUP, PRM_LDO_ABB_MPU_SETUP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001153#define OMAP4430_SR2_WTCNT_VALUE_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001154#define OMAP4430_SR2_WTCNT_VALUE_MASK (0xff << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001155
1156/*
1157 * Used by PRM_LDO_SRAM_CORE_CTRL, PRM_LDO_SRAM_IVA_CTRL,
1158 * PRM_LDO_SRAM_MPU_CTRL
1159 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001160#define OMAP4430_SRAMLDO_STATUS_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001161#define OMAP4430_SRAMLDO_STATUS_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001162
1163/*
1164 * Used by PRM_LDO_SRAM_CORE_CTRL, PRM_LDO_SRAM_IVA_CTRL,
1165 * PRM_LDO_SRAM_MPU_CTRL
1166 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001167#define OMAP4430_SRAM_IN_TRANSITION_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001168#define OMAP4430_SRAM_IN_TRANSITION_MASK (1 << 9)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001169
1170/* Used by PRM_VC_CFG_I2C_MODE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001171#define OMAP4430_SRMODEEN_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -06001172#define OMAP4430_SRMODEEN_MASK (1 << 4)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001173
1174/* Used by PRM_VOLTSETUP_WARMRESET */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001175#define OMAP4430_STABLE_COUNT_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001176#define OMAP4430_STABLE_COUNT_MASK (0x3f << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001177
1178/* Used by PRM_VOLTSETUP_WARMRESET */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001179#define OMAP4430_STABLE_PRESCAL_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001180#define OMAP4430_STABLE_PRESCAL_MASK (0x3 << 8)
1181
1182/* Used by PRM_LDO_BANDGAP_SETUP */
1183#define OMAP4430_STARTUP_COUNT_SHIFT 0
1184#define OMAP4430_STARTUP_COUNT_MASK (0xff << 0)
1185
1186/* Renamed from STARTUP_COUNT Used by PRM_SRAM_COUNT */
1187#define OMAP4430_STARTUP_COUNT_24_31_SHIFT 24
1188#define OMAP4430_STARTUP_COUNT_24_31_MASK (0xff << 24)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001189
1190/* Used by PM_IVAHD_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001191#define OMAP4430_TCM1_MEM_ONSTATE_SHIFT 20
Rajendra Nayak568997c2010-09-27 14:02:55 -06001192#define OMAP4430_TCM1_MEM_ONSTATE_MASK (0x3 << 20)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001193
1194/* Used by PM_IVAHD_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001195#define OMAP4430_TCM1_MEM_RETSTATE_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -06001196#define OMAP4430_TCM1_MEM_RETSTATE_MASK (1 << 10)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001197
1198/* Used by PM_IVAHD_PWRSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001199#define OMAP4430_TCM1_MEM_STATEST_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001200#define OMAP4430_TCM1_MEM_STATEST_MASK (0x3 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001201
1202/* Used by PM_IVAHD_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001203#define OMAP4430_TCM2_MEM_ONSTATE_SHIFT 22
Rajendra Nayak568997c2010-09-27 14:02:55 -06001204#define OMAP4430_TCM2_MEM_ONSTATE_MASK (0x3 << 22)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001205
1206/* Used by PM_IVAHD_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001207#define OMAP4430_TCM2_MEM_RETSTATE_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -06001208#define OMAP4430_TCM2_MEM_RETSTATE_MASK (1 << 11)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001209
1210/* Used by PM_IVAHD_PWRSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001211#define OMAP4430_TCM2_MEM_STATEST_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -06001212#define OMAP4430_TCM2_MEM_STATEST_MASK (0x3 << 10)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001213
1214/* Used by RM_TESLA_RSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001215#define OMAP4430_TESLASS_EMU_RSTST_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06001216#define OMAP4430_TESLASS_EMU_RSTST_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001217
1218/* Used by RM_TESLA_RSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001219#define OMAP4430_TESLA_DSP_EMU_REQ_RSTST_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -06001220#define OMAP4430_TESLA_DSP_EMU_REQ_RSTST_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001221
1222/* Used by PM_TESLA_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001223#define OMAP4430_TESLA_EDMA_ONSTATE_SHIFT 20
Rajendra Nayak568997c2010-09-27 14:02:55 -06001224#define OMAP4430_TESLA_EDMA_ONSTATE_MASK (0x3 << 20)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001225
1226/* Used by PM_TESLA_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001227#define OMAP4430_TESLA_EDMA_RETSTATE_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -06001228#define OMAP4430_TESLA_EDMA_RETSTATE_MASK (1 << 10)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001229
1230/* Used by PM_TESLA_PWRSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001231#define OMAP4430_TESLA_EDMA_STATEST_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001232#define OMAP4430_TESLA_EDMA_STATEST_MASK (0x3 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001233
1234/* Used by PM_TESLA_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001235#define OMAP4430_TESLA_L1_ONSTATE_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -06001236#define OMAP4430_TESLA_L1_ONSTATE_MASK (0x3 << 16)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001237
1238/* Used by PM_TESLA_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001239#define OMAP4430_TESLA_L1_RETSTATE_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001240#define OMAP4430_TESLA_L1_RETSTATE_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001241
1242/* Used by PM_TESLA_PWRSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001243#define OMAP4430_TESLA_L1_STATEST_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -06001244#define OMAP4430_TESLA_L1_STATEST_MASK (0x3 << 4)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001245
1246/* Used by PM_TESLA_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001247#define OMAP4430_TESLA_L2_ONSTATE_SHIFT 18
Rajendra Nayak568997c2010-09-27 14:02:55 -06001248#define OMAP4430_TESLA_L2_ONSTATE_MASK (0x3 << 18)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001249
1250/* Used by PM_TESLA_PWRSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001251#define OMAP4430_TESLA_L2_RETSTATE_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001252#define OMAP4430_TESLA_L2_RETSTATE_MASK (1 << 9)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001253
1254/* Used by PM_TESLA_PWRSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001255#define OMAP4430_TESLA_L2_STATEST_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -06001256#define OMAP4430_TESLA_L2_STATEST_MASK (0x3 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001257
1258/* Used by PRM_VP_CORE_VLIMITTO, PRM_VP_IVA_VLIMITTO, PRM_VP_MPU_VLIMITTO */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001259#define OMAP4430_TIMEOUT_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001260#define OMAP4430_TIMEOUT_MASK (0xffff << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001261
1262/* Used by PRM_VP_CORE_CONFIG, PRM_VP_IVA_CONFIG, PRM_VP_MPU_CONFIG */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001263#define OMAP4430_TIMEOUTEN_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -06001264#define OMAP4430_TIMEOUTEN_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001265
1266/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001267#define OMAP4430_TRANSITION_EN_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001268#define OMAP4430_TRANSITION_EN_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001269
1270/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001271#define OMAP4430_TRANSITION_ST_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001272#define OMAP4430_TRANSITION_ST_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001273
1274/* Used by PRM_VC_VAL_BYPASS */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001275#define OMAP4430_VALID_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -06001276#define OMAP4430_VALID_MASK (1 << 24)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001277
1278/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001279#define OMAP4430_VC_BYPASSACK_EN_SHIFT 14
Rajendra Nayak568997c2010-09-27 14:02:55 -06001280#define OMAP4430_VC_BYPASSACK_EN_MASK (1 << 14)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001281
1282/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001283#define OMAP4430_VC_BYPASSACK_ST_SHIFT 14
Rajendra Nayak568997c2010-09-27 14:02:55 -06001284#define OMAP4430_VC_BYPASSACK_ST_MASK (1 << 14)
1285
1286/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU */
1287#define OMAP4430_VC_CORE_VPACK_EN_SHIFT 22
1288#define OMAP4430_VC_CORE_VPACK_EN_MASK (1 << 22)
1289
1290/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU */
1291#define OMAP4430_VC_CORE_VPACK_ST_SHIFT 22
1292#define OMAP4430_VC_CORE_VPACK_ST_MASK (1 << 22)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001293
1294/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001295#define OMAP4430_VC_IVA_VPACK_EN_SHIFT 30
Rajendra Nayak568997c2010-09-27 14:02:55 -06001296#define OMAP4430_VC_IVA_VPACK_EN_MASK (1 << 30)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001297
1298/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001299#define OMAP4430_VC_IVA_VPACK_ST_SHIFT 30
Rajendra Nayak568997c2010-09-27 14:02:55 -06001300#define OMAP4430_VC_IVA_VPACK_ST_MASK (1 << 30)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001301
1302/* Used by PRM_IRQENABLE_MPU_2 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001303#define OMAP4430_VC_MPU_VPACK_EN_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -06001304#define OMAP4430_VC_MPU_VPACK_EN_MASK (1 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001305
1306/* Used by PRM_IRQSTATUS_MPU_2 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001307#define OMAP4430_VC_MPU_VPACK_ST_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -06001308#define OMAP4430_VC_MPU_VPACK_ST_MASK (1 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001309
1310/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001311#define OMAP4430_VC_RAERR_EN_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -06001312#define OMAP4430_VC_RAERR_EN_MASK (1 << 12)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001313
1314/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001315#define OMAP4430_VC_RAERR_ST_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -06001316#define OMAP4430_VC_RAERR_ST_MASK (1 << 12)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001317
1318/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001319#define OMAP4430_VC_SAERR_EN_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -06001320#define OMAP4430_VC_SAERR_EN_MASK (1 << 11)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001321
1322/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001323#define OMAP4430_VC_SAERR_ST_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -06001324#define OMAP4430_VC_SAERR_ST_MASK (1 << 11)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001325
1326/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001327#define OMAP4430_VC_TOERR_EN_SHIFT 13
Rajendra Nayak568997c2010-09-27 14:02:55 -06001328#define OMAP4430_VC_TOERR_EN_MASK (1 << 13)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001329
1330/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001331#define OMAP4430_VC_TOERR_ST_SHIFT 13
Rajendra Nayak568997c2010-09-27 14:02:55 -06001332#define OMAP4430_VC_TOERR_ST_MASK (1 << 13)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001333
1334/* Used by PRM_VP_CORE_VLIMITTO, PRM_VP_IVA_VLIMITTO, PRM_VP_MPU_VLIMITTO */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001335#define OMAP4430_VDDMAX_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -06001336#define OMAP4430_VDDMAX_MASK (0xff << 24)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001337
1338/* Used by PRM_VP_CORE_VLIMITTO, PRM_VP_IVA_VLIMITTO, PRM_VP_MPU_VLIMITTO */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001339#define OMAP4430_VDDMIN_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -06001340#define OMAP4430_VDDMIN_MASK (0xff << 16)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001341
1342/* Used by PRM_VOLTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001343#define OMAP4430_VDD_CORE_I2C_DISABLE_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -06001344#define OMAP4430_VDD_CORE_I2C_DISABLE_MASK (1 << 12)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001345
1346/* Used by PRM_RSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001347#define OMAP4430_VDD_CORE_VOLT_MGR_RST_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001348#define OMAP4430_VDD_CORE_VOLT_MGR_RST_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001349
1350/* Used by PRM_VOLTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001351#define OMAP4430_VDD_IVA_I2C_DISABLE_SHIFT 14
Rajendra Nayak568997c2010-09-27 14:02:55 -06001352#define OMAP4430_VDD_IVA_I2C_DISABLE_MASK (1 << 14)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001353
1354/* Used by PRM_VOLTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001355#define OMAP4430_VDD_IVA_PRESENCE_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001356#define OMAP4430_VDD_IVA_PRESENCE_MASK (1 << 9)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001357
1358/* Used by PRM_RSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001359#define OMAP4430_VDD_IVA_VOLT_MGR_RST_SHIFT 7
Rajendra Nayak568997c2010-09-27 14:02:55 -06001360#define OMAP4430_VDD_IVA_VOLT_MGR_RST_MASK (1 << 7)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001361
1362/* Used by PRM_VOLTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001363#define OMAP4430_VDD_MPU_I2C_DISABLE_SHIFT 13
Rajendra Nayak568997c2010-09-27 14:02:55 -06001364#define OMAP4430_VDD_MPU_I2C_DISABLE_MASK (1 << 13)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001365
1366/* Used by PRM_VOLTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001367#define OMAP4430_VDD_MPU_PRESENCE_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001368#define OMAP4430_VDD_MPU_PRESENCE_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001369
1370/* Used by PRM_RSTST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001371#define OMAP4430_VDD_MPU_VOLT_MGR_RST_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -06001372#define OMAP4430_VDD_MPU_VOLT_MGR_RST_MASK (1 << 6)
1373
1374/* Used by PRM_VC_ERRST */
1375#define OMAP4430_VFSM_RA_ERR_CORE_SHIFT 4
1376#define OMAP4430_VFSM_RA_ERR_CORE_MASK (1 << 4)
1377
1378/* Used by PRM_VC_ERRST */
1379#define OMAP4430_VFSM_RA_ERR_IVA_SHIFT 12
1380#define OMAP4430_VFSM_RA_ERR_IVA_MASK (1 << 12)
1381
1382/* Used by PRM_VC_ERRST */
1383#define OMAP4430_VFSM_RA_ERR_MPU_SHIFT 20
1384#define OMAP4430_VFSM_RA_ERR_MPU_MASK (1 << 20)
1385
1386/* Used by PRM_VC_ERRST */
1387#define OMAP4430_VFSM_SA_ERR_CORE_SHIFT 3
1388#define OMAP4430_VFSM_SA_ERR_CORE_MASK (1 << 3)
1389
1390/* Used by PRM_VC_ERRST */
1391#define OMAP4430_VFSM_SA_ERR_IVA_SHIFT 11
1392#define OMAP4430_VFSM_SA_ERR_IVA_MASK (1 << 11)
1393
1394/* Used by PRM_VC_ERRST */
1395#define OMAP4430_VFSM_SA_ERR_MPU_SHIFT 19
1396#define OMAP4430_VFSM_SA_ERR_MPU_MASK (1 << 19)
1397
1398/* Used by PRM_VC_ERRST */
1399#define OMAP4430_VFSM_TIMEOUT_ERR_CORE_SHIFT 5
1400#define OMAP4430_VFSM_TIMEOUT_ERR_CORE_MASK (1 << 5)
1401
1402/* Used by PRM_VC_ERRST */
1403#define OMAP4430_VFSM_TIMEOUT_ERR_IVA_SHIFT 13
1404#define OMAP4430_VFSM_TIMEOUT_ERR_IVA_MASK (1 << 13)
1405
1406/* Used by PRM_VC_ERRST */
1407#define OMAP4430_VFSM_TIMEOUT_ERR_MPU_SHIFT 21
1408#define OMAP4430_VFSM_TIMEOUT_ERR_MPU_MASK (1 << 21)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001409
1410/* Used by PRM_VC_VAL_SMPS_RA_VOL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001411#define OMAP4430_VOLRA_VDD_CORE_L_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001412#define OMAP4430_VOLRA_VDD_CORE_L_MASK (0xff << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001413
1414/* Used by PRM_VC_VAL_SMPS_RA_VOL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001415#define OMAP4430_VOLRA_VDD_IVA_L_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001416#define OMAP4430_VOLRA_VDD_IVA_L_MASK (0xff << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001417
1418/* Used by PRM_VC_VAL_SMPS_RA_VOL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001419#define OMAP4430_VOLRA_VDD_MPU_L_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -06001420#define OMAP4430_VOLRA_VDD_MPU_L_MASK (0xff << 16)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001421
1422/* Used by PRM_VP_CORE_CONFIG, PRM_VP_IVA_CONFIG, PRM_VP_MPU_CONFIG */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001423#define OMAP4430_VPENABLE_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001424#define OMAP4430_VPENABLE_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001425
1426/* Used by PRM_VP_CORE_STATUS, PRM_VP_IVA_STATUS, PRM_VP_MPU_STATUS */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001427#define OMAP4430_VPINIDLE_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001428#define OMAP4430_VPINIDLE_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001429
1430/* Used by PRM_VP_CORE_VOLTAGE, PRM_VP_IVA_VOLTAGE, PRM_VP_MPU_VOLTAGE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001431#define OMAP4430_VPVOLTAGE_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001432#define OMAP4430_VPVOLTAGE_MASK (0xff << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001433
1434/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001435#define OMAP4430_VP_CORE_EQVALUE_EN_SHIFT 20
Rajendra Nayak568997c2010-09-27 14:02:55 -06001436#define OMAP4430_VP_CORE_EQVALUE_EN_MASK (1 << 20)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001437
1438/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001439#define OMAP4430_VP_CORE_EQVALUE_ST_SHIFT 20
Rajendra Nayak568997c2010-09-27 14:02:55 -06001440#define OMAP4430_VP_CORE_EQVALUE_ST_MASK (1 << 20)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001441
1442/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001443#define OMAP4430_VP_CORE_MAXVDD_EN_SHIFT 18
Rajendra Nayak568997c2010-09-27 14:02:55 -06001444#define OMAP4430_VP_CORE_MAXVDD_EN_MASK (1 << 18)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001445
1446/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001447#define OMAP4430_VP_CORE_MAXVDD_ST_SHIFT 18
Rajendra Nayak568997c2010-09-27 14:02:55 -06001448#define OMAP4430_VP_CORE_MAXVDD_ST_MASK (1 << 18)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001449
1450/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001451#define OMAP4430_VP_CORE_MINVDD_EN_SHIFT 17
Rajendra Nayak568997c2010-09-27 14:02:55 -06001452#define OMAP4430_VP_CORE_MINVDD_EN_MASK (1 << 17)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001453
1454/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001455#define OMAP4430_VP_CORE_MINVDD_ST_SHIFT 17
Rajendra Nayak568997c2010-09-27 14:02:55 -06001456#define OMAP4430_VP_CORE_MINVDD_ST_MASK (1 << 17)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001457
1458/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001459#define OMAP4430_VP_CORE_NOSMPSACK_EN_SHIFT 19
Rajendra Nayak568997c2010-09-27 14:02:55 -06001460#define OMAP4430_VP_CORE_NOSMPSACK_EN_MASK (1 << 19)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001461
1462/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001463#define OMAP4430_VP_CORE_NOSMPSACK_ST_SHIFT 19
Rajendra Nayak568997c2010-09-27 14:02:55 -06001464#define OMAP4430_VP_CORE_NOSMPSACK_ST_MASK (1 << 19)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001465
1466/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001467#define OMAP4430_VP_CORE_OPPCHANGEDONE_EN_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -06001468#define OMAP4430_VP_CORE_OPPCHANGEDONE_EN_MASK (1 << 16)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001469
1470/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001471#define OMAP4430_VP_CORE_OPPCHANGEDONE_ST_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -06001472#define OMAP4430_VP_CORE_OPPCHANGEDONE_ST_MASK (1 << 16)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001473
1474/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001475#define OMAP4430_VP_CORE_TRANXDONE_EN_SHIFT 21
Rajendra Nayak568997c2010-09-27 14:02:55 -06001476#define OMAP4430_VP_CORE_TRANXDONE_EN_MASK (1 << 21)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001477
1478/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001479#define OMAP4430_VP_CORE_TRANXDONE_ST_SHIFT 21
Rajendra Nayak568997c2010-09-27 14:02:55 -06001480#define OMAP4430_VP_CORE_TRANXDONE_ST_MASK (1 << 21)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001481
1482/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001483#define OMAP4430_VP_IVA_EQVALUE_EN_SHIFT 28
Rajendra Nayak568997c2010-09-27 14:02:55 -06001484#define OMAP4430_VP_IVA_EQVALUE_EN_MASK (1 << 28)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001485
1486/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001487#define OMAP4430_VP_IVA_EQVALUE_ST_SHIFT 28
Rajendra Nayak568997c2010-09-27 14:02:55 -06001488#define OMAP4430_VP_IVA_EQVALUE_ST_MASK (1 << 28)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001489
1490/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001491#define OMAP4430_VP_IVA_MAXVDD_EN_SHIFT 26
Rajendra Nayak568997c2010-09-27 14:02:55 -06001492#define OMAP4430_VP_IVA_MAXVDD_EN_MASK (1 << 26)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001493
1494/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001495#define OMAP4430_VP_IVA_MAXVDD_ST_SHIFT 26
Rajendra Nayak568997c2010-09-27 14:02:55 -06001496#define OMAP4430_VP_IVA_MAXVDD_ST_MASK (1 << 26)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001497
1498/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001499#define OMAP4430_VP_IVA_MINVDD_EN_SHIFT 25
Rajendra Nayak568997c2010-09-27 14:02:55 -06001500#define OMAP4430_VP_IVA_MINVDD_EN_MASK (1 << 25)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001501
1502/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001503#define OMAP4430_VP_IVA_MINVDD_ST_SHIFT 25
Rajendra Nayak568997c2010-09-27 14:02:55 -06001504#define OMAP4430_VP_IVA_MINVDD_ST_MASK (1 << 25)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001505
1506/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001507#define OMAP4430_VP_IVA_NOSMPSACK_EN_SHIFT 27
Rajendra Nayak568997c2010-09-27 14:02:55 -06001508#define OMAP4430_VP_IVA_NOSMPSACK_EN_MASK (1 << 27)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001509
1510/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001511#define OMAP4430_VP_IVA_NOSMPSACK_ST_SHIFT 27
Rajendra Nayak568997c2010-09-27 14:02:55 -06001512#define OMAP4430_VP_IVA_NOSMPSACK_ST_MASK (1 << 27)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001513
1514/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001515#define OMAP4430_VP_IVA_OPPCHANGEDONE_EN_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -06001516#define OMAP4430_VP_IVA_OPPCHANGEDONE_EN_MASK (1 << 24)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001517
1518/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001519#define OMAP4430_VP_IVA_OPPCHANGEDONE_ST_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -06001520#define OMAP4430_VP_IVA_OPPCHANGEDONE_ST_MASK (1 << 24)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001521
1522/* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001523#define OMAP4430_VP_IVA_TRANXDONE_EN_SHIFT 29
Rajendra Nayak568997c2010-09-27 14:02:55 -06001524#define OMAP4430_VP_IVA_TRANXDONE_EN_MASK (1 << 29)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001525
1526/* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001527#define OMAP4430_VP_IVA_TRANXDONE_ST_SHIFT 29
Rajendra Nayak568997c2010-09-27 14:02:55 -06001528#define OMAP4430_VP_IVA_TRANXDONE_ST_MASK (1 << 29)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001529
1530/* Used by PRM_IRQENABLE_MPU_2 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001531#define OMAP4430_VP_MPU_EQVALUE_EN_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -06001532#define OMAP4430_VP_MPU_EQVALUE_EN_MASK (1 << 4)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001533
1534/* Used by PRM_IRQSTATUS_MPU_2 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001535#define OMAP4430_VP_MPU_EQVALUE_ST_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -06001536#define OMAP4430_VP_MPU_EQVALUE_ST_MASK (1 << 4)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001537
1538/* Used by PRM_IRQENABLE_MPU_2 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001539#define OMAP4430_VP_MPU_MAXVDD_EN_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06001540#define OMAP4430_VP_MPU_MAXVDD_EN_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001541
1542/* Used by PRM_IRQSTATUS_MPU_2 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001543#define OMAP4430_VP_MPU_MAXVDD_ST_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06001544#define OMAP4430_VP_MPU_MAXVDD_ST_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001545
1546/* Used by PRM_IRQENABLE_MPU_2 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001547#define OMAP4430_VP_MPU_MINVDD_EN_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001548#define OMAP4430_VP_MPU_MINVDD_EN_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001549
1550/* Used by PRM_IRQSTATUS_MPU_2 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001551#define OMAP4430_VP_MPU_MINVDD_ST_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001552#define OMAP4430_VP_MPU_MINVDD_ST_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001553
1554/* Used by PRM_IRQENABLE_MPU_2 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001555#define OMAP4430_VP_MPU_NOSMPSACK_EN_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -06001556#define OMAP4430_VP_MPU_NOSMPSACK_EN_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001557
1558/* Used by PRM_IRQSTATUS_MPU_2 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001559#define OMAP4430_VP_MPU_NOSMPSACK_ST_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -06001560#define OMAP4430_VP_MPU_NOSMPSACK_ST_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001561
1562/* Used by PRM_IRQENABLE_MPU_2 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001563#define OMAP4430_VP_MPU_OPPCHANGEDONE_EN_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001564#define OMAP4430_VP_MPU_OPPCHANGEDONE_EN_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001565
1566/* Used by PRM_IRQSTATUS_MPU_2 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001567#define OMAP4430_VP_MPU_OPPCHANGEDONE_ST_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001568#define OMAP4430_VP_MPU_OPPCHANGEDONE_ST_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001569
1570/* Used by PRM_IRQENABLE_MPU_2 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001571#define OMAP4430_VP_MPU_TRANXDONE_EN_SHIFT 5
Rajendra Nayak568997c2010-09-27 14:02:55 -06001572#define OMAP4430_VP_MPU_TRANXDONE_EN_MASK (1 << 5)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001573
1574/* Used by PRM_IRQSTATUS_MPU_2 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001575#define OMAP4430_VP_MPU_TRANXDONE_ST_SHIFT 5
Rajendra Nayak568997c2010-09-27 14:02:55 -06001576#define OMAP4430_VP_MPU_TRANXDONE_ST_MASK (1 << 5)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001577
1578/* Used by PRM_SRAM_COUNT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001579#define OMAP4430_VSETUPCNT_VALUE_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001580#define OMAP4430_VSETUPCNT_VALUE_MASK (0xff << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001581
1582/* Used by PRM_VP_CORE_VSTEPMAX, PRM_VP_IVA_VSTEPMAX, PRM_VP_MPU_VSTEPMAX */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001583#define OMAP4430_VSTEPMAX_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001584#define OMAP4430_VSTEPMAX_MASK (0xff << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001585
1586/* Used by PRM_VP_CORE_VSTEPMIN, PRM_VP_IVA_VSTEPMIN, PRM_VP_MPU_VSTEPMIN */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001587#define OMAP4430_VSTEPMIN_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001588#define OMAP4430_VSTEPMIN_MASK (0xff << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001589
1590/* Used by PRM_MODEM_IF_CTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001591#define OMAP4430_WAKE_MODEM_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001592#define OMAP4430_WAKE_MODEM_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001593
1594/* Used by PM_DSS_DSS_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001595#define OMAP4430_WKUPDEP_DISPC_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001596#define OMAP4430_WKUPDEP_DISPC_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001597
1598/* Used by PM_DSS_DSS_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001599#define OMAP4430_WKUPDEP_DISPC_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001600#define OMAP4430_WKUPDEP_DISPC_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001601
1602/* Used by PM_DSS_DSS_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001603#define OMAP4430_WKUPDEP_DISPC_SDMA_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -06001604#define OMAP4430_WKUPDEP_DISPC_SDMA_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001605
1606/* Used by PM_DSS_DSS_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001607#define OMAP4430_WKUPDEP_DISPC_TESLA_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06001608#define OMAP4430_WKUPDEP_DISPC_TESLA_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001609
1610/* Used by PM_ABE_DMIC_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001611#define OMAP4430_WKUPDEP_DMIC_DMA_SDMA_SHIFT 7
Rajendra Nayak568997c2010-09-27 14:02:55 -06001612#define OMAP4430_WKUPDEP_DMIC_DMA_SDMA_MASK (1 << 7)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001613
1614/* Used by PM_ABE_DMIC_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001615#define OMAP4430_WKUPDEP_DMIC_DMA_TESLA_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -06001616#define OMAP4430_WKUPDEP_DMIC_DMA_TESLA_MASK (1 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001617
1618/* Used by PM_ABE_DMIC_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001619#define OMAP4430_WKUPDEP_DMIC_IRQ_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001620#define OMAP4430_WKUPDEP_DMIC_IRQ_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001621
1622/* Used by PM_ABE_DMIC_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001623#define OMAP4430_WKUPDEP_DMIC_IRQ_TESLA_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06001624#define OMAP4430_WKUPDEP_DMIC_IRQ_TESLA_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001625
1626/* Used by PM_L4PER_DMTIMER10_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001627#define OMAP4430_WKUPDEP_DMTIMER10_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001628#define OMAP4430_WKUPDEP_DMTIMER10_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001629
1630/* Used by PM_L4PER_DMTIMER11_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001631#define OMAP4430_WKUPDEP_DMTIMER11_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001632#define OMAP4430_WKUPDEP_DMTIMER11_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001633
1634/* Used by PM_L4PER_DMTIMER11_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001635#define OMAP4430_WKUPDEP_DMTIMER11_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001636#define OMAP4430_WKUPDEP_DMTIMER11_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001637
1638/* Used by PM_L4PER_DMTIMER2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001639#define OMAP4430_WKUPDEP_DMTIMER2_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001640#define OMAP4430_WKUPDEP_DMTIMER2_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001641
1642/* Used by PM_L4PER_DMTIMER3_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001643#define OMAP4430_WKUPDEP_DMTIMER3_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001644#define OMAP4430_WKUPDEP_DMTIMER3_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001645
1646/* Used by PM_L4PER_DMTIMER3_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001647#define OMAP4430_WKUPDEP_DMTIMER3_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001648#define OMAP4430_WKUPDEP_DMTIMER3_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001649
1650/* Used by PM_L4PER_DMTIMER4_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001651#define OMAP4430_WKUPDEP_DMTIMER4_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001652#define OMAP4430_WKUPDEP_DMTIMER4_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001653
1654/* Used by PM_L4PER_DMTIMER4_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001655#define OMAP4430_WKUPDEP_DMTIMER4_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001656#define OMAP4430_WKUPDEP_DMTIMER4_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001657
1658/* Used by PM_L4PER_DMTIMER9_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001659#define OMAP4430_WKUPDEP_DMTIMER9_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001660#define OMAP4430_WKUPDEP_DMTIMER9_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001661
1662/* Used by PM_L4PER_DMTIMER9_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001663#define OMAP4430_WKUPDEP_DMTIMER9_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001664#define OMAP4430_WKUPDEP_DMTIMER9_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001665
1666/* Used by PM_DSS_DSS_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001667#define OMAP4430_WKUPDEP_DSI1_DUCATI_SHIFT 5
Rajendra Nayak568997c2010-09-27 14:02:55 -06001668#define OMAP4430_WKUPDEP_DSI1_DUCATI_MASK (1 << 5)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001669
1670/* Used by PM_DSS_DSS_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001671#define OMAP4430_WKUPDEP_DSI1_MPU_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -06001672#define OMAP4430_WKUPDEP_DSI1_MPU_MASK (1 << 4)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001673
1674/* Used by PM_DSS_DSS_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001675#define OMAP4430_WKUPDEP_DSI1_SDMA_SHIFT 7
Rajendra Nayak568997c2010-09-27 14:02:55 -06001676#define OMAP4430_WKUPDEP_DSI1_SDMA_MASK (1 << 7)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001677
1678/* Used by PM_DSS_DSS_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001679#define OMAP4430_WKUPDEP_DSI1_TESLA_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -06001680#define OMAP4430_WKUPDEP_DSI1_TESLA_MASK (1 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001681
1682/* Used by PM_DSS_DSS_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001683#define OMAP4430_WKUPDEP_DSI2_DUCATI_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001684#define OMAP4430_WKUPDEP_DSI2_DUCATI_MASK (1 << 9)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001685
1686/* Used by PM_DSS_DSS_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001687#define OMAP4430_WKUPDEP_DSI2_MPU_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001688#define OMAP4430_WKUPDEP_DSI2_MPU_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001689
1690/* Used by PM_DSS_DSS_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001691#define OMAP4430_WKUPDEP_DSI2_SDMA_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -06001692#define OMAP4430_WKUPDEP_DSI2_SDMA_MASK (1 << 11)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001693
1694/* Used by PM_DSS_DSS_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001695#define OMAP4430_WKUPDEP_DSI2_TESLA_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -06001696#define OMAP4430_WKUPDEP_DSI2_TESLA_MASK (1 << 10)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001697
1698/* Used by PM_WKUP_GPIO1_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001699#define OMAP4430_WKUPDEP_GPIO1_IRQ1_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001700#define OMAP4430_WKUPDEP_GPIO1_IRQ1_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001701
1702/* Used by PM_WKUP_GPIO1_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001703#define OMAP4430_WKUPDEP_GPIO1_IRQ1_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001704#define OMAP4430_WKUPDEP_GPIO1_IRQ1_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001705
1706/* Used by PM_WKUP_GPIO1_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001707#define OMAP4430_WKUPDEP_GPIO1_IRQ2_TESLA_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -06001708#define OMAP4430_WKUPDEP_GPIO1_IRQ2_TESLA_MASK (1 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001709
1710/* Used by PM_L4PER_GPIO2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001711#define OMAP4430_WKUPDEP_GPIO2_IRQ1_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001712#define OMAP4430_WKUPDEP_GPIO2_IRQ1_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001713
1714/* Used by PM_L4PER_GPIO2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001715#define OMAP4430_WKUPDEP_GPIO2_IRQ1_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001716#define OMAP4430_WKUPDEP_GPIO2_IRQ1_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001717
1718/* Used by PM_L4PER_GPIO2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001719#define OMAP4430_WKUPDEP_GPIO2_IRQ2_TESLA_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -06001720#define OMAP4430_WKUPDEP_GPIO2_IRQ2_TESLA_MASK (1 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001721
1722/* Used by PM_L4PER_GPIO3_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001723#define OMAP4430_WKUPDEP_GPIO3_IRQ1_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001724#define OMAP4430_WKUPDEP_GPIO3_IRQ1_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001725
1726/* Used by PM_L4PER_GPIO3_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001727#define OMAP4430_WKUPDEP_GPIO3_IRQ2_TESLA_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -06001728#define OMAP4430_WKUPDEP_GPIO3_IRQ2_TESLA_MASK (1 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001729
1730/* Used by PM_L4PER_GPIO4_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001731#define OMAP4430_WKUPDEP_GPIO4_IRQ1_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001732#define OMAP4430_WKUPDEP_GPIO4_IRQ1_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001733
1734/* Used by PM_L4PER_GPIO4_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001735#define OMAP4430_WKUPDEP_GPIO4_IRQ2_TESLA_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -06001736#define OMAP4430_WKUPDEP_GPIO4_IRQ2_TESLA_MASK (1 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001737
1738/* Used by PM_L4PER_GPIO5_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001739#define OMAP4430_WKUPDEP_GPIO5_IRQ1_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001740#define OMAP4430_WKUPDEP_GPIO5_IRQ1_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001741
1742/* Used by PM_L4PER_GPIO5_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001743#define OMAP4430_WKUPDEP_GPIO5_IRQ2_TESLA_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -06001744#define OMAP4430_WKUPDEP_GPIO5_IRQ2_TESLA_MASK (1 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001745
1746/* Used by PM_L4PER_GPIO6_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001747#define OMAP4430_WKUPDEP_GPIO6_IRQ1_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001748#define OMAP4430_WKUPDEP_GPIO6_IRQ1_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001749
1750/* Used by PM_L4PER_GPIO6_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001751#define OMAP4430_WKUPDEP_GPIO6_IRQ2_TESLA_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -06001752#define OMAP4430_WKUPDEP_GPIO6_IRQ2_TESLA_MASK (1 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001753
1754/* Used by PM_DSS_DSS_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001755#define OMAP4430_WKUPDEP_HDMIDMA_SDMA_SHIFT 19
Rajendra Nayak568997c2010-09-27 14:02:55 -06001756#define OMAP4430_WKUPDEP_HDMIDMA_SDMA_MASK (1 << 19)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001757
1758/* Used by PM_DSS_DSS_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001759#define OMAP4430_WKUPDEP_HDMIIRQ_DUCATI_SHIFT 13
Rajendra Nayak568997c2010-09-27 14:02:55 -06001760#define OMAP4430_WKUPDEP_HDMIIRQ_DUCATI_MASK (1 << 13)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001761
1762/* Used by PM_DSS_DSS_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001763#define OMAP4430_WKUPDEP_HDMIIRQ_MPU_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -06001764#define OMAP4430_WKUPDEP_HDMIIRQ_MPU_MASK (1 << 12)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001765
1766/* Used by PM_DSS_DSS_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001767#define OMAP4430_WKUPDEP_HDMIIRQ_TESLA_SHIFT 14
Rajendra Nayak568997c2010-09-27 14:02:55 -06001768#define OMAP4430_WKUPDEP_HDMIIRQ_TESLA_MASK (1 << 14)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001769
1770/* Used by PM_L4PER_HECC1_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001771#define OMAP4430_WKUPDEP_HECC1_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001772#define OMAP4430_WKUPDEP_HECC1_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001773
1774/* Used by PM_L4PER_HECC2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001775#define OMAP4430_WKUPDEP_HECC2_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001776#define OMAP4430_WKUPDEP_HECC2_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001777
1778/* Used by PM_L3INIT_HSI_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001779#define OMAP4430_WKUPDEP_HSI_DSP_TESLA_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -06001780#define OMAP4430_WKUPDEP_HSI_DSP_TESLA_MASK (1 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001781
1782/* Used by PM_L3INIT_HSI_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001783#define OMAP4430_WKUPDEP_HSI_MCU_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001784#define OMAP4430_WKUPDEP_HSI_MCU_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001785
1786/* Used by PM_L3INIT_HSI_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001787#define OMAP4430_WKUPDEP_HSI_MCU_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001788#define OMAP4430_WKUPDEP_HSI_MCU_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001789
1790/* Used by PM_L4PER_I2C1_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001791#define OMAP4430_WKUPDEP_I2C1_DMA_SDMA_SHIFT 7
Rajendra Nayak568997c2010-09-27 14:02:55 -06001792#define OMAP4430_WKUPDEP_I2C1_DMA_SDMA_MASK (1 << 7)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001793
1794/* Used by PM_L4PER_I2C1_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001795#define OMAP4430_WKUPDEP_I2C1_IRQ_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001796#define OMAP4430_WKUPDEP_I2C1_IRQ_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001797
1798/* Used by PM_L4PER_I2C1_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001799#define OMAP4430_WKUPDEP_I2C1_IRQ_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001800#define OMAP4430_WKUPDEP_I2C1_IRQ_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001801
1802/* Used by PM_L4PER_I2C2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001803#define OMAP4430_WKUPDEP_I2C2_DMA_SDMA_SHIFT 7
Rajendra Nayak568997c2010-09-27 14:02:55 -06001804#define OMAP4430_WKUPDEP_I2C2_DMA_SDMA_MASK (1 << 7)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001805
1806/* Used by PM_L4PER_I2C2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001807#define OMAP4430_WKUPDEP_I2C2_IRQ_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001808#define OMAP4430_WKUPDEP_I2C2_IRQ_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001809
1810/* Used by PM_L4PER_I2C2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001811#define OMAP4430_WKUPDEP_I2C2_IRQ_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001812#define OMAP4430_WKUPDEP_I2C2_IRQ_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001813
1814/* Used by PM_L4PER_I2C3_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001815#define OMAP4430_WKUPDEP_I2C3_DMA_SDMA_SHIFT 7
Rajendra Nayak568997c2010-09-27 14:02:55 -06001816#define OMAP4430_WKUPDEP_I2C3_DMA_SDMA_MASK (1 << 7)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001817
1818/* Used by PM_L4PER_I2C3_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001819#define OMAP4430_WKUPDEP_I2C3_IRQ_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001820#define OMAP4430_WKUPDEP_I2C3_IRQ_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001821
1822/* Used by PM_L4PER_I2C3_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001823#define OMAP4430_WKUPDEP_I2C3_IRQ_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001824#define OMAP4430_WKUPDEP_I2C3_IRQ_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001825
1826/* Used by PM_L4PER_I2C4_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001827#define OMAP4430_WKUPDEP_I2C4_DMA_SDMA_SHIFT 7
Rajendra Nayak568997c2010-09-27 14:02:55 -06001828#define OMAP4430_WKUPDEP_I2C4_DMA_SDMA_MASK (1 << 7)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001829
1830/* Used by PM_L4PER_I2C4_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001831#define OMAP4430_WKUPDEP_I2C4_IRQ_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001832#define OMAP4430_WKUPDEP_I2C4_IRQ_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001833
1834/* Used by PM_L4PER_I2C4_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001835#define OMAP4430_WKUPDEP_I2C4_IRQ_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001836#define OMAP4430_WKUPDEP_I2C4_IRQ_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001837
1838/* Used by PM_L4PER_I2C5_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001839#define OMAP4430_WKUPDEP_I2C5_DMA_SDMA_SHIFT 7
Rajendra Nayak568997c2010-09-27 14:02:55 -06001840#define OMAP4430_WKUPDEP_I2C5_DMA_SDMA_MASK (1 << 7)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001841
1842/* Used by PM_L4PER_I2C5_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001843#define OMAP4430_WKUPDEP_I2C5_IRQ_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001844#define OMAP4430_WKUPDEP_I2C5_IRQ_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001845
1846/* Used by PM_WKUP_KEYBOARD_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001847#define OMAP4430_WKUPDEP_KEYBOARD_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001848#define OMAP4430_WKUPDEP_KEYBOARD_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001849
1850/* Used by PM_ABE_MCASP_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001851#define OMAP4430_WKUPDEP_MCASP1_DMA_SDMA_SHIFT 7
Rajendra Nayak568997c2010-09-27 14:02:55 -06001852#define OMAP4430_WKUPDEP_MCASP1_DMA_SDMA_MASK (1 << 7)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001853
1854/* Used by PM_ABE_MCASP_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001855#define OMAP4430_WKUPDEP_MCASP1_DMA_TESLA_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -06001856#define OMAP4430_WKUPDEP_MCASP1_DMA_TESLA_MASK (1 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001857
1858/* Used by PM_ABE_MCASP_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001859#define OMAP4430_WKUPDEP_MCASP1_IRQ_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001860#define OMAP4430_WKUPDEP_MCASP1_IRQ_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001861
1862/* Used by PM_ABE_MCASP_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001863#define OMAP4430_WKUPDEP_MCASP1_IRQ_TESLA_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06001864#define OMAP4430_WKUPDEP_MCASP1_IRQ_TESLA_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001865
1866/* Used by PM_L4PER_MCASP2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001867#define OMAP4430_WKUPDEP_MCASP2_DMA_SDMA_SHIFT 7
Rajendra Nayak568997c2010-09-27 14:02:55 -06001868#define OMAP4430_WKUPDEP_MCASP2_DMA_SDMA_MASK (1 << 7)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001869
1870/* Used by PM_L4PER_MCASP2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001871#define OMAP4430_WKUPDEP_MCASP2_DMA_TESLA_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -06001872#define OMAP4430_WKUPDEP_MCASP2_DMA_TESLA_MASK (1 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001873
1874/* Used by PM_L4PER_MCASP2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001875#define OMAP4430_WKUPDEP_MCASP2_IRQ_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001876#define OMAP4430_WKUPDEP_MCASP2_IRQ_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001877
1878/* Used by PM_L4PER_MCASP2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001879#define OMAP4430_WKUPDEP_MCASP2_IRQ_TESLA_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06001880#define OMAP4430_WKUPDEP_MCASP2_IRQ_TESLA_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001881
1882/* Used by PM_L4PER_MCASP3_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001883#define OMAP4430_WKUPDEP_MCASP3_DMA_SDMA_SHIFT 7
Rajendra Nayak568997c2010-09-27 14:02:55 -06001884#define OMAP4430_WKUPDEP_MCASP3_DMA_SDMA_MASK (1 << 7)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001885
1886/* Used by PM_L4PER_MCASP3_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001887#define OMAP4430_WKUPDEP_MCASP3_DMA_TESLA_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -06001888#define OMAP4430_WKUPDEP_MCASP3_DMA_TESLA_MASK (1 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001889
1890/* Used by PM_L4PER_MCASP3_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001891#define OMAP4430_WKUPDEP_MCASP3_IRQ_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001892#define OMAP4430_WKUPDEP_MCASP3_IRQ_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001893
1894/* Used by PM_L4PER_MCASP3_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001895#define OMAP4430_WKUPDEP_MCASP3_IRQ_TESLA_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06001896#define OMAP4430_WKUPDEP_MCASP3_IRQ_TESLA_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001897
1898/* Used by PM_ABE_MCBSP1_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001899#define OMAP4430_WKUPDEP_MCBSP1_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001900#define OMAP4430_WKUPDEP_MCBSP1_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001901
1902/* Used by PM_ABE_MCBSP1_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001903#define OMAP4430_WKUPDEP_MCBSP1_SDMA_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -06001904#define OMAP4430_WKUPDEP_MCBSP1_SDMA_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001905
1906/* Used by PM_ABE_MCBSP1_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001907#define OMAP4430_WKUPDEP_MCBSP1_TESLA_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06001908#define OMAP4430_WKUPDEP_MCBSP1_TESLA_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001909
1910/* Used by PM_ABE_MCBSP2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001911#define OMAP4430_WKUPDEP_MCBSP2_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001912#define OMAP4430_WKUPDEP_MCBSP2_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001913
1914/* Used by PM_ABE_MCBSP2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001915#define OMAP4430_WKUPDEP_MCBSP2_SDMA_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -06001916#define OMAP4430_WKUPDEP_MCBSP2_SDMA_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001917
1918/* Used by PM_ABE_MCBSP2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001919#define OMAP4430_WKUPDEP_MCBSP2_TESLA_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06001920#define OMAP4430_WKUPDEP_MCBSP2_TESLA_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001921
1922/* Used by PM_ABE_MCBSP3_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001923#define OMAP4430_WKUPDEP_MCBSP3_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001924#define OMAP4430_WKUPDEP_MCBSP3_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001925
1926/* Used by PM_ABE_MCBSP3_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001927#define OMAP4430_WKUPDEP_MCBSP3_SDMA_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -06001928#define OMAP4430_WKUPDEP_MCBSP3_SDMA_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001929
1930/* Used by PM_ABE_MCBSP3_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001931#define OMAP4430_WKUPDEP_MCBSP3_TESLA_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06001932#define OMAP4430_WKUPDEP_MCBSP3_TESLA_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001933
1934/* Used by PM_L4PER_MCBSP4_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001935#define OMAP4430_WKUPDEP_MCBSP4_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001936#define OMAP4430_WKUPDEP_MCBSP4_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001937
1938/* Used by PM_L4PER_MCBSP4_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001939#define OMAP4430_WKUPDEP_MCBSP4_SDMA_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -06001940#define OMAP4430_WKUPDEP_MCBSP4_SDMA_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001941
1942/* Used by PM_L4PER_MCBSP4_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001943#define OMAP4430_WKUPDEP_MCBSP4_TESLA_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06001944#define OMAP4430_WKUPDEP_MCBSP4_TESLA_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001945
1946/* Used by PM_L4PER_MCSPI1_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001947#define OMAP4430_WKUPDEP_MCSPI1_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001948#define OMAP4430_WKUPDEP_MCSPI1_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001949
1950/* Used by PM_L4PER_MCSPI1_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001951#define OMAP4430_WKUPDEP_MCSPI1_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001952#define OMAP4430_WKUPDEP_MCSPI1_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001953
1954/* Used by PM_L4PER_MCSPI1_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001955#define OMAP4430_WKUPDEP_MCSPI1_SDMA_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -06001956#define OMAP4430_WKUPDEP_MCSPI1_SDMA_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001957
1958/* Used by PM_L4PER_MCSPI1_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001959#define OMAP4430_WKUPDEP_MCSPI1_TESLA_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06001960#define OMAP4430_WKUPDEP_MCSPI1_TESLA_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001961
1962/* Used by PM_L4PER_MCSPI2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001963#define OMAP4430_WKUPDEP_MCSPI2_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001964#define OMAP4430_WKUPDEP_MCSPI2_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001965
1966/* Used by PM_L4PER_MCSPI2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001967#define OMAP4430_WKUPDEP_MCSPI2_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001968#define OMAP4430_WKUPDEP_MCSPI2_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001969
1970/* Used by PM_L4PER_MCSPI2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001971#define OMAP4430_WKUPDEP_MCSPI2_SDMA_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -06001972#define OMAP4430_WKUPDEP_MCSPI2_SDMA_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001973
1974/* Used by PM_L4PER_MCSPI3_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001975#define OMAP4430_WKUPDEP_MCSPI3_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001976#define OMAP4430_WKUPDEP_MCSPI3_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001977
1978/* Used by PM_L4PER_MCSPI3_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001979#define OMAP4430_WKUPDEP_MCSPI3_SDMA_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -06001980#define OMAP4430_WKUPDEP_MCSPI3_SDMA_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001981
1982/* Used by PM_L4PER_MCSPI4_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001983#define OMAP4430_WKUPDEP_MCSPI4_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001984#define OMAP4430_WKUPDEP_MCSPI4_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001985
1986/* Used by PM_L4PER_MCSPI4_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001987#define OMAP4430_WKUPDEP_MCSPI4_SDMA_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -06001988#define OMAP4430_WKUPDEP_MCSPI4_SDMA_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001989
1990/* Used by PM_L3INIT_MMC1_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001991#define OMAP4430_WKUPDEP_MMC1_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001992#define OMAP4430_WKUPDEP_MMC1_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001993
1994/* Used by PM_L3INIT_MMC1_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001995#define OMAP4430_WKUPDEP_MMC1_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001996#define OMAP4430_WKUPDEP_MMC1_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001997
1998/* Used by PM_L3INIT_MMC1_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001999#define OMAP4430_WKUPDEP_MMC1_SDMA_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -06002000#define OMAP4430_WKUPDEP_MMC1_SDMA_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002001
2002/* Used by PM_L3INIT_MMC1_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002003#define OMAP4430_WKUPDEP_MMC1_TESLA_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06002004#define OMAP4430_WKUPDEP_MMC1_TESLA_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002005
2006/* Used by PM_L3INIT_MMC2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002007#define OMAP4430_WKUPDEP_MMC2_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06002008#define OMAP4430_WKUPDEP_MMC2_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002009
2010/* Used by PM_L3INIT_MMC2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002011#define OMAP4430_WKUPDEP_MMC2_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002012#define OMAP4430_WKUPDEP_MMC2_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002013
2014/* Used by PM_L3INIT_MMC2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002015#define OMAP4430_WKUPDEP_MMC2_SDMA_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -06002016#define OMAP4430_WKUPDEP_MMC2_SDMA_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002017
2018/* Used by PM_L3INIT_MMC2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002019#define OMAP4430_WKUPDEP_MMC2_TESLA_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06002020#define OMAP4430_WKUPDEP_MMC2_TESLA_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002021
2022/* Used by PM_L3INIT_MMC6_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002023#define OMAP4430_WKUPDEP_MMC6_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06002024#define OMAP4430_WKUPDEP_MMC6_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002025
2026/* Used by PM_L3INIT_MMC6_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002027#define OMAP4430_WKUPDEP_MMC6_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002028#define OMAP4430_WKUPDEP_MMC6_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002029
2030/* Used by PM_L3INIT_MMC6_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002031#define OMAP4430_WKUPDEP_MMC6_TESLA_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06002032#define OMAP4430_WKUPDEP_MMC6_TESLA_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002033
2034/* Used by PM_L4PER_MMCSD3_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002035#define OMAP4430_WKUPDEP_MMCSD3_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06002036#define OMAP4430_WKUPDEP_MMCSD3_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002037
2038/* Used by PM_L4PER_MMCSD3_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002039#define OMAP4430_WKUPDEP_MMCSD3_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002040#define OMAP4430_WKUPDEP_MMCSD3_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002041
2042/* Used by PM_L4PER_MMCSD3_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002043#define OMAP4430_WKUPDEP_MMCSD3_SDMA_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -06002044#define OMAP4430_WKUPDEP_MMCSD3_SDMA_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002045
2046/* Used by PM_L4PER_MMCSD4_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002047#define OMAP4430_WKUPDEP_MMCSD4_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06002048#define OMAP4430_WKUPDEP_MMCSD4_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002049
2050/* Used by PM_L4PER_MMCSD4_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002051#define OMAP4430_WKUPDEP_MMCSD4_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002052#define OMAP4430_WKUPDEP_MMCSD4_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002053
2054/* Used by PM_L4PER_MMCSD4_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002055#define OMAP4430_WKUPDEP_MMCSD4_SDMA_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -06002056#define OMAP4430_WKUPDEP_MMCSD4_SDMA_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002057
2058/* Used by PM_L4PER_MMCSD5_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002059#define OMAP4430_WKUPDEP_MMCSD5_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06002060#define OMAP4430_WKUPDEP_MMCSD5_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002061
2062/* Used by PM_L4PER_MMCSD5_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002063#define OMAP4430_WKUPDEP_MMCSD5_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002064#define OMAP4430_WKUPDEP_MMCSD5_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002065
2066/* Used by PM_L4PER_MMCSD5_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002067#define OMAP4430_WKUPDEP_MMCSD5_SDMA_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -06002068#define OMAP4430_WKUPDEP_MMCSD5_SDMA_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002069
2070/* Used by PM_L3INIT_PCIESS_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002071#define OMAP4430_WKUPDEP_PCIESS_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002072#define OMAP4430_WKUPDEP_PCIESS_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002073
2074/* Used by PM_L3INIT_PCIESS_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002075#define OMAP4430_WKUPDEP_PCIESS_TESLA_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06002076#define OMAP4430_WKUPDEP_PCIESS_TESLA_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002077
2078/* Used by PM_ABE_PDM_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002079#define OMAP4430_WKUPDEP_PDM_DMA_SDMA_SHIFT 7
Rajendra Nayak568997c2010-09-27 14:02:55 -06002080#define OMAP4430_WKUPDEP_PDM_DMA_SDMA_MASK (1 << 7)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002081
2082/* Used by PM_ABE_PDM_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002083#define OMAP4430_WKUPDEP_PDM_DMA_TESLA_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -06002084#define OMAP4430_WKUPDEP_PDM_DMA_TESLA_MASK (1 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002085
2086/* Used by PM_ABE_PDM_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002087#define OMAP4430_WKUPDEP_PDM_IRQ_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002088#define OMAP4430_WKUPDEP_PDM_IRQ_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002089
2090/* Used by PM_ABE_PDM_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002091#define OMAP4430_WKUPDEP_PDM_IRQ_TESLA_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06002092#define OMAP4430_WKUPDEP_PDM_IRQ_TESLA_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002093
2094/* Used by PM_WKUP_RTC_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002095#define OMAP4430_WKUPDEP_RTC_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002096#define OMAP4430_WKUPDEP_RTC_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002097
2098/* Used by PM_L3INIT_SATA_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002099#define OMAP4430_WKUPDEP_SATA_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002100#define OMAP4430_WKUPDEP_SATA_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002101
2102/* Used by PM_L3INIT_SATA_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002103#define OMAP4430_WKUPDEP_SATA_TESLA_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06002104#define OMAP4430_WKUPDEP_SATA_TESLA_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002105
2106/* Used by PM_ABE_SLIMBUS_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002107#define OMAP4430_WKUPDEP_SLIMBUS1_DMA_SDMA_SHIFT 7
Rajendra Nayak568997c2010-09-27 14:02:55 -06002108#define OMAP4430_WKUPDEP_SLIMBUS1_DMA_SDMA_MASK (1 << 7)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002109
2110/* Used by PM_ABE_SLIMBUS_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002111#define OMAP4430_WKUPDEP_SLIMBUS1_DMA_TESLA_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -06002112#define OMAP4430_WKUPDEP_SLIMBUS1_DMA_TESLA_MASK (1 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002113
2114/* Used by PM_ABE_SLIMBUS_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002115#define OMAP4430_WKUPDEP_SLIMBUS1_IRQ_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002116#define OMAP4430_WKUPDEP_SLIMBUS1_IRQ_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002117
2118/* Used by PM_ABE_SLIMBUS_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002119#define OMAP4430_WKUPDEP_SLIMBUS1_IRQ_TESLA_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06002120#define OMAP4430_WKUPDEP_SLIMBUS1_IRQ_TESLA_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002121
2122/* Used by PM_L4PER_SLIMBUS2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002123#define OMAP4430_WKUPDEP_SLIMBUS2_DMA_SDMA_SHIFT 7
Rajendra Nayak568997c2010-09-27 14:02:55 -06002124#define OMAP4430_WKUPDEP_SLIMBUS2_DMA_SDMA_MASK (1 << 7)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002125
2126/* Used by PM_L4PER_SLIMBUS2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002127#define OMAP4430_WKUPDEP_SLIMBUS2_DMA_TESLA_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -06002128#define OMAP4430_WKUPDEP_SLIMBUS2_DMA_TESLA_MASK (1 << 6)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002129
2130/* Used by PM_L4PER_SLIMBUS2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002131#define OMAP4430_WKUPDEP_SLIMBUS2_IRQ_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002132#define OMAP4430_WKUPDEP_SLIMBUS2_IRQ_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002133
2134/* Used by PM_L4PER_SLIMBUS2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002135#define OMAP4430_WKUPDEP_SLIMBUS2_IRQ_TESLA_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06002136#define OMAP4430_WKUPDEP_SLIMBUS2_IRQ_TESLA_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002137
2138/* Used by PM_ALWON_SR_CORE_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002139#define OMAP4430_WKUPDEP_SR_CORE_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06002140#define OMAP4430_WKUPDEP_SR_CORE_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002141
2142/* Used by PM_ALWON_SR_CORE_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002143#define OMAP4430_WKUPDEP_SR_CORE_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002144#define OMAP4430_WKUPDEP_SR_CORE_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002145
2146/* Used by PM_ALWON_SR_IVA_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002147#define OMAP4430_WKUPDEP_SR_IVA_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06002148#define OMAP4430_WKUPDEP_SR_IVA_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002149
2150/* Used by PM_ALWON_SR_IVA_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002151#define OMAP4430_WKUPDEP_SR_IVA_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002152#define OMAP4430_WKUPDEP_SR_IVA_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002153
2154/* Used by PM_ALWON_SR_MPU_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002155#define OMAP4430_WKUPDEP_SR_MPU_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002156#define OMAP4430_WKUPDEP_SR_MPU_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002157
2158/* Used by PM_WKUP_TIMER12_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002159#define OMAP4430_WKUPDEP_TIMER12_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002160#define OMAP4430_WKUPDEP_TIMER12_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002161
2162/* Used by PM_WKUP_TIMER1_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002163#define OMAP4430_WKUPDEP_TIMER1_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002164#define OMAP4430_WKUPDEP_TIMER1_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002165
2166/* Used by PM_ABE_TIMER5_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002167#define OMAP4430_WKUPDEP_TIMER5_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002168#define OMAP4430_WKUPDEP_TIMER5_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002169
2170/* Used by PM_ABE_TIMER5_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002171#define OMAP4430_WKUPDEP_TIMER5_TESLA_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06002172#define OMAP4430_WKUPDEP_TIMER5_TESLA_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002173
2174/* Used by PM_ABE_TIMER6_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002175#define OMAP4430_WKUPDEP_TIMER6_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002176#define OMAP4430_WKUPDEP_TIMER6_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002177
2178/* Used by PM_ABE_TIMER6_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002179#define OMAP4430_WKUPDEP_TIMER6_TESLA_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06002180#define OMAP4430_WKUPDEP_TIMER6_TESLA_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002181
2182/* Used by PM_ABE_TIMER7_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002183#define OMAP4430_WKUPDEP_TIMER7_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002184#define OMAP4430_WKUPDEP_TIMER7_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002185
2186/* Used by PM_ABE_TIMER7_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002187#define OMAP4430_WKUPDEP_TIMER7_TESLA_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06002188#define OMAP4430_WKUPDEP_TIMER7_TESLA_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002189
2190/* Used by PM_ABE_TIMER8_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002191#define OMAP4430_WKUPDEP_TIMER8_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002192#define OMAP4430_WKUPDEP_TIMER8_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002193
2194/* Used by PM_ABE_TIMER8_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002195#define OMAP4430_WKUPDEP_TIMER8_TESLA_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06002196#define OMAP4430_WKUPDEP_TIMER8_TESLA_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002197
2198/* Used by PM_L4PER_UART1_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002199#define OMAP4430_WKUPDEP_UART1_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002200#define OMAP4430_WKUPDEP_UART1_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002201
2202/* Used by PM_L4PER_UART1_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002203#define OMAP4430_WKUPDEP_UART1_SDMA_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -06002204#define OMAP4430_WKUPDEP_UART1_SDMA_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002205
2206/* Used by PM_L4PER_UART2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002207#define OMAP4430_WKUPDEP_UART2_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002208#define OMAP4430_WKUPDEP_UART2_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002209
2210/* Used by PM_L4PER_UART2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002211#define OMAP4430_WKUPDEP_UART2_SDMA_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -06002212#define OMAP4430_WKUPDEP_UART2_SDMA_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002213
2214/* Used by PM_L4PER_UART3_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002215#define OMAP4430_WKUPDEP_UART3_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06002216#define OMAP4430_WKUPDEP_UART3_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002217
2218/* Used by PM_L4PER_UART3_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002219#define OMAP4430_WKUPDEP_UART3_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002220#define OMAP4430_WKUPDEP_UART3_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002221
2222/* Used by PM_L4PER_UART3_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002223#define OMAP4430_WKUPDEP_UART3_SDMA_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -06002224#define OMAP4430_WKUPDEP_UART3_SDMA_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002225
2226/* Used by PM_L4PER_UART3_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002227#define OMAP4430_WKUPDEP_UART3_TESLA_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06002228#define OMAP4430_WKUPDEP_UART3_TESLA_MASK (1 << 2)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002229
2230/* Used by PM_L4PER_UART4_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002231#define OMAP4430_WKUPDEP_UART4_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002232#define OMAP4430_WKUPDEP_UART4_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002233
2234/* Used by PM_L4PER_UART4_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002235#define OMAP4430_WKUPDEP_UART4_SDMA_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -06002236#define OMAP4430_WKUPDEP_UART4_SDMA_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002237
2238/* Used by PM_L3INIT_UNIPRO1_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002239#define OMAP4430_WKUPDEP_UNIPRO1_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06002240#define OMAP4430_WKUPDEP_UNIPRO1_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002241
2242/* Used by PM_L3INIT_UNIPRO1_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002243#define OMAP4430_WKUPDEP_UNIPRO1_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002244#define OMAP4430_WKUPDEP_UNIPRO1_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002245
2246/* Used by PM_L3INIT_USB_HOST_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002247#define OMAP4430_WKUPDEP_USB_HOST_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06002248#define OMAP4430_WKUPDEP_USB_HOST_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002249
2250/* Used by PM_L3INIT_USB_HOST_FS_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002251#define OMAP4430_WKUPDEP_USB_HOST_FS_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06002252#define OMAP4430_WKUPDEP_USB_HOST_FS_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002253
2254/* Used by PM_L3INIT_USB_HOST_FS_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002255#define OMAP4430_WKUPDEP_USB_HOST_FS_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002256#define OMAP4430_WKUPDEP_USB_HOST_FS_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002257
2258/* Used by PM_L3INIT_USB_HOST_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002259#define OMAP4430_WKUPDEP_USB_HOST_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002260#define OMAP4430_WKUPDEP_USB_HOST_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002261
2262/* Used by PM_L3INIT_USB_OTG_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002263#define OMAP4430_WKUPDEP_USB_OTG_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06002264#define OMAP4430_WKUPDEP_USB_OTG_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002265
2266/* Used by PM_L3INIT_USB_OTG_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002267#define OMAP4430_WKUPDEP_USB_OTG_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002268#define OMAP4430_WKUPDEP_USB_OTG_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002269
2270/* Used by PM_L3INIT_USB_TLL_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002271#define OMAP4430_WKUPDEP_USB_TLL_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06002272#define OMAP4430_WKUPDEP_USB_TLL_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002273
2274/* Used by PM_L3INIT_USB_TLL_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002275#define OMAP4430_WKUPDEP_USB_TLL_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002276#define OMAP4430_WKUPDEP_USB_TLL_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002277
2278/* Used by PM_WKUP_USIM_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002279#define OMAP4430_WKUPDEP_USIM_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002280#define OMAP4430_WKUPDEP_USIM_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002281
2282/* Used by PM_WKUP_USIM_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002283#define OMAP4430_WKUPDEP_USIM_SDMA_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -06002284#define OMAP4430_WKUPDEP_USIM_SDMA_MASK (1 << 3)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002285
2286/* Used by PM_WKUP_WDT2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002287#define OMAP4430_WKUPDEP_WDT2_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06002288#define OMAP4430_WKUPDEP_WDT2_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002289
2290/* Used by PM_WKUP_WDT2_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002291#define OMAP4430_WKUPDEP_WDT2_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002292#define OMAP4430_WKUPDEP_WDT2_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002293
2294/* Used by PM_ABE_WDT3_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002295#define OMAP4430_WKUPDEP_WDT3_MPU_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06002296#define OMAP4430_WKUPDEP_WDT3_MPU_MASK (1 << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002297
2298/* Used by PM_L3INIT_HSI_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002299#define OMAP4430_WKUPDEP_WGM_HSI_WAKE_MPU_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06002300#define OMAP4430_WKUPDEP_WGM_HSI_WAKE_MPU_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002301
2302/* Used by PM_L3INIT_XHPI_WKDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002303#define OMAP4430_WKUPDEP_XHPI_DUCATI_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06002304#define OMAP4430_WKUPDEP_XHPI_DUCATI_MASK (1 << 1)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002305
2306/* Used by PRM_IO_PMCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002307#define OMAP4430_WUCLK_CTRL_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06002308#define OMAP4430_WUCLK_CTRL_MASK (1 << 8)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002309
2310/* Used by PRM_IO_PMCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07002311#define OMAP4430_WUCLK_STATUS_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06002312#define OMAP4430_WUCLK_STATUS_MASK (1 << 9)
2313
2314/* Used by REVISION_PRM */
2315#define OMAP4430_X_MAJOR_SHIFT 8
2316#define OMAP4430_X_MAJOR_MASK (0x7 << 8)
2317
2318/* Used by REVISION_PRM */
2319#define OMAP4430_Y_MINOR_SHIFT 0
2320#define OMAP4430_Y_MINOR_MASK (0x3f << 0)
Rajendra Nayak234f0c42009-12-08 18:24:52 -07002321#endif