3 * arch/arm/mach-u300/include/mach/u300-regs.h
6 * Copyright (C) 2006-2009 ST-Ericsson AB
7 * License terms: GNU General Public License (GPL) version 2
8 * Basic register address definitions in physical memory and
9 * some block definitions for core devices like the timer.
10 * Author: Linus Walleij <linus.walleij@stericsson.com>
13 #ifndef __MACH_U300_REGS_H
14 #define __MACH_U300_REGS_H
17 * These are the large blocks of memory allocated for I/O.
18 * the defines are used for setting up the I/O memory mapping.
22 #define U300_NAND_CS0_PHYS_BASE 0x80000000
25 #define U300_NAND_IF_PHYS_BASE 0x9f800000
28 #define U300_AHB_PER_PHYS_BASE 0xa0000000
29 #define U300_AHB_PER_VIRT_BASE 0xff010000
31 /* FAST Peripherals */
32 #define U300_FAST_PER_PHYS_BASE 0xc0000000
33 #define U300_FAST_PER_VIRT_BASE 0xff020000
35 /* SLOW Peripherals */
36 #define U300_SLOW_PER_PHYS_BASE 0xc0010000
37 #define U300_SLOW_PER_VIRT_BASE 0xff000000
40 #define U300_BOOTROM_PHYS_BASE 0xffff0000
41 #define U300_BOOTROM_VIRT_BASE 0xffff0000
43 /* SEMI config base */
44 #ifdef CONFIG_MACH_U300_BS335
45 #define U300_SEMI_CONFIG_BASE 0x2FFE0000
47 #define U300_SEMI_CONFIG_BASE 0x30000000
51 * All the following peripherals are specified at their PHYSICAL address,
52 * so if you need to access them (in the kernel), you MUST use the macros
53 * defined in <asm/io.h> to map to the IO_ADDRESS_AHB() IO_ADDRESS_FAST()
61 /* AHB Peripherals Bridge Controller */
62 #define U300_AHB_BRIDGE_BASE (U300_AHB_PER_PHYS_BASE+0x0000)
64 /* Vectored Interrupt Controller 0, servicing 32 interrupts */
65 #define U300_INTCON0_BASE (U300_AHB_PER_PHYS_BASE+0x1000)
66 #define U300_INTCON0_VBASE (U300_AHB_PER_VIRT_BASE+0x1000)
68 /* Vectored Interrupt Controller 1, servicing 32 interrupts */
69 #define U300_INTCON1_BASE (U300_AHB_PER_PHYS_BASE+0x2000)
70 #define U300_INTCON1_VBASE (U300_AHB_PER_VIRT_BASE+0x2000)
72 /* Memory Stick Pro (MSPRO) controller */
73 #define U300_MSPRO_BASE (U300_AHB_PER_PHYS_BASE+0x3000)
75 /* EMIF Configuration Area */
76 #define U300_EMIF_CFG_BASE (U300_AHB_PER_PHYS_BASE+0x4000)
83 /* FAST bridge control */
84 #define U300_FAST_BRIDGE_BASE (U300_FAST_PER_PHYS_BASE+0x0000)
86 /* MMC/SD controller */
87 #define U300_MMCSD_BASE (U300_FAST_PER_PHYS_BASE+0x1000)
89 /* PCM I2S0 controller */
90 #define U300_PCM_I2S0_BASE (U300_FAST_PER_PHYS_BASE+0x2000)
92 /* PCM I2S1 controller */
93 #define U300_PCM_I2S1_BASE (U300_FAST_PER_PHYS_BASE+0x3000)
96 #define U300_I2C0_BASE (U300_FAST_PER_PHYS_BASE+0x4000)
99 #define U300_I2C1_BASE (U300_FAST_PER_PHYS_BASE+0x5000)
102 #define U300_SPI_BASE (U300_FAST_PER_PHYS_BASE+0x6000)
104 #ifdef CONFIG_MACH_U300_BS335
105 /* Fast UART1 on U335 only */
106 #define U300_UART1_BASE (U300_SLOW_PER_PHYS_BASE+0x7000)
113 /* SLOW bridge control */
114 #define U300_SLOW_BRIDGE_BASE (U300_SLOW_PER_PHYS_BASE)
117 #define U300_SYSCON_BASE (U300_SLOW_PER_PHYS_BASE+0x1000)
118 #define U300_SYSCON_VBASE (U300_SLOW_PER_VIRT_BASE+0x1000)
121 #define U300_WDOG_BASE (U300_SLOW_PER_PHYS_BASE+0x2000)
124 #define U300_UART0_BASE (U300_SLOW_PER_PHYS_BASE+0x3000)
126 /* APP side special timer */
127 #define U300_TIMER_APP_BASE (U300_SLOW_PER_PHYS_BASE+0x4000)
128 #define U300_TIMER_APP_VBASE (U300_SLOW_PER_VIRT_BASE+0x4000)
131 #define U300_KEYPAD_BASE (U300_SLOW_PER_PHYS_BASE+0x5000)
134 #define U300_GPIO_BASE (U300_SLOW_PER_PHYS_BASE+0x6000)
137 #define U300_RTC_BASE (U300_SLOW_PER_PHYS_BASE+0x7000)
140 #define U300_BUSTR_BASE (U300_SLOW_PER_PHYS_BASE+0x8000)
142 /* Event handler (hardware queue) */
143 #define U300_EVHIST_BASE (U300_SLOW_PER_PHYS_BASE+0x9000)
146 #define U300_TIMER_BASE (U300_SLOW_PER_PHYS_BASE+0xa000)
149 #define U300_PPM_BASE (U300_SLOW_PER_PHYS_BASE+0xb000)
156 /* ISP (image signal processor) is only available in U335 */
157 #ifdef CONFIG_MACH_U300_BS335
158 #define U300_ISP_BASE (0xA0008000)
161 /* DMA Controller base */
162 #define U300_DMAC_BASE (0xC0020000)
165 #define U300_MSL_BASE (0xc0022000)
168 #define U300_APEX_BASE (0xc0030000)
170 /* Video Encoder Base */
171 #ifdef CONFIG_MACH_U300_BS335
172 #define U300_VIDEOENC_BASE (0xc0080000)
174 #define U300_VIDEOENC_BASE (0xc0040000)
178 #define U300_XGAM_BASE (0xd0000000)
181 * Virtual accessor macros for static devices