Go to the documentation of this file.
36 #ifndef __ASM_ARCH_OMAP_HARDWARE_H
37 #define __ASM_ARCH_OMAP_HARDWARE_H
39 #include <asm/sizes.h>
41 #include <asm/types.h>
61 static inline u32 omap_cs0m_phys(
void)
67 static inline u32 omap_cs3_phys(
void)
90 #define OMAP_MPU_TIMER1_BASE (0xfffec500)
91 #define OMAP_MPU_TIMER2_BASE (0xfffec600)
92 #define OMAP_MPU_TIMER3_BASE (0xfffec700)
93 #define MPU_TIMER_FREE (1 << 6)
94 #define MPU_TIMER_CLOCK_ENABLE (1 << 5)
95 #define MPU_TIMER_AR (1 << 1)
96 #define MPU_TIMER_ST (1 << 0)
103 #define CLKGEN_REG_BASE (0xfffece00)
104 #define ARM_CKCTL (CLKGEN_REG_BASE + 0x0)
105 #define ARM_IDLECT1 (CLKGEN_REG_BASE + 0x4)
106 #define ARM_IDLECT2 (CLKGEN_REG_BASE + 0x8)
107 #define ARM_EWUPCT (CLKGEN_REG_BASE + 0xC)
108 #define ARM_RSTCT1 (CLKGEN_REG_BASE + 0x10)
109 #define ARM_RSTCT2 (CLKGEN_REG_BASE + 0x14)
110 #define ARM_SYSST (CLKGEN_REG_BASE + 0x18)
111 #define ARM_IDLECT3 (CLKGEN_REG_BASE + 0x24)
117 #define SETARM_IDLE_SHIFT
120 #define DPLL_CTL (0xfffecf00)
123 #define DSP_CONFIG_REG_BASE IOMEM(0xe1008000)
124 #define DSP_CKCTL (DSP_CONFIG_REG_BASE + 0x0)
125 #define DSP_IDLECT1 (DSP_CONFIG_REG_BASE + 0x4)
126 #define DSP_IDLECT2 (DSP_CONFIG_REG_BASE + 0x8)
127 #define DSP_RSTCT2 (DSP_CONFIG_REG_BASE + 0x14)
134 #define ULPD_REG_BASE (0xfffe0800)
135 #define ULPD_IT_STATUS (ULPD_REG_BASE + 0x14)
136 #define ULPD_SETUP_ANALOG_CELL_3 (ULPD_REG_BASE + 0x24)
137 #define ULPD_CLOCK_CTRL (ULPD_REG_BASE + 0x30)
138 # define DIS_USB_PVCI_CLK (1 << 5)
139 # define USB_MCLK_EN (1 << 4)
140 #define ULPD_SOFT_REQ (ULPD_REG_BASE + 0x34)
141 # define SOFT_UDC_REQ (1 << 4)
142 # define SOFT_USB_CLK_REQ (1 << 3)
143 # define SOFT_DPLL_REQ (1 << 0)
144 #define ULPD_DPLL_CTRL (ULPD_REG_BASE + 0x3c)
145 #define ULPD_STATUS_REQ (ULPD_REG_BASE + 0x40)
146 #define ULPD_APLL_CTRL (ULPD_REG_BASE + 0x4c)
147 #define ULPD_POWER_CTRL (ULPD_REG_BASE + 0x50)
148 #define ULPD_SOFT_DISABLE_REQ_REG (ULPD_REG_BASE + 0x68)
149 # define DIS_MMC2_DPLL_REQ (1 << 11)
150 # define DIS_MMC1_DPLL_REQ (1 << 10)
151 # define DIS_UART3_DPLL_REQ (1 << 9)
152 # define DIS_UART2_DPLL_REQ (1 << 8)
153 # define DIS_UART1_DPLL_REQ (1 << 7)
154 # define DIS_USB_HOST_DPLL_REQ (1 << 6)
155 #define ULPD_SDW_CLK_DIV_CTRL_SEL (ULPD_REG_BASE + 0x74)
156 #define ULPD_CAM_CLK_CTRL (ULPD_REG_BASE + 0x7c)
165 #define OMAP_MPU_WATCHDOG_BASE (0xfffec800)
166 #define OMAP_WDT_TIMER (OMAP_MPU_WATCHDOG_BASE + 0x0)
167 #define OMAP_WDT_LOAD_TIM (OMAP_MPU_WATCHDOG_BASE + 0x4)
168 #define OMAP_WDT_READ_TIM (OMAP_MPU_WATCHDOG_BASE + 0x4)
169 #define OMAP_WDT_TIMER_MODE (OMAP_MPU_WATCHDOG_BASE + 0x8)
176 #ifdef CONFIG_ARCH_OMAP1
183 #define OMAP_IH1_BASE 0xfffecb00
184 #define OMAP_IH2_BASE 0xfffe0000
186 #define OMAP_IH1_ITR (OMAP_IH1_BASE + 0x00)
187 #define OMAP_IH1_MIR (OMAP_IH1_BASE + 0x04)
188 #define OMAP_IH1_SIR_IRQ (OMAP_IH1_BASE + 0x10)
189 #define OMAP_IH1_SIR_FIQ (OMAP_IH1_BASE + 0x14)
190 #define OMAP_IH1_CONTROL (OMAP_IH1_BASE + 0x18)
191 #define OMAP_IH1_ILR0 (OMAP_IH1_BASE + 0x1c)
192 #define OMAP_IH1_ISR (OMAP_IH1_BASE + 0x9c)
194 #define OMAP_IH2_ITR (OMAP_IH2_BASE + 0x00)
195 #define OMAP_IH2_MIR (OMAP_IH2_BASE + 0x04)
196 #define OMAP_IH2_SIR_IRQ (OMAP_IH2_BASE + 0x10)
197 #define OMAP_IH2_SIR_FIQ (OMAP_IH2_BASE + 0x14)
198 #define OMAP_IH2_CONTROL (OMAP_IH2_BASE + 0x18)
199 #define OMAP_IH2_ILR0 (OMAP_IH2_BASE + 0x1c)
200 #define OMAP_IH2_ISR (OMAP_IH2_BASE + 0x9c)
202 #define IRQ_ITR_REG_OFFSET 0x00
203 #define IRQ_MIR_REG_OFFSET 0x04
204 #define IRQ_SIR_IRQ_REG_OFFSET 0x10
205 #define IRQ_SIR_FIQ_REG_OFFSET 0x14
206 #define IRQ_CONTROL_REG_OFFSET 0x18
207 #define IRQ_ISR_REG_OFFSET 0x9c
208 #define IRQ_ILR0_REG_OFFSET 0x1c
209 #define IRQ_GMR_REG_OFFSET 0xa0
218 #define MOD_CONF_CTRL_0 0xfffe1080
219 #define MOD_CONF_CTRL_1 0xfffe1110
226 #define FUNC_MUX_CTRL_0 0xfffe1000
227 #define FUNC_MUX_CTRL_1 0xfffe1004
228 #define FUNC_MUX_CTRL_2 0xfffe1008
229 #define COMP_MODE_CTRL_0 0xfffe100c
230 #define FUNC_MUX_CTRL_3 0xfffe1010
231 #define FUNC_MUX_CTRL_4 0xfffe1014
232 #define FUNC_MUX_CTRL_5 0xfffe1018
233 #define FUNC_MUX_CTRL_6 0xfffe101C
234 #define FUNC_MUX_CTRL_7 0xfffe1020
235 #define FUNC_MUX_CTRL_8 0xfffe1024
236 #define FUNC_MUX_CTRL_9 0xfffe1028
237 #define FUNC_MUX_CTRL_A 0xfffe102C
238 #define FUNC_MUX_CTRL_B 0xfffe1030
239 #define FUNC_MUX_CTRL_C 0xfffe1034
240 #define FUNC_MUX_CTRL_D 0xfffe1038
241 #define PULL_DWN_CTRL_0 0xfffe1040
242 #define PULL_DWN_CTRL_1 0xfffe1044
243 #define PULL_DWN_CTRL_2 0xfffe1048
244 #define PULL_DWN_CTRL_3 0xfffe104c
245 #define PULL_DWN_CTRL_4 0xfffe10ac
248 #define FUNC_MUX_CTRL_E 0xfffe1090
249 #define FUNC_MUX_CTRL_F 0xfffe1094
250 #define FUNC_MUX_CTRL_10 0xfffe1098
251 #define FUNC_MUX_CTRL_11 0xfffe109c
252 #define FUNC_MUX_CTRL_12 0xfffe10a0
253 #define PU_PD_SEL_0 0xfffe10b4
254 #define PU_PD_SEL_1 0xfffe10b8
255 #define PU_PD_SEL_2 0xfffe10bc
256 #define PU_PD_SEL_3 0xfffe10c0
257 #define PU_PD_SEL_4 0xfffe10c4
260 #define OMAP_TIMER32K_BASE 0xFFFBC400
267 #define TIPB_PUBLIC_CNTL_BASE 0xfffed300
268 #define MPU_PUBLIC_TIPB_CNTL (TIPB_PUBLIC_CNTL_BASE + 0x8)
269 #define TIPB_PRIVATE_CNTL_BASE 0xfffeca00
270 #define MPU_PRIVATE_TIPB_CNTL (TIPB_PRIVATE_CNTL_BASE + 0x8)
277 #define MPUI_BASE (0xfffec900)
278 #define MPUI_CTRL (MPUI_BASE + 0x0)
279 #define MPUI_DEBUG_ADDR (MPUI_BASE + 0x4)
280 #define MPUI_DEBUG_DATA (MPUI_BASE + 0x8)
281 #define MPUI_DEBUG_FLAG (MPUI_BASE + 0xc)
282 #define MPUI_STATUS_REG (MPUI_BASE + 0x10)
283 #define MPUI_DSP_STATUS (MPUI_BASE + 0x14)
284 #define MPUI_DSP_BOOT_CONFIG (MPUI_BASE + 0x18)
285 #define MPUI_DSP_API_CONFIG (MPUI_BASE + 0x1c)
292 #define OMAP_LPG1_BASE 0xfffbd000
293 #define OMAP_LPG2_BASE 0xfffbd800
294 #define OMAP_LPG1_LCR (OMAP_LPG1_BASE + 0x00)
295 #define OMAP_LPG1_PMR (OMAP_LPG1_BASE + 0x04)
296 #define OMAP_LPG2_LCR (OMAP_LPG2_BASE + 0x00)
297 #define OMAP_LPG2_PMR (OMAP_LPG2_BASE + 0x04)
304 #define OMAP_PWL_BASE 0xfffb5800
305 #define OMAP_PWL_ENABLE (OMAP_PWL_BASE + 0x00)
306 #define OMAP_PWL_CLK_ENABLE (OMAP_PWL_BASE + 0x04)