blob: 90f603d434c6aef4a5d717889a43561a65233fa7 [file] [log] [blame]
Paul Walmsley69d88a02008-03-18 10:02:50 +02001#ifndef __ARCH_ASM_MACH_OMAP2_PRCM_COMMON_H
2#define __ARCH_ASM_MACH_OMAP2_PRCM_COMMON_H
3
4/*
5 * OMAP2/3 PRCM base and module definitions
6 *
Rajendra Nayak77772d52009-12-08 18:24:49 -07007 * Copyright (C) 2007-2009 Texas Instruments, Inc.
8 * Copyright (C) 2007-2009 Nokia Corporation
Paul Walmsley69d88a02008-03-18 10:02:50 +02009 *
10 * Written by Paul Walmsley
Rajendra Nayak77772d52009-12-08 18:24:49 -070011 * OMAP4 defines in this file are automatically generated from the OMAP hardware
12 * databases.
Paul Walmsley69d88a02008-03-18 10:02:50 +020013 *
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License version 2 as
16 * published by the Free Software Foundation.
17 */
18
19
20/* Module offsets from both CM_BASE & PRM_BASE */
21
22/*
23 * Offsets that are the same on 24xx and 34xx
24 *
25 * Technically, in terms of the TRM, OCP_MOD is 34xx only; PLL_MOD is
26 * CCR_MOD on 3430; and GFX_MOD only exists < 3430ES2.
27 */
28#define OCP_MOD 0x000
29#define MPU_MOD 0x100
30#define CORE_MOD 0x200
31#define GFX_MOD 0x300
32#define WKUP_MOD 0x400
33#define PLL_MOD 0x500
34
35
36/* Chip-specific module offsets */
Tony Lindgrenc2d43e32008-07-03 12:24:38 +030037#define OMAP24XX_GR_MOD OCP_MOD
Paul Walmsley69d88a02008-03-18 10:02:50 +020038#define OMAP24XX_DSP_MOD 0x800
39
40#define OMAP2430_MDM_MOD 0xc00
41
42/* IVA2 module is < base on 3430 */
43#define OMAP3430_IVA2_MOD -0x800
44#define OMAP3430ES2_SGX_MOD GFX_MOD
45#define OMAP3430_CCR_MOD PLL_MOD
46#define OMAP3430_DSS_MOD 0x600
47#define OMAP3430_CAM_MOD 0x700
48#define OMAP3430_PER_MOD 0x800
49#define OMAP3430_EMU_MOD 0x900
50#define OMAP3430_GR_MOD 0xa00
51#define OMAP3430_NEON_MOD 0xb00
52#define OMAP3430ES2_USBHOST_MOD 0xc00
53
Rajendra Nayak234f0c42009-12-08 18:24:52 -070054#define BITS(n_bit) \
55 (((1 << n_bit) - 1) | (1 << n_bit))
56
57#define BITFIELD(l_bit, u_bit) \
58 (BITS(u_bit) & ~((BITS(l_bit)) >> 1))
59
Rajendra Nayak77772d52009-12-08 18:24:49 -070060/* OMAP44XX specific module offsets */
61
62/* CM1 instances */
63
64#define OMAP4430_CM1_OCP_SOCKET_MOD 0x0000
65#define OMAP4430_CM1_CKGEN_MOD 0x0100
66#define OMAP4430_CM1_MPU_MOD 0x0300
67#define OMAP4430_CM1_TESLA_MOD 0x0400
68#define OMAP4430_CM1_ABE_MOD 0x0500
69#define OMAP4430_CM1_RESTORE_MOD 0x0e00
70#define OMAP4430_CM1_INSTR_MOD 0x0f00
71
72/* CM2 instances */
73
74#define OMAP4430_CM2_OCP_SOCKET_MOD 0x0000
75#define OMAP4430_CM2_CKGEN_MOD 0x0100
76#define OMAP4430_CM2_ALWAYS_ON_MOD 0x0600
77#define OMAP4430_CM2_CORE_MOD 0x0700
78#define OMAP4430_CM2_IVAHD_MOD 0x0f00
79#define OMAP4430_CM2_CAM_MOD 0x1000
80#define OMAP4430_CM2_DSS_MOD 0x1100
81#define OMAP4430_CM2_GFX_MOD 0x1200
82#define OMAP4430_CM2_L3INIT_MOD 0x1300
83#define OMAP4430_CM2_L4PER_MOD 0x1400
84#define OMAP4430_CM2_CEFUSE_MOD 0x1600
85#define OMAP4430_CM2_RESTORE_MOD 0x1e00
86#define OMAP4430_CM2_INSTR_MOD 0x1f00
87
88/* PRM instances */
89
90#define OMAP4430_PRM_OCP_SOCKET_MOD 0x0000
91#define OMAP4430_PRM_CKGEN_MOD 0x0100
92#define OMAP4430_PRM_MPU_MOD 0x0300
93#define OMAP4430_PRM_TESLA_MOD 0x0400
94#define OMAP4430_PRM_ABE_MOD 0x0500
95#define OMAP4430_PRM_ALWAYS_ON_MOD 0x0600
96#define OMAP4430_PRM_CORE_MOD 0x0700
97#define OMAP4430_PRM_IVAHD_MOD 0x0f00
98#define OMAP4430_PRM_CAM_MOD 0x1000
99#define OMAP4430_PRM_DSS_MOD 0x1100
100#define OMAP4430_PRM_GFX_MOD 0x1200
101#define OMAP4430_PRM_L3INIT_MOD 0x1300
102#define OMAP4430_PRM_L4PER_MOD 0x1400
103#define OMAP4430_PRM_CEFUSE_MOD 0x1600
104#define OMAP4430_PRM_WKUP_MOD 0x1700
105#define OMAP4430_PRM_WKUP_CM_MOD 0x1800
106#define OMAP4430_PRM_EMU_MOD 0x1900
107#define OMAP4430_PRM_EMU_CM_MOD 0x1a00
108#define OMAP4430_PRM_DEVICE_MOD 0x1b00
109#define OMAP4430_PRM_INSTR_MOD 0x1f00
110
111/* SCRM instances */
112
113#define OMAP4430_SCRM_SCRM_MOD 0x0000
114
115/* CHIRONSS instances */
116
117#define OMAP4430_CHIRONSS_CHIRONSS_OCP_SOCKET_PRCM_MOD 0x0000
118#define OMAP4430_CHIRONSS_CHIRONSS_DEVICE_PRM_MOD 0x0200
119#define OMAP4430_CHIRONSS_CHIRONSS_CPU0_MOD 0x0400
120#define OMAP4430_CHIRONSS_CHIRONSS_CPU1_MOD 0x0800
Paul Walmsley69d88a02008-03-18 10:02:50 +0200121
Abhijit Pagare37903002010-01-26 20:12:51 -0700122/* Base Addresses for the OMAP4 */
123
124#define OMAP4430_CM1_BASE 0x4a004000
125#define OMAP4430_CM2_BASE 0x4a008000
126#define OMAP4430_PRM_BASE 0x4a306000
127#define OMAP4430_SCRM_BASE 0x4a30a000
128#define OMAP4430_CHIRONSS_BASE 0x48243000
129
130
Paul Walmsley69d88a02008-03-18 10:02:50 +0200131/* 24XX register bits shared between CM & PRM registers */
132
133/* CM_FCLKEN1_CORE, CM_ICLKEN1_CORE, PM_WKEN1_CORE shared bits */
134#define OMAP2420_EN_MMC_SHIFT 26
135#define OMAP2420_EN_MMC (1 << 26)
136#define OMAP24XX_EN_UART2_SHIFT 22
137#define OMAP24XX_EN_UART2 (1 << 22)
138#define OMAP24XX_EN_UART1_SHIFT 21
139#define OMAP24XX_EN_UART1 (1 << 21)
140#define OMAP24XX_EN_MCSPI2_SHIFT 18
141#define OMAP24XX_EN_MCSPI2 (1 << 18)
142#define OMAP24XX_EN_MCSPI1_SHIFT 17
143#define OMAP24XX_EN_MCSPI1 (1 << 17)
144#define OMAP24XX_EN_MCBSP2_SHIFT 16
145#define OMAP24XX_EN_MCBSP2 (1 << 16)
146#define OMAP24XX_EN_MCBSP1_SHIFT 15
147#define OMAP24XX_EN_MCBSP1 (1 << 15)
148#define OMAP24XX_EN_GPT12_SHIFT 14
149#define OMAP24XX_EN_GPT12 (1 << 14)
150#define OMAP24XX_EN_GPT11_SHIFT 13
151#define OMAP24XX_EN_GPT11 (1 << 13)
152#define OMAP24XX_EN_GPT10_SHIFT 12
153#define OMAP24XX_EN_GPT10 (1 << 12)
154#define OMAP24XX_EN_GPT9_SHIFT 11
155#define OMAP24XX_EN_GPT9 (1 << 11)
156#define OMAP24XX_EN_GPT8_SHIFT 10
157#define OMAP24XX_EN_GPT8 (1 << 10)
158#define OMAP24XX_EN_GPT7_SHIFT 9
159#define OMAP24XX_EN_GPT7 (1 << 9)
160#define OMAP24XX_EN_GPT6_SHIFT 8
161#define OMAP24XX_EN_GPT6 (1 << 8)
162#define OMAP24XX_EN_GPT5_SHIFT 7
163#define OMAP24XX_EN_GPT5 (1 << 7)
164#define OMAP24XX_EN_GPT4_SHIFT 6
165#define OMAP24XX_EN_GPT4 (1 << 6)
166#define OMAP24XX_EN_GPT3_SHIFT 5
167#define OMAP24XX_EN_GPT3 (1 << 5)
168#define OMAP24XX_EN_GPT2_SHIFT 4
169#define OMAP24XX_EN_GPT2 (1 << 4)
170#define OMAP2420_EN_VLYNQ_SHIFT 3
171#define OMAP2420_EN_VLYNQ (1 << 3)
172
173/* CM_FCLKEN2_CORE, CM_ICLKEN2_CORE, PM_WKEN2_CORE shared bits */
174#define OMAP2430_EN_GPIO5_SHIFT 10
175#define OMAP2430_EN_GPIO5 (1 << 10)
176#define OMAP2430_EN_MCSPI3_SHIFT 9
177#define OMAP2430_EN_MCSPI3 (1 << 9)
178#define OMAP2430_EN_MMCHS2_SHIFT 8
179#define OMAP2430_EN_MMCHS2 (1 << 8)
180#define OMAP2430_EN_MMCHS1_SHIFT 7
181#define OMAP2430_EN_MMCHS1 (1 << 7)
182#define OMAP24XX_EN_UART3_SHIFT 2
183#define OMAP24XX_EN_UART3 (1 << 2)
184#define OMAP24XX_EN_USB_SHIFT 0
185#define OMAP24XX_EN_USB (1 << 0)
186
187/* CM_ICLKEN2_CORE, PM_WKEN2_CORE shared bits */
188#define OMAP2430_EN_MDM_INTC_SHIFT 11
189#define OMAP2430_EN_MDM_INTC (1 << 11)
190#define OMAP2430_EN_USBHS_SHIFT 6
191#define OMAP2430_EN_USBHS (1 << 6)
192
193/* CM_IDLEST1_CORE, PM_WKST1_CORE shared bits */
Paul Walmsleyda0747d2009-01-28 12:18:22 -0700194#define OMAP2420_ST_MMC_SHIFT 26
195#define OMAP2420_ST_MMC_MASK (1 << 26)
196#define OMAP24XX_ST_UART2_SHIFT 22
197#define OMAP24XX_ST_UART2_MASK (1 << 22)
198#define OMAP24XX_ST_UART1_SHIFT 21
199#define OMAP24XX_ST_UART1_MASK (1 << 21)
200#define OMAP24XX_ST_MCSPI2_SHIFT 18
201#define OMAP24XX_ST_MCSPI2_MASK (1 << 18)
202#define OMAP24XX_ST_MCSPI1_SHIFT 17
203#define OMAP24XX_ST_MCSPI1_MASK (1 << 17)
204#define OMAP24XX_ST_GPT12_SHIFT 14
205#define OMAP24XX_ST_GPT12_MASK (1 << 14)
206#define OMAP24XX_ST_GPT11_SHIFT 13
207#define OMAP24XX_ST_GPT11_MASK (1 << 13)
208#define OMAP24XX_ST_GPT10_SHIFT 12
209#define OMAP24XX_ST_GPT10_MASK (1 << 12)
210#define OMAP24XX_ST_GPT9_SHIFT 11
211#define OMAP24XX_ST_GPT9_MASK (1 << 11)
212#define OMAP24XX_ST_GPT8_SHIFT 10
213#define OMAP24XX_ST_GPT8_MASK (1 << 10)
214#define OMAP24XX_ST_GPT7_SHIFT 9
215#define OMAP24XX_ST_GPT7_MASK (1 << 9)
216#define OMAP24XX_ST_GPT6_SHIFT 8
217#define OMAP24XX_ST_GPT6_MASK (1 << 8)
218#define OMAP24XX_ST_GPT5_SHIFT 7
219#define OMAP24XX_ST_GPT5_MASK (1 << 7)
220#define OMAP24XX_ST_GPT4_SHIFT 6
221#define OMAP24XX_ST_GPT4_MASK (1 << 6)
222#define OMAP24XX_ST_GPT3_SHIFT 5
223#define OMAP24XX_ST_GPT3_MASK (1 << 5)
224#define OMAP24XX_ST_GPT2_SHIFT 4
225#define OMAP24XX_ST_GPT2_MASK (1 << 4)
226#define OMAP2420_ST_VLYNQ_SHIFT 3
227#define OMAP2420_ST_VLYNQ_MASK (1 << 3)
Paul Walmsley69d88a02008-03-18 10:02:50 +0200228
229/* CM_IDLEST2_CORE, PM_WKST2_CORE shared bits */
Paul Walmsleyda0747d2009-01-28 12:18:22 -0700230#define OMAP2430_ST_MDM_INTC_SHIFT 11
231#define OMAP2430_ST_MDM_INTC_MASK (1 << 11)
232#define OMAP2430_ST_GPIO5_SHIFT 10
233#define OMAP2430_ST_GPIO5_MASK (1 << 10)
234#define OMAP2430_ST_MCSPI3_SHIFT 9
235#define OMAP2430_ST_MCSPI3_MASK (1 << 9)
236#define OMAP2430_ST_MMCHS2_SHIFT 8
237#define OMAP2430_ST_MMCHS2_MASK (1 << 8)
238#define OMAP2430_ST_MMCHS1_SHIFT 7
239#define OMAP2430_ST_MMCHS1_MASK (1 << 7)
240#define OMAP2430_ST_USBHS_SHIFT 6
241#define OMAP2430_ST_USBHS_MASK (1 << 6)
242#define OMAP24XX_ST_UART3_SHIFT 2
243#define OMAP24XX_ST_UART3_MASK (1 << 2)
244#define OMAP24XX_ST_USB_SHIFT 0
245#define OMAP24XX_ST_USB_MASK (1 << 0)
Paul Walmsley69d88a02008-03-18 10:02:50 +0200246
247/* CM_FCLKEN_WKUP, CM_ICLKEN_WKUP, PM_WKEN_WKUP shared bits */
248#define OMAP24XX_EN_GPIOS_SHIFT 2
249#define OMAP24XX_EN_GPIOS (1 << 2)
250#define OMAP24XX_EN_GPT1_SHIFT 0
251#define OMAP24XX_EN_GPT1 (1 << 0)
252
253/* PM_WKST_WKUP, CM_IDLEST_WKUP shared bits */
Paul Walmsleyda0747d2009-01-28 12:18:22 -0700254#define OMAP24XX_ST_GPIOS_SHIFT (1 << 2)
255#define OMAP24XX_ST_GPIOS_MASK 2
256#define OMAP24XX_ST_GPT1_SHIFT (1 << 0)
257#define OMAP24XX_ST_GPT1_MASK 0
Paul Walmsley69d88a02008-03-18 10:02:50 +0200258
259/* CM_IDLEST_MDM and PM_WKST_MDM shared bits */
Paul Walmsleyda0747d2009-01-28 12:18:22 -0700260#define OMAP2430_ST_MDM_SHIFT (1 << 0)
Paul Walmsley69d88a02008-03-18 10:02:50 +0200261
262
263/* 3430 register bits shared between CM & PRM registers */
264
265/* CM_REVISION, PRM_REVISION shared bits */
266#define OMAP3430_REV_SHIFT 0
267#define OMAP3430_REV_MASK (0xff << 0)
268
269/* CM_SYSCONFIG, PRM_SYSCONFIG shared bits */
270#define OMAP3430_AUTOIDLE (1 << 0)
271
272/* CM_FCLKEN1_CORE, CM_ICLKEN1_CORE, PM_WKEN1_CORE shared bits */
273#define OMAP3430_EN_MMC2 (1 << 25)
274#define OMAP3430_EN_MMC2_SHIFT 25
275#define OMAP3430_EN_MMC1 (1 << 24)
276#define OMAP3430_EN_MMC1_SHIFT 24
277#define OMAP3430_EN_MCSPI4 (1 << 21)
278#define OMAP3430_EN_MCSPI4_SHIFT 21
279#define OMAP3430_EN_MCSPI3 (1 << 20)
280#define OMAP3430_EN_MCSPI3_SHIFT 20
281#define OMAP3430_EN_MCSPI2 (1 << 19)
282#define OMAP3430_EN_MCSPI2_SHIFT 19
283#define OMAP3430_EN_MCSPI1 (1 << 18)
284#define OMAP3430_EN_MCSPI1_SHIFT 18
285#define OMAP3430_EN_I2C3 (1 << 17)
286#define OMAP3430_EN_I2C3_SHIFT 17
287#define OMAP3430_EN_I2C2 (1 << 16)
288#define OMAP3430_EN_I2C2_SHIFT 16
289#define OMAP3430_EN_I2C1 (1 << 15)
290#define OMAP3430_EN_I2C1_SHIFT 15
291#define OMAP3430_EN_UART2 (1 << 14)
292#define OMAP3430_EN_UART2_SHIFT 14
293#define OMAP3430_EN_UART1 (1 << 13)
294#define OMAP3430_EN_UART1_SHIFT 13
295#define OMAP3430_EN_GPT11 (1 << 12)
296#define OMAP3430_EN_GPT11_SHIFT 12
297#define OMAP3430_EN_GPT10 (1 << 11)
298#define OMAP3430_EN_GPT10_SHIFT 11
299#define OMAP3430_EN_MCBSP5 (1 << 10)
300#define OMAP3430_EN_MCBSP5_SHIFT 10
301#define OMAP3430_EN_MCBSP1 (1 << 9)
302#define OMAP3430_EN_MCBSP1_SHIFT 9
303#define OMAP3430_EN_FSHOSTUSB (1 << 5)
304#define OMAP3430_EN_FSHOSTUSB_SHIFT 5
305#define OMAP3430_EN_D2D (1 << 3)
306#define OMAP3430_EN_D2D_SHIFT 3
307
308/* CM_ICLKEN1_CORE, PM_WKEN1_CORE shared bits */
309#define OMAP3430_EN_HSOTGUSB (1 << 4)
310#define OMAP3430_EN_HSOTGUSB_SHIFT 4
311
312/* PM_WKST1_CORE, CM_IDLEST1_CORE shared bits */
Paul Walmsleyda0747d2009-01-28 12:18:22 -0700313#define OMAP3430_ST_MMC2_SHIFT 25
314#define OMAP3430_ST_MMC2_MASK (1 << 25)
315#define OMAP3430_ST_MMC1_SHIFT 24
316#define OMAP3430_ST_MMC1_MASK (1 << 24)
317#define OMAP3430_ST_MCSPI4_SHIFT 21
318#define OMAP3430_ST_MCSPI4_MASK (1 << 21)
319#define OMAP3430_ST_MCSPI3_SHIFT 20
320#define OMAP3430_ST_MCSPI3_MASK (1 << 20)
321#define OMAP3430_ST_MCSPI2_SHIFT 19
322#define OMAP3430_ST_MCSPI2_MASK (1 << 19)
323#define OMAP3430_ST_MCSPI1_SHIFT 18
324#define OMAP3430_ST_MCSPI1_MASK (1 << 18)
325#define OMAP3430_ST_I2C3_SHIFT 17
326#define OMAP3430_ST_I2C3_MASK (1 << 17)
327#define OMAP3430_ST_I2C2_SHIFT 16
328#define OMAP3430_ST_I2C2_MASK (1 << 16)
329#define OMAP3430_ST_I2C1_SHIFT 15
330#define OMAP3430_ST_I2C1_MASK (1 << 15)
331#define OMAP3430_ST_UART2_SHIFT 14
332#define OMAP3430_ST_UART2_MASK (1 << 14)
333#define OMAP3430_ST_UART1_SHIFT 13
334#define OMAP3430_ST_UART1_MASK (1 << 13)
335#define OMAP3430_ST_GPT11_SHIFT 12
336#define OMAP3430_ST_GPT11_MASK (1 << 12)
337#define OMAP3430_ST_GPT10_SHIFT 11
338#define OMAP3430_ST_GPT10_MASK (1 << 11)
339#define OMAP3430_ST_MCBSP5_SHIFT 10
340#define OMAP3430_ST_MCBSP5_MASK (1 << 10)
341#define OMAP3430_ST_MCBSP1_SHIFT 9
342#define OMAP3430_ST_MCBSP1_MASK (1 << 9)
343#define OMAP3430ES1_ST_FSHOSTUSB_SHIFT 5
344#define OMAP3430ES1_ST_FSHOSTUSB_MASK (1 << 5)
345#define OMAP3430ES1_ST_HSOTGUSB_SHIFT 4
346#define OMAP3430ES1_ST_HSOTGUSB_MASK (1 << 4)
347#define OMAP3430ES2_ST_HSOTGUSB_IDLE_SHIFT 5
348#define OMAP3430ES2_ST_HSOTGUSB_IDLE_MASK (1 << 5)
349#define OMAP3430ES2_ST_HSOTGUSB_STDBY_SHIFT 4
350#define OMAP3430ES2_ST_HSOTGUSB_STDBY_MASK (1 << 4)
351#define OMAP3430_ST_D2D_SHIFT 3
352#define OMAP3430_ST_D2D_MASK (1 << 3)
Paul Walmsley69d88a02008-03-18 10:02:50 +0200353
354/* CM_FCLKEN_WKUP, CM_ICLKEN_WKUP, PM_WKEN_WKUP shared bits */
355#define OMAP3430_EN_GPIO1 (1 << 3)
356#define OMAP3430_EN_GPIO1_SHIFT 3
Kevin Hilman8bd22942009-05-28 10:56:16 -0700357#define OMAP3430_EN_GPT12 (1 << 1)
358#define OMAP3430_EN_GPT12_SHIFT 1
Paul Walmsley69d88a02008-03-18 10:02:50 +0200359#define OMAP3430_EN_GPT1 (1 << 0)
360#define OMAP3430_EN_GPT1_SHIFT 0
361
362/* CM_FCLKEN_WKUP, PM_WKEN_WKUP shared bits */
363#define OMAP3430_EN_SR2 (1 << 7)
364#define OMAP3430_EN_SR2_SHIFT 7
365#define OMAP3430_EN_SR1 (1 << 6)
366#define OMAP3430_EN_SR1_SHIFT 6
367
368/* CM_ICLKEN_WKUP, PM_WKEN_WKUP shared bits */
369#define OMAP3430_EN_GPT12 (1 << 1)
370#define OMAP3430_EN_GPT12_SHIFT 1
371
372/* CM_IDLEST_WKUP, PM_WKST_WKUP shared bits */
Paul Walmsleyda0747d2009-01-28 12:18:22 -0700373#define OMAP3430_ST_SR2_SHIFT 7
374#define OMAP3430_ST_SR2_MASK (1 << 7)
375#define OMAP3430_ST_SR1_SHIFT 6
376#define OMAP3430_ST_SR1_MASK (1 << 6)
377#define OMAP3430_ST_GPIO1_SHIFT 3
378#define OMAP3430_ST_GPIO1_MASK (1 << 3)
379#define OMAP3430_ST_GPT12_SHIFT 1
380#define OMAP3430_ST_GPT12_MASK (1 << 1)
381#define OMAP3430_ST_GPT1_SHIFT 0
382#define OMAP3430_ST_GPT1_MASK (1 << 0)
Paul Walmsley69d88a02008-03-18 10:02:50 +0200383
384/*
385 * CM_SLEEPDEP_GFX, CM_SLEEPDEP_DSS, CM_SLEEPDEP_CAM,
386 * CM_SLEEPDEP_PER, PM_WKDEP_IVA2, PM_WKDEP_GFX,
387 * PM_WKDEP_DSS, PM_WKDEP_CAM, PM_WKDEP_PER, PM_WKDEP_NEON shared bits
388 */
389#define OMAP3430_EN_MPU (1 << 1)
390#define OMAP3430_EN_MPU_SHIFT 1
391
392/* CM_FCLKEN_PER, CM_ICLKEN_PER, PM_WKEN_PER shared bits */
393#define OMAP3430_EN_GPIO6 (1 << 17)
394#define OMAP3430_EN_GPIO6_SHIFT 17
395#define OMAP3430_EN_GPIO5 (1 << 16)
396#define OMAP3430_EN_GPIO5_SHIFT 16
397#define OMAP3430_EN_GPIO4 (1 << 15)
398#define OMAP3430_EN_GPIO4_SHIFT 15
399#define OMAP3430_EN_GPIO3 (1 << 14)
400#define OMAP3430_EN_GPIO3_SHIFT 14
401#define OMAP3430_EN_GPIO2 (1 << 13)
402#define OMAP3430_EN_GPIO2_SHIFT 13
403#define OMAP3430_EN_UART3 (1 << 11)
404#define OMAP3430_EN_UART3_SHIFT 11
405#define OMAP3430_EN_GPT9 (1 << 10)
406#define OMAP3430_EN_GPT9_SHIFT 10
407#define OMAP3430_EN_GPT8 (1 << 9)
408#define OMAP3430_EN_GPT8_SHIFT 9
409#define OMAP3430_EN_GPT7 (1 << 8)
410#define OMAP3430_EN_GPT7_SHIFT 8
411#define OMAP3430_EN_GPT6 (1 << 7)
412#define OMAP3430_EN_GPT6_SHIFT 7
413#define OMAP3430_EN_GPT5 (1 << 6)
414#define OMAP3430_EN_GPT5_SHIFT 6
415#define OMAP3430_EN_GPT4 (1 << 5)
416#define OMAP3430_EN_GPT4_SHIFT 5
417#define OMAP3430_EN_GPT3 (1 << 4)
418#define OMAP3430_EN_GPT3_SHIFT 4
419#define OMAP3430_EN_GPT2 (1 << 3)
420#define OMAP3430_EN_GPT2_SHIFT 3
421
422/* CM_FCLKEN_PER, CM_ICLKEN_PER, PM_WKEN_PER, PM_WKST_PER shared bits */
423/* XXX Possible TI documentation bug: should the PM_WKST_PER EN_* bits
424 * be ST_* bits instead? */
425#define OMAP3430_EN_MCBSP4 (1 << 2)
426#define OMAP3430_EN_MCBSP4_SHIFT 2
427#define OMAP3430_EN_MCBSP3 (1 << 1)
428#define OMAP3430_EN_MCBSP3_SHIFT 1
429#define OMAP3430_EN_MCBSP2 (1 << 0)
430#define OMAP3430_EN_MCBSP2_SHIFT 0
431
432/* CM_IDLEST_PER, PM_WKST_PER shared bits */
Paul Walmsleyda0747d2009-01-28 12:18:22 -0700433#define OMAP3430_ST_GPIO6_SHIFT 17
434#define OMAP3430_ST_GPIO6_MASK (1 << 17)
435#define OMAP3430_ST_GPIO5_SHIFT 16
436#define OMAP3430_ST_GPIO5_MASK (1 << 16)
437#define OMAP3430_ST_GPIO4_SHIFT 15
438#define OMAP3430_ST_GPIO4_MASK (1 << 15)
439#define OMAP3430_ST_GPIO3_SHIFT 14
440#define OMAP3430_ST_GPIO3_MASK (1 << 14)
441#define OMAP3430_ST_GPIO2_SHIFT 13
442#define OMAP3430_ST_GPIO2_MASK (1 << 13)
443#define OMAP3430_ST_UART3_SHIFT 11
444#define OMAP3430_ST_UART3_MASK (1 << 11)
445#define OMAP3430_ST_GPT9_SHIFT 10
446#define OMAP3430_ST_GPT9_MASK (1 << 10)
447#define OMAP3430_ST_GPT8_SHIFT 9
448#define OMAP3430_ST_GPT8_MASK (1 << 9)
449#define OMAP3430_ST_GPT7_SHIFT 8
450#define OMAP3430_ST_GPT7_MASK (1 << 8)
451#define OMAP3430_ST_GPT6_SHIFT 7
452#define OMAP3430_ST_GPT6_MASK (1 << 7)
453#define OMAP3430_ST_GPT5_SHIFT 6
454#define OMAP3430_ST_GPT5_MASK (1 << 6)
455#define OMAP3430_ST_GPT4_SHIFT 5
456#define OMAP3430_ST_GPT4_MASK (1 << 5)
457#define OMAP3430_ST_GPT3_SHIFT 4
458#define OMAP3430_ST_GPT3_MASK (1 << 4)
459#define OMAP3430_ST_GPT2_SHIFT 3
460#define OMAP3430_ST_GPT2_MASK (1 << 3)
Paul Walmsley69d88a02008-03-18 10:02:50 +0200461
462/* CM_SLEEPDEP_PER, PM_WKDEP_IVA2, PM_WKDEP_MPU, PM_WKDEP_PER shared bits */
Paul Walmsleyecb24aa2008-08-19 11:08:43 +0300463#define OMAP3430_EN_CORE_SHIFT 0
464#define OMAP3430_EN_CORE_MASK (1 << 0)
Paul Walmsley69d88a02008-03-18 10:02:50 +0200465
466#endif
467