Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 1 | #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 Nayak | 77772d5f | 2009-12-08 18:24:49 -0700 | [diff] [blame] | 7 | * Copyright (C) 2007-2009 Texas Instruments, Inc. |
| 8 | * Copyright (C) 2007-2009 Nokia Corporation |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 9 | * |
| 10 | * Written by Paul Walmsley |
Rajendra Nayak | 77772d5f | 2009-12-08 18:24:49 -0700 | [diff] [blame] | 11 | * OMAP4 defines in this file are automatically generated from the OMAP hardware |
| 12 | * databases. |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 13 | * |
| 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 Lindgren | c2d43e3 | 2008-07-03 12:24:38 +0300 | [diff] [blame] | 37 | #define OMAP24XX_GR_MOD OCP_MOD |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 38 | #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 Nayak | 234f0c4 | 2009-12-08 18:24:52 -0700 | [diff] [blame] | 54 | #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 Nayak | 77772d5f | 2009-12-08 18:24:49 -0700 | [diff] [blame] | 60 | /* 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 | |
Benoit Cousson | 7932870 | 2010-05-20 12:31:11 -0600 | [diff] [blame] | 115 | /* PRCM_MPU instances */ |
Rajendra Nayak | 77772d5f | 2009-12-08 18:24:49 -0700 | [diff] [blame] | 116 | |
Benoit Cousson | 7932870 | 2010-05-20 12:31:11 -0600 | [diff] [blame] | 117 | #define OMAP4430_PRCM_MPU_OCP_SOCKET_PRCM_MOD 0x0000 |
| 118 | #define OMAP4430_PRCM_MPU_DEVICE_PRM_MOD 0x0200 |
| 119 | #define OMAP4430_PRCM_MPU_CPU0_MOD 0x0400 |
| 120 | #define OMAP4430_PRCM_MPU_CPU1_MOD 0x0800 |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 121 | |
Abhijit Pagare | 3790300 | 2010-01-26 20:12:51 -0700 | [diff] [blame] | 122 | |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 123 | /* 24XX register bits shared between CM & PRM registers */ |
| 124 | |
| 125 | /* CM_FCLKEN1_CORE, CM_ICLKEN1_CORE, PM_WKEN1_CORE shared bits */ |
| 126 | #define OMAP2420_EN_MMC_SHIFT 26 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 127 | #define OMAP2420_EN_MMC_MASK (1 << 26) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 128 | #define OMAP24XX_EN_UART2_SHIFT 22 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 129 | #define OMAP24XX_EN_UART2_MASK (1 << 22) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 130 | #define OMAP24XX_EN_UART1_SHIFT 21 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 131 | #define OMAP24XX_EN_UART1_MASK (1 << 21) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 132 | #define OMAP24XX_EN_MCSPI2_SHIFT 18 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 133 | #define OMAP24XX_EN_MCSPI2_MASK (1 << 18) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 134 | #define OMAP24XX_EN_MCSPI1_SHIFT 17 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 135 | #define OMAP24XX_EN_MCSPI1_MASK (1 << 17) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 136 | #define OMAP24XX_EN_MCBSP2_SHIFT 16 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 137 | #define OMAP24XX_EN_MCBSP2_MASK (1 << 16) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 138 | #define OMAP24XX_EN_MCBSP1_SHIFT 15 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 139 | #define OMAP24XX_EN_MCBSP1_MASK (1 << 15) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 140 | #define OMAP24XX_EN_GPT12_SHIFT 14 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 141 | #define OMAP24XX_EN_GPT12_MASK (1 << 14) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 142 | #define OMAP24XX_EN_GPT11_SHIFT 13 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 143 | #define OMAP24XX_EN_GPT11_MASK (1 << 13) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 144 | #define OMAP24XX_EN_GPT10_SHIFT 12 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 145 | #define OMAP24XX_EN_GPT10_MASK (1 << 12) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 146 | #define OMAP24XX_EN_GPT9_SHIFT 11 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 147 | #define OMAP24XX_EN_GPT9_MASK (1 << 11) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 148 | #define OMAP24XX_EN_GPT8_SHIFT 10 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 149 | #define OMAP24XX_EN_GPT8_MASK (1 << 10) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 150 | #define OMAP24XX_EN_GPT7_SHIFT 9 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 151 | #define OMAP24XX_EN_GPT7_MASK (1 << 9) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 152 | #define OMAP24XX_EN_GPT6_SHIFT 8 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 153 | #define OMAP24XX_EN_GPT6_MASK (1 << 8) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 154 | #define OMAP24XX_EN_GPT5_SHIFT 7 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 155 | #define OMAP24XX_EN_GPT5_MASK (1 << 7) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 156 | #define OMAP24XX_EN_GPT4_SHIFT 6 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 157 | #define OMAP24XX_EN_GPT4_MASK (1 << 6) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 158 | #define OMAP24XX_EN_GPT3_SHIFT 5 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 159 | #define OMAP24XX_EN_GPT3_MASK (1 << 5) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 160 | #define OMAP24XX_EN_GPT2_SHIFT 4 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 161 | #define OMAP24XX_EN_GPT2_MASK (1 << 4) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 162 | #define OMAP2420_EN_VLYNQ_SHIFT 3 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 163 | #define OMAP2420_EN_VLYNQ_MASK (1 << 3) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 164 | |
| 165 | /* CM_FCLKEN2_CORE, CM_ICLKEN2_CORE, PM_WKEN2_CORE shared bits */ |
| 166 | #define OMAP2430_EN_GPIO5_SHIFT 10 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 167 | #define OMAP2430_EN_GPIO5_MASK (1 << 10) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 168 | #define OMAP2430_EN_MCSPI3_SHIFT 9 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 169 | #define OMAP2430_EN_MCSPI3_MASK (1 << 9) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 170 | #define OMAP2430_EN_MMCHS2_SHIFT 8 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 171 | #define OMAP2430_EN_MMCHS2_MASK (1 << 8) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 172 | #define OMAP2430_EN_MMCHS1_SHIFT 7 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 173 | #define OMAP2430_EN_MMCHS1_MASK (1 << 7) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 174 | #define OMAP24XX_EN_UART3_SHIFT 2 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 175 | #define OMAP24XX_EN_UART3_MASK (1 << 2) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 176 | #define OMAP24XX_EN_USB_SHIFT 0 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 177 | #define OMAP24XX_EN_USB_MASK (1 << 0) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 178 | |
| 179 | /* CM_ICLKEN2_CORE, PM_WKEN2_CORE shared bits */ |
| 180 | #define OMAP2430_EN_MDM_INTC_SHIFT 11 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 181 | #define OMAP2430_EN_MDM_INTC_MASK (1 << 11) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 182 | #define OMAP2430_EN_USBHS_SHIFT 6 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 183 | #define OMAP2430_EN_USBHS_MASK (1 << 6) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 184 | |
| 185 | /* CM_IDLEST1_CORE, PM_WKST1_CORE shared bits */ |
Paul Walmsley | da0747d | 2009-01-28 12:18:22 -0700 | [diff] [blame] | 186 | #define OMAP2420_ST_MMC_SHIFT 26 |
| 187 | #define OMAP2420_ST_MMC_MASK (1 << 26) |
| 188 | #define OMAP24XX_ST_UART2_SHIFT 22 |
| 189 | #define OMAP24XX_ST_UART2_MASK (1 << 22) |
| 190 | #define OMAP24XX_ST_UART1_SHIFT 21 |
| 191 | #define OMAP24XX_ST_UART1_MASK (1 << 21) |
| 192 | #define OMAP24XX_ST_MCSPI2_SHIFT 18 |
| 193 | #define OMAP24XX_ST_MCSPI2_MASK (1 << 18) |
| 194 | #define OMAP24XX_ST_MCSPI1_SHIFT 17 |
| 195 | #define OMAP24XX_ST_MCSPI1_MASK (1 << 17) |
| 196 | #define OMAP24XX_ST_GPT12_SHIFT 14 |
| 197 | #define OMAP24XX_ST_GPT12_MASK (1 << 14) |
| 198 | #define OMAP24XX_ST_GPT11_SHIFT 13 |
| 199 | #define OMAP24XX_ST_GPT11_MASK (1 << 13) |
| 200 | #define OMAP24XX_ST_GPT10_SHIFT 12 |
| 201 | #define OMAP24XX_ST_GPT10_MASK (1 << 12) |
| 202 | #define OMAP24XX_ST_GPT9_SHIFT 11 |
| 203 | #define OMAP24XX_ST_GPT9_MASK (1 << 11) |
| 204 | #define OMAP24XX_ST_GPT8_SHIFT 10 |
| 205 | #define OMAP24XX_ST_GPT8_MASK (1 << 10) |
| 206 | #define OMAP24XX_ST_GPT7_SHIFT 9 |
| 207 | #define OMAP24XX_ST_GPT7_MASK (1 << 9) |
| 208 | #define OMAP24XX_ST_GPT6_SHIFT 8 |
| 209 | #define OMAP24XX_ST_GPT6_MASK (1 << 8) |
| 210 | #define OMAP24XX_ST_GPT5_SHIFT 7 |
| 211 | #define OMAP24XX_ST_GPT5_MASK (1 << 7) |
| 212 | #define OMAP24XX_ST_GPT4_SHIFT 6 |
| 213 | #define OMAP24XX_ST_GPT4_MASK (1 << 6) |
| 214 | #define OMAP24XX_ST_GPT3_SHIFT 5 |
| 215 | #define OMAP24XX_ST_GPT3_MASK (1 << 5) |
| 216 | #define OMAP24XX_ST_GPT2_SHIFT 4 |
| 217 | #define OMAP24XX_ST_GPT2_MASK (1 << 4) |
| 218 | #define OMAP2420_ST_VLYNQ_SHIFT 3 |
| 219 | #define OMAP2420_ST_VLYNQ_MASK (1 << 3) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 220 | |
| 221 | /* CM_IDLEST2_CORE, PM_WKST2_CORE shared bits */ |
Paul Walmsley | da0747d | 2009-01-28 12:18:22 -0700 | [diff] [blame] | 222 | #define OMAP2430_ST_MDM_INTC_SHIFT 11 |
| 223 | #define OMAP2430_ST_MDM_INTC_MASK (1 << 11) |
| 224 | #define OMAP2430_ST_GPIO5_SHIFT 10 |
| 225 | #define OMAP2430_ST_GPIO5_MASK (1 << 10) |
| 226 | #define OMAP2430_ST_MCSPI3_SHIFT 9 |
| 227 | #define OMAP2430_ST_MCSPI3_MASK (1 << 9) |
| 228 | #define OMAP2430_ST_MMCHS2_SHIFT 8 |
| 229 | #define OMAP2430_ST_MMCHS2_MASK (1 << 8) |
| 230 | #define OMAP2430_ST_MMCHS1_SHIFT 7 |
| 231 | #define OMAP2430_ST_MMCHS1_MASK (1 << 7) |
| 232 | #define OMAP2430_ST_USBHS_SHIFT 6 |
| 233 | #define OMAP2430_ST_USBHS_MASK (1 << 6) |
| 234 | #define OMAP24XX_ST_UART3_SHIFT 2 |
| 235 | #define OMAP24XX_ST_UART3_MASK (1 << 2) |
| 236 | #define OMAP24XX_ST_USB_SHIFT 0 |
| 237 | #define OMAP24XX_ST_USB_MASK (1 << 0) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 238 | |
| 239 | /* CM_FCLKEN_WKUP, CM_ICLKEN_WKUP, PM_WKEN_WKUP shared bits */ |
| 240 | #define OMAP24XX_EN_GPIOS_SHIFT 2 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 241 | #define OMAP24XX_EN_GPIOS_MASK (1 << 2) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 242 | #define OMAP24XX_EN_GPT1_SHIFT 0 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 243 | #define OMAP24XX_EN_GPT1_MASK (1 << 0) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 244 | |
| 245 | /* PM_WKST_WKUP, CM_IDLEST_WKUP shared bits */ |
Paul Walmsley | da0747d | 2009-01-28 12:18:22 -0700 | [diff] [blame] | 246 | #define OMAP24XX_ST_GPIOS_SHIFT (1 << 2) |
| 247 | #define OMAP24XX_ST_GPIOS_MASK 2 |
| 248 | #define OMAP24XX_ST_GPT1_SHIFT (1 << 0) |
| 249 | #define OMAP24XX_ST_GPT1_MASK 0 |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 250 | |
| 251 | /* CM_IDLEST_MDM and PM_WKST_MDM shared bits */ |
Paul Walmsley | da0747d | 2009-01-28 12:18:22 -0700 | [diff] [blame] | 252 | #define OMAP2430_ST_MDM_SHIFT (1 << 0) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 253 | |
| 254 | |
| 255 | /* 3430 register bits shared between CM & PRM registers */ |
| 256 | |
| 257 | /* CM_REVISION, PRM_REVISION shared bits */ |
| 258 | #define OMAP3430_REV_SHIFT 0 |
| 259 | #define OMAP3430_REV_MASK (0xff << 0) |
| 260 | |
| 261 | /* CM_SYSCONFIG, PRM_SYSCONFIG shared bits */ |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 262 | #define OMAP3430_AUTOIDLE_MASK (1 << 0) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 263 | |
| 264 | /* CM_FCLKEN1_CORE, CM_ICLKEN1_CORE, PM_WKEN1_CORE shared bits */ |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 265 | #define OMAP3430_EN_MMC2_MASK (1 << 25) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 266 | #define OMAP3430_EN_MMC2_SHIFT 25 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 267 | #define OMAP3430_EN_MMC1_MASK (1 << 24) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 268 | #define OMAP3430_EN_MMC1_SHIFT 24 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 269 | #define OMAP3430_EN_MCSPI4_MASK (1 << 21) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 270 | #define OMAP3430_EN_MCSPI4_SHIFT 21 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 271 | #define OMAP3430_EN_MCSPI3_MASK (1 << 20) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 272 | #define OMAP3430_EN_MCSPI3_SHIFT 20 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 273 | #define OMAP3430_EN_MCSPI2_MASK (1 << 19) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 274 | #define OMAP3430_EN_MCSPI2_SHIFT 19 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 275 | #define OMAP3430_EN_MCSPI1_MASK (1 << 18) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 276 | #define OMAP3430_EN_MCSPI1_SHIFT 18 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 277 | #define OMAP3430_EN_I2C3_MASK (1 << 17) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 278 | #define OMAP3430_EN_I2C3_SHIFT 17 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 279 | #define OMAP3430_EN_I2C2_MASK (1 << 16) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 280 | #define OMAP3430_EN_I2C2_SHIFT 16 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 281 | #define OMAP3430_EN_I2C1_MASK (1 << 15) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 282 | #define OMAP3430_EN_I2C1_SHIFT 15 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 283 | #define OMAP3430_EN_UART2_MASK (1 << 14) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 284 | #define OMAP3430_EN_UART2_SHIFT 14 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 285 | #define OMAP3430_EN_UART1_MASK (1 << 13) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 286 | #define OMAP3430_EN_UART1_SHIFT 13 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 287 | #define OMAP3430_EN_GPT11_MASK (1 << 12) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 288 | #define OMAP3430_EN_GPT11_SHIFT 12 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 289 | #define OMAP3430_EN_GPT10_MASK (1 << 11) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 290 | #define OMAP3430_EN_GPT10_SHIFT 11 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 291 | #define OMAP3430_EN_MCBSP5_MASK (1 << 10) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 292 | #define OMAP3430_EN_MCBSP5_SHIFT 10 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 293 | #define OMAP3430_EN_MCBSP1_MASK (1 << 9) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 294 | #define OMAP3430_EN_MCBSP1_SHIFT 9 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 295 | #define OMAP3430_EN_FSHOSTUSB_MASK (1 << 5) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 296 | #define OMAP3430_EN_FSHOSTUSB_SHIFT 5 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 297 | #define OMAP3430_EN_D2D_MASK (1 << 3) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 298 | #define OMAP3430_EN_D2D_SHIFT 3 |
| 299 | |
| 300 | /* CM_ICLKEN1_CORE, PM_WKEN1_CORE shared bits */ |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 301 | #define OMAP3430_EN_HSOTGUSB_MASK (1 << 4) |
| 302 | #define OMAP3430_EN_HSOTGUSB_SHIFT 4 |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 303 | |
| 304 | /* PM_WKST1_CORE, CM_IDLEST1_CORE shared bits */ |
Paul Walmsley | da0747d | 2009-01-28 12:18:22 -0700 | [diff] [blame] | 305 | #define OMAP3430_ST_MMC2_SHIFT 25 |
| 306 | #define OMAP3430_ST_MMC2_MASK (1 << 25) |
| 307 | #define OMAP3430_ST_MMC1_SHIFT 24 |
| 308 | #define OMAP3430_ST_MMC1_MASK (1 << 24) |
| 309 | #define OMAP3430_ST_MCSPI4_SHIFT 21 |
| 310 | #define OMAP3430_ST_MCSPI4_MASK (1 << 21) |
| 311 | #define OMAP3430_ST_MCSPI3_SHIFT 20 |
| 312 | #define OMAP3430_ST_MCSPI3_MASK (1 << 20) |
| 313 | #define OMAP3430_ST_MCSPI2_SHIFT 19 |
| 314 | #define OMAP3430_ST_MCSPI2_MASK (1 << 19) |
| 315 | #define OMAP3430_ST_MCSPI1_SHIFT 18 |
| 316 | #define OMAP3430_ST_MCSPI1_MASK (1 << 18) |
| 317 | #define OMAP3430_ST_I2C3_SHIFT 17 |
| 318 | #define OMAP3430_ST_I2C3_MASK (1 << 17) |
| 319 | #define OMAP3430_ST_I2C2_SHIFT 16 |
| 320 | #define OMAP3430_ST_I2C2_MASK (1 << 16) |
| 321 | #define OMAP3430_ST_I2C1_SHIFT 15 |
| 322 | #define OMAP3430_ST_I2C1_MASK (1 << 15) |
| 323 | #define OMAP3430_ST_UART2_SHIFT 14 |
| 324 | #define OMAP3430_ST_UART2_MASK (1 << 14) |
| 325 | #define OMAP3430_ST_UART1_SHIFT 13 |
| 326 | #define OMAP3430_ST_UART1_MASK (1 << 13) |
| 327 | #define OMAP3430_ST_GPT11_SHIFT 12 |
| 328 | #define OMAP3430_ST_GPT11_MASK (1 << 12) |
| 329 | #define OMAP3430_ST_GPT10_SHIFT 11 |
| 330 | #define OMAP3430_ST_GPT10_MASK (1 << 11) |
| 331 | #define OMAP3430_ST_MCBSP5_SHIFT 10 |
| 332 | #define OMAP3430_ST_MCBSP5_MASK (1 << 10) |
| 333 | #define OMAP3430_ST_MCBSP1_SHIFT 9 |
| 334 | #define OMAP3430_ST_MCBSP1_MASK (1 << 9) |
| 335 | #define OMAP3430ES1_ST_FSHOSTUSB_SHIFT 5 |
| 336 | #define OMAP3430ES1_ST_FSHOSTUSB_MASK (1 << 5) |
| 337 | #define OMAP3430ES1_ST_HSOTGUSB_SHIFT 4 |
| 338 | #define OMAP3430ES1_ST_HSOTGUSB_MASK (1 << 4) |
| 339 | #define OMAP3430ES2_ST_HSOTGUSB_IDLE_SHIFT 5 |
| 340 | #define OMAP3430ES2_ST_HSOTGUSB_IDLE_MASK (1 << 5) |
| 341 | #define OMAP3430ES2_ST_HSOTGUSB_STDBY_SHIFT 4 |
| 342 | #define OMAP3430ES2_ST_HSOTGUSB_STDBY_MASK (1 << 4) |
| 343 | #define OMAP3430_ST_D2D_SHIFT 3 |
| 344 | #define OMAP3430_ST_D2D_MASK (1 << 3) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 345 | |
| 346 | /* CM_FCLKEN_WKUP, CM_ICLKEN_WKUP, PM_WKEN_WKUP shared bits */ |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 347 | #define OMAP3430_EN_GPIO1_MASK (1 << 3) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 348 | #define OMAP3430_EN_GPIO1_SHIFT 3 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 349 | #define OMAP3430_EN_GPT12_MASK (1 << 1) |
Kevin Hilman | 8bd2294 | 2009-05-28 10:56:16 -0700 | [diff] [blame] | 350 | #define OMAP3430_EN_GPT12_SHIFT 1 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 351 | #define OMAP3430_EN_GPT1_MASK (1 << 0) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 352 | #define OMAP3430_EN_GPT1_SHIFT 0 |
| 353 | |
| 354 | /* CM_FCLKEN_WKUP, PM_WKEN_WKUP shared bits */ |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 355 | #define OMAP3430_EN_SR2_MASK (1 << 7) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 356 | #define OMAP3430_EN_SR2_SHIFT 7 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 357 | #define OMAP3430_EN_SR1_MASK (1 << 6) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 358 | #define OMAP3430_EN_SR1_SHIFT 6 |
| 359 | |
| 360 | /* CM_ICLKEN_WKUP, PM_WKEN_WKUP shared bits */ |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 361 | #define OMAP3430_EN_GPT12_MASK (1 << 1) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 362 | #define OMAP3430_EN_GPT12_SHIFT 1 |
| 363 | |
| 364 | /* CM_IDLEST_WKUP, PM_WKST_WKUP shared bits */ |
Paul Walmsley | da0747d | 2009-01-28 12:18:22 -0700 | [diff] [blame] | 365 | #define OMAP3430_ST_SR2_SHIFT 7 |
| 366 | #define OMAP3430_ST_SR2_MASK (1 << 7) |
| 367 | #define OMAP3430_ST_SR1_SHIFT 6 |
| 368 | #define OMAP3430_ST_SR1_MASK (1 << 6) |
| 369 | #define OMAP3430_ST_GPIO1_SHIFT 3 |
| 370 | #define OMAP3430_ST_GPIO1_MASK (1 << 3) |
| 371 | #define OMAP3430_ST_GPT12_SHIFT 1 |
| 372 | #define OMAP3430_ST_GPT12_MASK (1 << 1) |
| 373 | #define OMAP3430_ST_GPT1_SHIFT 0 |
| 374 | #define OMAP3430_ST_GPT1_MASK (1 << 0) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 375 | |
| 376 | /* |
| 377 | * CM_SLEEPDEP_GFX, CM_SLEEPDEP_DSS, CM_SLEEPDEP_CAM, |
| 378 | * CM_SLEEPDEP_PER, PM_WKDEP_IVA2, PM_WKDEP_GFX, |
| 379 | * PM_WKDEP_DSS, PM_WKDEP_CAM, PM_WKDEP_PER, PM_WKDEP_NEON shared bits |
| 380 | */ |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 381 | #define OMAP3430_EN_MPU_MASK (1 << 1) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 382 | #define OMAP3430_EN_MPU_SHIFT 1 |
| 383 | |
| 384 | /* CM_FCLKEN_PER, CM_ICLKEN_PER, PM_WKEN_PER shared bits */ |
Kevin Hilman | 046465b | 2010-09-27 20:19:30 +0530 | [diff] [blame] | 385 | |
| 386 | #define OMAP3630_EN_UART4_MASK (1 << 18) |
| 387 | #define OMAP3630_EN_UART4_SHIFT 18 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 388 | #define OMAP3430_EN_GPIO6_MASK (1 << 17) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 389 | #define OMAP3430_EN_GPIO6_SHIFT 17 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 390 | #define OMAP3430_EN_GPIO5_MASK (1 << 16) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 391 | #define OMAP3430_EN_GPIO5_SHIFT 16 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 392 | #define OMAP3430_EN_GPIO4_MASK (1 << 15) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 393 | #define OMAP3430_EN_GPIO4_SHIFT 15 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 394 | #define OMAP3430_EN_GPIO3_MASK (1 << 14) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 395 | #define OMAP3430_EN_GPIO3_SHIFT 14 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 396 | #define OMAP3430_EN_GPIO2_MASK (1 << 13) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 397 | #define OMAP3430_EN_GPIO2_SHIFT 13 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 398 | #define OMAP3430_EN_UART3_MASK (1 << 11) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 399 | #define OMAP3430_EN_UART3_SHIFT 11 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 400 | #define OMAP3430_EN_GPT9_MASK (1 << 10) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 401 | #define OMAP3430_EN_GPT9_SHIFT 10 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 402 | #define OMAP3430_EN_GPT8_MASK (1 << 9) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 403 | #define OMAP3430_EN_GPT8_SHIFT 9 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 404 | #define OMAP3430_EN_GPT7_MASK (1 << 8) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 405 | #define OMAP3430_EN_GPT7_SHIFT 8 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 406 | #define OMAP3430_EN_GPT6_MASK (1 << 7) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 407 | #define OMAP3430_EN_GPT6_SHIFT 7 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 408 | #define OMAP3430_EN_GPT5_MASK (1 << 6) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 409 | #define OMAP3430_EN_GPT5_SHIFT 6 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 410 | #define OMAP3430_EN_GPT4_MASK (1 << 5) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 411 | #define OMAP3430_EN_GPT4_SHIFT 5 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 412 | #define OMAP3430_EN_GPT3_MASK (1 << 4) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 413 | #define OMAP3430_EN_GPT3_SHIFT 4 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 414 | #define OMAP3430_EN_GPT2_MASK (1 << 3) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 415 | #define OMAP3430_EN_GPT2_SHIFT 3 |
| 416 | |
| 417 | /* CM_FCLKEN_PER, CM_ICLKEN_PER, PM_WKEN_PER, PM_WKST_PER shared bits */ |
| 418 | /* XXX Possible TI documentation bug: should the PM_WKST_PER EN_* bits |
| 419 | * be ST_* bits instead? */ |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 420 | #define OMAP3430_EN_MCBSP4_MASK (1 << 2) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 421 | #define OMAP3430_EN_MCBSP4_SHIFT 2 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 422 | #define OMAP3430_EN_MCBSP3_MASK (1 << 1) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 423 | #define OMAP3430_EN_MCBSP3_SHIFT 1 |
Paul Walmsley | 2fd0f75 | 2010-05-18 18:40:23 -0600 | [diff] [blame] | 424 | #define OMAP3430_EN_MCBSP2_MASK (1 << 0) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 425 | #define OMAP3430_EN_MCBSP2_SHIFT 0 |
| 426 | |
| 427 | /* CM_IDLEST_PER, PM_WKST_PER shared bits */ |
Govindraj.R | e586368 | 2010-09-27 20:20:25 +0530 | [diff] [blame] | 428 | #define OMAP3630_ST_UART4_SHIFT 18 |
| 429 | #define OMAP3630_ST_UART4_MASK (1 << 18) |
Paul Walmsley | da0747d | 2009-01-28 12:18:22 -0700 | [diff] [blame] | 430 | #define OMAP3430_ST_GPIO6_SHIFT 17 |
| 431 | #define OMAP3430_ST_GPIO6_MASK (1 << 17) |
| 432 | #define OMAP3430_ST_GPIO5_SHIFT 16 |
| 433 | #define OMAP3430_ST_GPIO5_MASK (1 << 16) |
| 434 | #define OMAP3430_ST_GPIO4_SHIFT 15 |
| 435 | #define OMAP3430_ST_GPIO4_MASK (1 << 15) |
| 436 | #define OMAP3430_ST_GPIO3_SHIFT 14 |
| 437 | #define OMAP3430_ST_GPIO3_MASK (1 << 14) |
| 438 | #define OMAP3430_ST_GPIO2_SHIFT 13 |
| 439 | #define OMAP3430_ST_GPIO2_MASK (1 << 13) |
| 440 | #define OMAP3430_ST_UART3_SHIFT 11 |
| 441 | #define OMAP3430_ST_UART3_MASK (1 << 11) |
| 442 | #define OMAP3430_ST_GPT9_SHIFT 10 |
| 443 | #define OMAP3430_ST_GPT9_MASK (1 << 10) |
| 444 | #define OMAP3430_ST_GPT8_SHIFT 9 |
| 445 | #define OMAP3430_ST_GPT8_MASK (1 << 9) |
| 446 | #define OMAP3430_ST_GPT7_SHIFT 8 |
| 447 | #define OMAP3430_ST_GPT7_MASK (1 << 8) |
| 448 | #define OMAP3430_ST_GPT6_SHIFT 7 |
| 449 | #define OMAP3430_ST_GPT6_MASK (1 << 7) |
| 450 | #define OMAP3430_ST_GPT5_SHIFT 6 |
| 451 | #define OMAP3430_ST_GPT5_MASK (1 << 6) |
| 452 | #define OMAP3430_ST_GPT4_SHIFT 5 |
| 453 | #define OMAP3430_ST_GPT4_MASK (1 << 5) |
| 454 | #define OMAP3430_ST_GPT3_SHIFT 4 |
| 455 | #define OMAP3430_ST_GPT3_MASK (1 << 4) |
| 456 | #define OMAP3430_ST_GPT2_SHIFT 3 |
| 457 | #define OMAP3430_ST_GPT2_MASK (1 << 3) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 458 | |
| 459 | /* CM_SLEEPDEP_PER, PM_WKDEP_IVA2, PM_WKDEP_MPU, PM_WKDEP_PER shared bits */ |
Paul Walmsley | ecb24aa | 2008-08-19 11:08:43 +0300 | [diff] [blame] | 460 | #define OMAP3430_EN_CORE_SHIFT 0 |
| 461 | #define OMAP3430_EN_CORE_MASK (1 << 0) |
Paul Walmsley | 69d88a0 | 2008-03-18 10:02:50 +0200 | [diff] [blame] | 462 | |
| 463 | #endif |
| 464 | |