diff options
author | David S. Miller <davem@davemloft.net> | 2009-09-24 18:13:11 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-24 18:13:11 -0400 |
commit | 8b3f6af86378d0a10ca2f1ded1da124aef13b62c (patch) | |
tree | de6ca90295730343c495be8d98be8efa322140ef /arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h | |
parent | 139d6065c83071d5f66cd013a274a43699f8e2c1 (diff) | |
parent | 94e0fb086fc5663c38bbc0fe86d698be8314f82f (diff) |
Merge branch 'master' of /home/davem/src/GIT/linux-2.6/
Conflicts:
drivers/staging/Kconfig
drivers/staging/Makefile
drivers/staging/cpc-usb/TODO
drivers/staging/cpc-usb/cpc-usb_drv.c
drivers/staging/cpc-usb/cpc.h
drivers/staging/cpc-usb/cpc_int.h
drivers/staging/cpc-usb/cpcusb.h
Diffstat (limited to 'arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h')
-rw-r--r-- | arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h | 109 |
1 files changed, 75 insertions, 34 deletions
diff --git a/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h b/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h index 967c079180db..0fbf87b16338 100644 --- a/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h +++ b/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h | |||
@@ -52,40 +52,44 @@ | |||
52 | #define EP93XX_AHB_VIRT_BASE 0xfef00000 | 52 | #define EP93XX_AHB_VIRT_BASE 0xfef00000 |
53 | #define EP93XX_AHB_SIZE 0x00100000 | 53 | #define EP93XX_AHB_SIZE 0x00100000 |
54 | 54 | ||
55 | #define EP93XX_AHB_IOMEM(x) IOMEM(EP93XX_AHB_VIRT_BASE + (x)) | ||
56 | |||
55 | #define EP93XX_APB_PHYS_BASE 0x80800000 | 57 | #define EP93XX_APB_PHYS_BASE 0x80800000 |
56 | #define EP93XX_APB_VIRT_BASE 0xfed00000 | 58 | #define EP93XX_APB_VIRT_BASE 0xfed00000 |
57 | #define EP93XX_APB_SIZE 0x00200000 | 59 | #define EP93XX_APB_SIZE 0x00200000 |
58 | 60 | ||
61 | #define EP93XX_APB_IOMEM(x) IOMEM(EP93XX_APB_VIRT_BASE + (x)) | ||
62 | |||
59 | 63 | ||
60 | /* AHB peripherals */ | 64 | /* AHB peripherals */ |
61 | #define EP93XX_DMA_BASE ((void __iomem *) \ | 65 | #define EP93XX_DMA_BASE EP93XX_AHB_IOMEM(0x00000000) |
62 | (EP93XX_AHB_VIRT_BASE + 0x00000000)) | ||
63 | 66 | ||
64 | #define EP93XX_ETHERNET_BASE (EP93XX_AHB_VIRT_BASE + 0x00010000) | ||
65 | #define EP93XX_ETHERNET_PHYS_BASE (EP93XX_AHB_PHYS_BASE + 0x00010000) | 67 | #define EP93XX_ETHERNET_PHYS_BASE (EP93XX_AHB_PHYS_BASE + 0x00010000) |
68 | #define EP93XX_ETHERNET_BASE EP93XX_AHB_IOMEM(0x00010000) | ||
66 | 69 | ||
67 | #define EP93XX_USB_BASE (EP93XX_AHB_VIRT_BASE + 0x00020000) | ||
68 | #define EP93XX_USB_PHYS_BASE (EP93XX_AHB_PHYS_BASE + 0x00020000) | 70 | #define EP93XX_USB_PHYS_BASE (EP93XX_AHB_PHYS_BASE + 0x00020000) |
71 | #define EP93XX_USB_BASE EP93XX_AHB_IOMEM(0x00020000) | ||
69 | 72 | ||
70 | #define EP93XX_RASTER_BASE (EP93XX_AHB_VIRT_BASE + 0x00030000) | 73 | #define EP93XX_RASTER_PHYS_BASE (EP93XX_AHB_PHYS_BASE + 0x00030000) |
74 | #define EP93XX_RASTER_BASE EP93XX_AHB_IOMEM(0x00030000) | ||
71 | 75 | ||
72 | #define EP93XX_GRAPHICS_ACCEL_BASE (EP93XX_AHB_VIRT_BASE + 0x00040000) | 76 | #define EP93XX_GRAPHICS_ACCEL_BASE EP93XX_AHB_IOMEM(0x00040000) |
73 | 77 | ||
74 | #define EP93XX_SDRAM_CONTROLLER_BASE (EP93XX_AHB_VIRT_BASE + 0x00060000) | 78 | #define EP93XX_SDRAM_CONTROLLER_BASE EP93XX_AHB_IOMEM(0x00060000) |
75 | 79 | ||
76 | #define EP93XX_PCMCIA_CONTROLLER_BASE (EP93XX_AHB_VIRT_BASE + 0x00080000) | 80 | #define EP93XX_PCMCIA_CONTROLLER_BASE EP93XX_AHB_IOMEM(0x00080000) |
77 | 81 | ||
78 | #define EP93XX_BOOT_ROM_BASE (EP93XX_AHB_VIRT_BASE + 0x00090000) | 82 | #define EP93XX_BOOT_ROM_BASE EP93XX_AHB_IOMEM(0x00090000) |
79 | 83 | ||
80 | #define EP93XX_IDE_BASE (EP93XX_AHB_VIRT_BASE + 0x000a0000) | 84 | #define EP93XX_IDE_BASE EP93XX_AHB_IOMEM(0x000a0000) |
81 | 85 | ||
82 | #define EP93XX_VIC1_BASE (EP93XX_AHB_VIRT_BASE + 0x000b0000) | 86 | #define EP93XX_VIC1_BASE EP93XX_AHB_IOMEM(0x000b0000) |
83 | 87 | ||
84 | #define EP93XX_VIC2_BASE (EP93XX_AHB_VIRT_BASE + 0x000c0000) | 88 | #define EP93XX_VIC2_BASE EP93XX_AHB_IOMEM(0x000c0000) |
85 | 89 | ||
86 | 90 | ||
87 | /* APB peripherals */ | 91 | /* APB peripherals */ |
88 | #define EP93XX_TIMER_BASE (EP93XX_APB_VIRT_BASE + 0x00010000) | 92 | #define EP93XX_TIMER_BASE EP93XX_APB_IOMEM(0x00010000) |
89 | #define EP93XX_TIMER_REG(x) (EP93XX_TIMER_BASE + (x)) | 93 | #define EP93XX_TIMER_REG(x) (EP93XX_TIMER_BASE + (x)) |
90 | #define EP93XX_TIMER1_LOAD EP93XX_TIMER_REG(0x00) | 94 | #define EP93XX_TIMER1_LOAD EP93XX_TIMER_REG(0x00) |
91 | #define EP93XX_TIMER1_VALUE EP93XX_TIMER_REG(0x04) | 95 | #define EP93XX_TIMER1_VALUE EP93XX_TIMER_REG(0x04) |
@@ -102,11 +106,11 @@ | |||
102 | #define EP93XX_TIMER3_CONTROL EP93XX_TIMER_REG(0x88) | 106 | #define EP93XX_TIMER3_CONTROL EP93XX_TIMER_REG(0x88) |
103 | #define EP93XX_TIMER3_CLEAR EP93XX_TIMER_REG(0x8c) | 107 | #define EP93XX_TIMER3_CLEAR EP93XX_TIMER_REG(0x8c) |
104 | 108 | ||
105 | #define EP93XX_I2S_BASE (EP93XX_APB_VIRT_BASE + 0x00020000) | 109 | #define EP93XX_I2S_BASE EP93XX_APB_IOMEM(0x00020000) |
106 | 110 | ||
107 | #define EP93XX_SECURITY_BASE (EP93XX_APB_VIRT_BASE + 0x00030000) | 111 | #define EP93XX_SECURITY_BASE EP93XX_APB_IOMEM(0x00030000) |
108 | 112 | ||
109 | #define EP93XX_GPIO_BASE (EP93XX_APB_VIRT_BASE + 0x00040000) | 113 | #define EP93XX_GPIO_BASE EP93XX_APB_IOMEM(0x00040000) |
110 | #define EP93XX_GPIO_REG(x) (EP93XX_GPIO_BASE + (x)) | 114 | #define EP93XX_GPIO_REG(x) (EP93XX_GPIO_BASE + (x)) |
111 | #define EP93XX_GPIO_F_INT_TYPE1 EP93XX_GPIO_REG(0x4c) | 115 | #define EP93XX_GPIO_F_INT_TYPE1 EP93XX_GPIO_REG(0x4c) |
112 | #define EP93XX_GPIO_F_INT_TYPE2 EP93XX_GPIO_REG(0x50) | 116 | #define EP93XX_GPIO_F_INT_TYPE2 EP93XX_GPIO_REG(0x50) |
@@ -124,32 +128,33 @@ | |||
124 | #define EP93XX_GPIO_B_INT_ENABLE EP93XX_GPIO_REG(0xb8) | 128 | #define EP93XX_GPIO_B_INT_ENABLE EP93XX_GPIO_REG(0xb8) |
125 | #define EP93XX_GPIO_B_INT_STATUS EP93XX_GPIO_REG(0xbc) | 129 | #define EP93XX_GPIO_B_INT_STATUS EP93XX_GPIO_REG(0xbc) |
126 | 130 | ||
127 | #define EP93XX_AAC_BASE (EP93XX_APB_VIRT_BASE + 0x00080000) | 131 | #define EP93XX_AAC_BASE EP93XX_APB_IOMEM(0x00080000) |
128 | 132 | ||
129 | #define EP93XX_SPI_BASE (EP93XX_APB_VIRT_BASE + 0x000a0000) | 133 | #define EP93XX_SPI_BASE EP93XX_APB_IOMEM(0x000a0000) |
130 | 134 | ||
131 | #define EP93XX_IRDA_BASE (EP93XX_APB_VIRT_BASE + 0x000b0000) | 135 | #define EP93XX_IRDA_BASE EP93XX_APB_IOMEM(0x000b0000) |
132 | 136 | ||
133 | #define EP93XX_UART1_BASE (EP93XX_APB_VIRT_BASE + 0x000c0000) | ||
134 | #define EP93XX_UART1_PHYS_BASE (EP93XX_APB_PHYS_BASE + 0x000c0000) | 137 | #define EP93XX_UART1_PHYS_BASE (EP93XX_APB_PHYS_BASE + 0x000c0000) |
138 | #define EP93XX_UART1_BASE EP93XX_APB_IOMEM(0x000c0000) | ||
135 | 139 | ||
136 | #define EP93XX_UART2_BASE (EP93XX_APB_VIRT_BASE + 0x000d0000) | ||
137 | #define EP93XX_UART2_PHYS_BASE (EP93XX_APB_PHYS_BASE + 0x000d0000) | 140 | #define EP93XX_UART2_PHYS_BASE (EP93XX_APB_PHYS_BASE + 0x000d0000) |
141 | #define EP93XX_UART2_BASE EP93XX_APB_IOMEM(0x000d0000) | ||
138 | 142 | ||
139 | #define EP93XX_UART3_BASE (EP93XX_APB_VIRT_BASE + 0x000e0000) | ||
140 | #define EP93XX_UART3_PHYS_BASE (EP93XX_APB_PHYS_BASE + 0x000e0000) | 143 | #define EP93XX_UART3_PHYS_BASE (EP93XX_APB_PHYS_BASE + 0x000e0000) |
144 | #define EP93XX_UART3_BASE EP93XX_APB_IOMEM(0x000e0000) | ||
141 | 145 | ||
142 | #define EP93XX_KEY_MATRIX_BASE (EP93XX_APB_VIRT_BASE + 0x000f0000) | 146 | #define EP93XX_KEY_MATRIX_BASE EP93XX_APB_IOMEM(0x000f0000) |
143 | 147 | ||
144 | #define EP93XX_ADC_BASE (EP93XX_APB_VIRT_BASE + 0x00100000) | 148 | #define EP93XX_ADC_BASE EP93XX_APB_IOMEM(0x00100000) |
145 | #define EP93XX_TOUCHSCREEN_BASE (EP93XX_APB_VIRT_BASE + 0x00100000) | 149 | #define EP93XX_TOUCHSCREEN_BASE EP93XX_APB_IOMEM(0x00100000) |
146 | 150 | ||
147 | #define EP93XX_PWM_BASE (EP93XX_APB_VIRT_BASE + 0x00110000) | 151 | #define EP93XX_PWM_PHYS_BASE (EP93XX_APB_PHYS_BASE + 0x00110000) |
152 | #define EP93XX_PWM_BASE EP93XX_APB_IOMEM(0x00110000) | ||
148 | 153 | ||
149 | #define EP93XX_RTC_BASE (EP93XX_APB_VIRT_BASE + 0x00120000) | ||
150 | #define EP93XX_RTC_PHYS_BASE (EP93XX_APB_PHYS_BASE + 0x00120000) | 154 | #define EP93XX_RTC_PHYS_BASE (EP93XX_APB_PHYS_BASE + 0x00120000) |
155 | #define EP93XX_RTC_BASE EP93XX_APB_IOMEM(0x00120000) | ||
151 | 156 | ||
152 | #define EP93XX_SYSCON_BASE (EP93XX_APB_VIRT_BASE + 0x00130000) | 157 | #define EP93XX_SYSCON_BASE EP93XX_APB_IOMEM(0x00130000) |
153 | #define EP93XX_SYSCON_REG(x) (EP93XX_SYSCON_BASE + (x)) | 158 | #define EP93XX_SYSCON_REG(x) (EP93XX_SYSCON_BASE + (x)) |
154 | #define EP93XX_SYSCON_POWER_STATE EP93XX_SYSCON_REG(0x00) | 159 | #define EP93XX_SYSCON_POWER_STATE EP93XX_SYSCON_REG(0x00) |
155 | #define EP93XX_SYSCON_PWRCNT EP93XX_SYSCON_REG(0x04) | 160 | #define EP93XX_SYSCON_PWRCNT EP93XX_SYSCON_REG(0x04) |
@@ -172,14 +177,50 @@ | |||
172 | #define EP93XX_SYSCON_STANDBY EP93XX_SYSCON_REG(0x0c) | 177 | #define EP93XX_SYSCON_STANDBY EP93XX_SYSCON_REG(0x0c) |
173 | #define EP93XX_SYSCON_CLOCK_SET1 EP93XX_SYSCON_REG(0x20) | 178 | #define EP93XX_SYSCON_CLOCK_SET1 EP93XX_SYSCON_REG(0x20) |
174 | #define EP93XX_SYSCON_CLOCK_SET2 EP93XX_SYSCON_REG(0x24) | 179 | #define EP93XX_SYSCON_CLOCK_SET2 EP93XX_SYSCON_REG(0x24) |
175 | #define EP93XX_SYSCON_DEVICE_CONFIG EP93XX_SYSCON_REG(0x80) | 180 | #define EP93XX_SYSCON_DEVCFG EP93XX_SYSCON_REG(0x80) |
176 | #define EP93XX_SYSCON_DEVICE_CONFIG_U3EN (1<<24) | 181 | #define EP93XX_SYSCON_DEVCFG_SWRST (1<<31) |
177 | #define EP93XX_SYSCON_DEVICE_CONFIG_CRUNCH_ENABLE (1<<23) | 182 | #define EP93XX_SYSCON_DEVCFG_D1ONG (1<<30) |
178 | #define EP93XX_SYSCON_DEVICE_CONFIG_U2EN (1<<20) | 183 | #define EP93XX_SYSCON_DEVCFG_D0ONG (1<<29) |
179 | #define EP93XX_SYSCON_DEVICE_CONFIG_U1EN (1<<18) | 184 | #define EP93XX_SYSCON_DEVCFG_IONU2 (1<<28) |
185 | #define EP93XX_SYSCON_DEVCFG_GONK (1<<27) | ||
186 | #define EP93XX_SYSCON_DEVCFG_TONG (1<<26) | ||
187 | #define EP93XX_SYSCON_DEVCFG_MONG (1<<25) | ||
188 | #define EP93XX_SYSCON_DEVCFG_U3EN (1<<24) | ||
189 | #define EP93XX_SYSCON_DEVCFG_CPENA (1<<23) | ||
190 | #define EP93XX_SYSCON_DEVCFG_A2ONG (1<<22) | ||
191 | #define EP93XX_SYSCON_DEVCFG_A1ONG (1<<21) | ||
192 | #define EP93XX_SYSCON_DEVCFG_U2EN (1<<20) | ||
193 | #define EP93XX_SYSCON_DEVCFG_EXVC (1<<19) | ||
194 | #define EP93XX_SYSCON_DEVCFG_U1EN (1<<18) | ||
195 | #define EP93XX_SYSCON_DEVCFG_TIN (1<<17) | ||
196 | #define EP93XX_SYSCON_DEVCFG_HC3IN (1<<15) | ||
197 | #define EP93XX_SYSCON_DEVCFG_HC3EN (1<<14) | ||
198 | #define EP93XX_SYSCON_DEVCFG_HC1IN (1<<13) | ||
199 | #define EP93XX_SYSCON_DEVCFG_HC1EN (1<<12) | ||
200 | #define EP93XX_SYSCON_DEVCFG_HONIDE (1<<11) | ||
201 | #define EP93XX_SYSCON_DEVCFG_GONIDE (1<<10) | ||
202 | #define EP93XX_SYSCON_DEVCFG_PONG (1<<9) | ||
203 | #define EP93XX_SYSCON_DEVCFG_EONIDE (1<<8) | ||
204 | #define EP93XX_SYSCON_DEVCFG_I2SONSSP (1<<7) | ||
205 | #define EP93XX_SYSCON_DEVCFG_I2SONAC97 (1<<6) | ||
206 | #define EP93XX_SYSCON_DEVCFG_RASONP3 (1<<4) | ||
207 | #define EP93XX_SYSCON_DEVCFG_RAS (1<<3) | ||
208 | #define EP93XX_SYSCON_DEVCFG_ADCPD (1<<2) | ||
209 | #define EP93XX_SYSCON_DEVCFG_KEYS (1<<1) | ||
210 | #define EP93XX_SYSCON_DEVCFG_SHENA (1<<0) | ||
211 | #define EP93XX_SYSCON_VIDCLKDIV EP93XX_SYSCON_REG(0x84) | ||
212 | #define EP93XX_SYSCON_CLKDIV_ENABLE (1<<15) | ||
213 | #define EP93XX_SYSCON_CLKDIV_ESEL (1<<14) | ||
214 | #define EP93XX_SYSCON_CLKDIV_PSEL (1<<13) | ||
215 | #define EP93XX_SYSCON_CLKDIV_PDIV_SHIFT 8 | ||
216 | #define EP93XX_SYSCON_KEYTCHCLKDIV EP93XX_SYSCON_REG(0x90) | ||
217 | #define EP93XX_SYSCON_KEYTCHCLKDIV_TSEN (1<<31) | ||
218 | #define EP93XX_SYSCON_KEYTCHCLKDIV_ADIV (1<<16) | ||
219 | #define EP93XX_SYSCON_KEYTCHCLKDIV_KEN (1<<15) | ||
220 | #define EP93XX_SYSCON_KEYTCHCLKDIV_KDIV (1<<0) | ||
180 | #define EP93XX_SYSCON_SWLOCK EP93XX_SYSCON_REG(0xc0) | 221 | #define EP93XX_SYSCON_SWLOCK EP93XX_SYSCON_REG(0xc0) |
181 | 222 | ||
182 | #define EP93XX_WATCHDOG_BASE (EP93XX_APB_VIRT_BASE + 0x00140000) | 223 | #define EP93XX_WATCHDOG_BASE EP93XX_APB_IOMEM(0x00140000) |
183 | 224 | ||
184 | 225 | ||
185 | #endif | 226 | #endif |