Go to the documentation of this file.
27 #define VERSATILE_BOOT_ROM_LO 0x30000000
28 #define VERSATILE_BOOT_ROM_HI 0x30000000
29 #define VERSATILE_BOOT_ROM_BASE VERSATILE_BOOT_ROM_HI
30 #define VERSATILE_BOOT_ROM_SIZE SZ_64M
32 #define VERSATILE_SSRAM_BASE
33 #define VERSATILE_SSRAM_SIZE SZ_2M
35 #define VERSATILE_FLASH_BASE 0x34000000
36 #define VERSATILE_FLASH_SIZE SZ_64M
41 #define VERSATILE_SDRAM_BASE 0x00000000
54 #define VERSATILE_SYS_ID_OFFSET 0x00
55 #define VERSATILE_SYS_SW_OFFSET 0x04
56 #define VERSATILE_SYS_LED_OFFSET 0x08
57 #define VERSATILE_SYS_OSC0_OFFSET 0x0C
59 #if defined(CONFIG_ARCH_VERSATILE_PB)
60 #define VERSATILE_SYS_OSC1_OFFSET 0x10
61 #define VERSATILE_SYS_OSC2_OFFSET 0x14
62 #define VERSATILE_SYS_OSC3_OFFSET 0x18
63 #define VERSATILE_SYS_OSC4_OFFSET 0x1C
64 #elif defined(CONFIG_MACH_VERSATILE_AB)
65 #define VERSATILE_SYS_OSC1_OFFSET 0x1C
68 #define VERSATILE_SYS_OSCCLCD_OFFSET 0x1c
70 #define VERSATILE_SYS_LOCK_OFFSET 0x20
71 #define VERSATILE_SYS_100HZ_OFFSET 0x24
72 #define VERSATILE_SYS_CFGDATA1_OFFSET 0x28
73 #define VERSATILE_SYS_CFGDATA2_OFFSET 0x2C
74 #define VERSATILE_SYS_FLAGS_OFFSET 0x30
75 #define VERSATILE_SYS_FLAGSSET_OFFSET 0x30
76 #define VERSATILE_SYS_FLAGSCLR_OFFSET 0x34
77 #define VERSATILE_SYS_NVFLAGS_OFFSET 0x38
78 #define VERSATILE_SYS_NVFLAGSSET_OFFSET 0x38
79 #define VERSATILE_SYS_NVFLAGSCLR_OFFSET 0x3C
80 #define VERSATILE_SYS_RESETCTL_OFFSET 0x40
81 #define VERSATILE_SYS_PCICTL_OFFSET 0x44
82 #define VERSATILE_SYS_MCI_OFFSET 0x48
83 #define VERSATILE_SYS_FLASH_OFFSET 0x4C
84 #define VERSATILE_SYS_CLCD_OFFSET 0x50
85 #define VERSATILE_SYS_CLCDSER_OFFSET 0x54
86 #define VERSATILE_SYS_BOOTCS_OFFSET 0x58
87 #define VERSATILE_SYS_24MHz_OFFSET 0x5C
88 #define VERSATILE_SYS_MISC_OFFSET 0x60
89 #define VERSATILE_SYS_TEST_OSC0_OFFSET 0x80
90 #define VERSATILE_SYS_TEST_OSC1_OFFSET 0x84
91 #define VERSATILE_SYS_TEST_OSC2_OFFSET 0x88
92 #define VERSATILE_SYS_TEST_OSC3_OFFSET 0x8C
93 #define VERSATILE_SYS_TEST_OSC4_OFFSET 0x90
95 #define VERSATILE_SYS_BASE 0x10000000
96 #define VERSATILE_SYS_ID (VERSATILE_SYS_BASE + VERSATILE_SYS_ID_OFFSET)
97 #define VERSATILE_SYS_SW (VERSATILE_SYS_BASE + VERSATILE_SYS_SW_OFFSET)
98 #define VERSATILE_SYS_LED (VERSATILE_SYS_BASE + VERSATILE_SYS_LED_OFFSET)
99 #define VERSATILE_SYS_OSC0 (VERSATILE_SYS_BASE + VERSATILE_SYS_OSC0_OFFSET)
100 #define VERSATILE_SYS_OSC1 (VERSATILE_SYS_BASE + VERSATILE_SYS_OSC1_OFFSET)
102 #if defined(CONFIG_ARCH_VERSATILE_PB)
103 #define VERSATILE_SYS_OSC2 (VERSATILE_SYS_BASE + VERSATILE_SYS_OSC2_OFFSET)
104 #define VERSATILE_SYS_OSC3 (VERSATILE_SYS_BASE + VERSATILE_SYS_OSC3_OFFSET)
105 #define VERSATILE_SYS_OSC4 (VERSATILE_SYS_BASE + VERSATILE_SYS_OSC4_OFFSET)
108 #define VERSATILE_SYS_LOCK (VERSATILE_SYS_BASE + VERSATILE_SYS_LOCK_OFFSET)
109 #define VERSATILE_SYS_100HZ (VERSATILE_SYS_BASE + VERSATILE_SYS_100HZ_OFFSET)
110 #define VERSATILE_SYS_CFGDATA1 (VERSATILE_SYS_BASE + VERSATILE_SYS_CFGDATA1_OFFSET)
111 #define VERSATILE_SYS_CFGDATA2 (VERSATILE_SYS_BASE + VERSATILE_SYS_CFGDATA2_OFFSET)
112 #define VERSATILE_SYS_FLAGS (VERSATILE_SYS_BASE + VERSATILE_SYS_FLAGS_OFFSET)
113 #define VERSATILE_SYS_FLAGSSET (VERSATILE_SYS_BASE + VERSATILE_SYS_FLAGSSET_OFFSET)
114 #define VERSATILE_SYS_FLAGSCLR (VERSATILE_SYS_BASE + VERSATILE_SYS_FLAGSCLR_OFFSET)
115 #define VERSATILE_SYS_NVFLAGS (VERSATILE_SYS_BASE + VERSATILE_SYS_NVFLAGS_OFFSET)
116 #define VERSATILE_SYS_NVFLAGSSET (VERSATILE_SYS_BASE + VERSATILE_SYS_NVFLAGSSET_OFFSET)
117 #define VERSATILE_SYS_NVFLAGSCLR (VERSATILE_SYS_BASE + VERSATILE_SYS_NVFLAGSCLR_OFFSET)
118 #define VERSATILE_SYS_RESETCTL (VERSATILE_SYS_BASE + VERSATILE_SYS_RESETCTL_OFFSET)
119 #define VERSATILE_SYS_PCICTL (VERSATILE_SYS_BASE + VERSATILE_SYS_PCICTL_OFFSET)
120 #define VERSATILE_SYS_MCI (VERSATILE_SYS_BASE + VERSATILE_SYS_MCI_OFFSET)
121 #define VERSATILE_SYS_FLASH (VERSATILE_SYS_BASE + VERSATILE_SYS_FLASH_OFFSET)
122 #define VERSATILE_SYS_CLCD (VERSATILE_SYS_BASE + VERSATILE_SYS_CLCD_OFFSET)
123 #define VERSATILE_SYS_CLCDSER (VERSATILE_SYS_BASE + VERSATILE_SYS_CLCDSER_OFFSET)
124 #define VERSATILE_SYS_BOOTCS (VERSATILE_SYS_BASE + VERSATILE_SYS_BOOTCS_OFFSET)
125 #define VERSATILE_SYS_24MHz (VERSATILE_SYS_BASE + VERSATILE_SYS_24MHz_OFFSET)
126 #define VERSATILE_SYS_MISC (VERSATILE_SYS_BASE + VERSATILE_SYS_MISC_OFFSET)
127 #define VERSATILE_SYS_TEST_OSC0 (VERSATILE_SYS_BASE + VERSATILE_SYS_TEST_OSC0_OFFSET)
128 #define VERSATILE_SYS_TEST_OSC1 (VERSATILE_SYS_BASE + VERSATILE_SYS_TEST_OSC1_OFFSET)
129 #define VERSATILE_SYS_TEST_OSC2 (VERSATILE_SYS_BASE + VERSATILE_SYS_TEST_OSC2_OFFSET)
130 #define VERSATILE_SYS_TEST_OSC3 (VERSATILE_SYS_BASE + VERSATILE_SYS_TEST_OSC3_OFFSET)
131 #define VERSATILE_SYS_TEST_OSC4 (VERSATILE_SYS_BASE + VERSATILE_SYS_TEST_OSC4_OFFSET)
136 #define VERSATILE_SYS_CTRL_RESET_CONFIGCLR 0x01
137 #define VERSATILE_SYS_CTRL_RESET_CONFIGINIT 0x02
138 #define VERSATILE_SYS_CTRL_RESET_DLLRESET 0x03
139 #define VERSATILE_SYS_CTRL_RESET_PLLRESET 0x04
140 #define VERSATILE_SYS_CTRL_RESET_POR 0x05
141 #define VERSATILE_SYS_CTRL_RESET_DoC 0x06
143 #define VERSATILE_SYS_CTRL_LED (1 << 0)
166 #define VERSATILE_SYS_LOCK_LOCKED (1 << 16)
167 #define VERSATILE_SYS_LOCKVAL_MASK 0xFFFF
172 #define VERSATILE_FLASHPROG_FLVPPEN (1 << 0)
178 #define VERSATILE_INTREG_WPROT 0x00
179 #define VERSATILE_INTREG_RI0 0x01
180 #define VERSATILE_INTREG_CARDIN 0x08
182 #define VERSATILE_INTREG_RI1 0x02
183 #define VERSATILE_INTREG_CARDINSERT 0x03
188 #define VERSATILE_PCI_CORE_BASE 0x10001000
189 #define VERSATILE_I2C_BASE 0x10002000
190 #define VERSATILE_SIC_BASE 0x10003000
191 #define VERSATILE_AACI_BASE 0x10004000
192 #define VERSATILE_MMCI0_BASE 0x10005000
193 #define VERSATILE_KMI0_BASE 0x10006000
194 #define VERSATILE_KMI1_BASE 0x10007000
195 #define VERSATILE_CHAR_LCD_BASE 0x10008000
196 #define VERSATILE_UART3_BASE 0x10009000
197 #define VERSATILE_SCI1_BASE 0x1000A000
198 #define VERSATILE_MMCI1_BASE 0x1000B000
200 #define VERSATILE_ETH_BASE 0x10010000
201 #define VERSATILE_USB_BASE 0x10020000
203 #define VERSATILE_SMC_BASE 0x10100000
204 #define VERSATILE_MPMC_BASE 0x10110000
205 #define VERSATILE_CLCD_BASE 0x10120000
206 #define VERSATILE_DMAC_BASE 0x10130000
207 #define VERSATILE_VIC_BASE 0x10140000
208 #define VERSATILE_PERIPH_BASE 0x10150000
210 #define VERSATILE_AHBM_BASE 0x101D0000
211 #define VERSATILE_SCTL_BASE 0x101E0000
212 #define VERSATILE_WATCHDOG_BASE 0x101E1000
213 #define VERSATILE_TIMER0_1_BASE 0x101E2000
214 #define VERSATILE_TIMER2_3_BASE 0x101E3000
215 #define VERSATILE_GPIO0_BASE 0x101E4000
216 #define VERSATILE_GPIO1_BASE 0x101E5000
217 #define VERSATILE_GPIO2_BASE 0x101E6000
218 #define VERSATILE_GPIO3_BASE 0x101E7000
219 #define VERSATILE_RTC_BASE 0x101E8000
221 #define VERSATILE_SCI_BASE 0x101F0000
222 #define VERSATILE_UART0_BASE 0x101F1000
223 #define VERSATILE_UART1_BASE 0x101F2000
224 #define VERSATILE_UART2_BASE 0x101F3000
225 #define VERSATILE_SSP_BASE 0x101F4000
227 #define VERSATILE_SSMC_BASE 0x20000000
228 #define VERSATILE_IB2_BASE 0x24000000
229 #define VERSATILE_MBX_BASE 0x40000000
232 #define VERSATILE_PCI_BASE 0x41000000
233 #define VERSATILE_PCI_CFG_BASE 0x42000000
234 #define VERSATILE_PCI_MEM_BASE0 0x44000000
235 #define VERSATILE_PCI_MEM_BASE1 0x50000000
236 #define VERSATILE_PCI_MEM_BASE2 0x60000000
238 #define VERSATILE_PCI_BASE_SIZE 0x01000000
239 #define VERSATILE_PCI_CFG_BASE_SIZE 0x02000000
240 #define VERSATILE_PCI_MEM_BASE0_SIZE 0x0c000000
241 #define VERSATILE_PCI_MEM_BASE1_SIZE 0x10000000
242 #define VERSATILE_PCI_MEM_BASE2_SIZE 0x10000000
244 #define VERSATILE_SDRAM67_BASE 0x70000000
245 #define VERSATILE_LT_BASE 0x80000000
250 #define VERSATILE_DOC_BASE 0x2C000000
251 #define VERSATILE_DOC_SIZE (16 << 20)
252 #define VERSATILE_DOC_PAGE_SIZE 512
253 #define VERSATILE_DOC_TOTAL_PAGES (DOC_SIZE / PAGE_SIZE)
255 #define ERASE_UNIT_PAGES 32
256 #define START_PAGE 0x80
261 #define VERSATILE_SYS_LED0 (1 << 0)
262 #define VERSATILE_SYS_LED1 (1 << 1)
263 #define VERSATILE_SYS_LED2 (1 << 2)
264 #define VERSATILE_SYS_LED3 (1 << 3)
265 #define VERSATILE_SYS_LED4 (1 << 4)
266 #define VERSATILE_SYS_LED5 (1 << 5)
267 #define VERSATILE_SYS_LED6 (1 << 6)
268 #define VERSATILE_SYS_LED7 (1 << 7)
270 #define ALL_LEDS 0xFF
272 #define LED_BANK VERSATILE_SYS_LED
277 #define VERSATILE_IDFIELD_OFFSET 0x0
278 #define VERSATILE_FLASHPROG_OFFSET 0x4
279 #define VERSATILE_INTREG_OFFSET 0x8
280 #define VERSATILE_DECODE_OFFSET 0xC
300 #define SIC_IRQ_STATUS 0
301 #define SIC_IRQ_RAW_STATUS 0x04
302 #define SIC_IRQ_ENABLE 0x08
303 #define SIC_IRQ_ENABLE_SET 0x08
304 #define SIC_IRQ_ENABLE_CLEAR 0x0C
305 #define SIC_INT_SOFT_SET 0x10
306 #define SIC_INT_SOFT_CLEAR 0x14
307 #define SIC_INT_PIC_ENABLE 0x20
308 #define SIC_INT_PIC_ENABLES 0x20
309 #define SIC_INT_PIC_ENABLEC 0x24
316 #define INT_WDOGINT 0
317 #define INT_SOFTINT 1
320 #define INT_TIMERINT0_1 4
321 #define INT_TIMERINT2_3 5
322 #define INT_GPIOINT0 6
323 #define INT_GPIOINT1 7
324 #define INT_GPIOINT2 8
325 #define INT_GPIOINT3 9
326 #define INT_RTCINT 10
327 #define INT_SSPINT 11
328 #define INT_UARTINT0 12
329 #define INT_UARTINT1 13
330 #define INT_UARTINT2 14
331 #define INT_SCIINT 15
332 #define INT_CLCDINT 16
333 #define INT_DMAINT 17
334 #define INT_PWRFAILINT 18
335 #define INT_MBXINT 19
336 #define INT_GNDINT 20
338 #define INT_VICSOURCE21 21
339 #define INT_VICSOURCE22 22
340 #define INT_VICSOURCE23 23
341 #define INT_VICSOURCE24 24
342 #define INT_VICSOURCE25 25
343 #define INT_VICSOURCE26 26
344 #define INT_VICSOURCE27 27
345 #define INT_VICSOURCE28 28
346 #define INT_VICSOURCE29 29
347 #define INT_VICSOURCE30 30
348 #define INT_VICSOURCE31 31
350 #define VERSATILE_SC_VALID_INT 0x003FFFFF
360 #define SIC_INT_MMCI0B 1
361 #define SIC_INT_MMCI1B 2
362 #define SIC_INT_KMI0 3
363 #define SIC_INT_KMI1 4
364 #define SIC_INT_SCI3 5
365 #define SIC_INT_UART3 6
366 #define SIC_INT_CLCD 7
367 #define SIC_INT_TOUCH 8
368 #define SIC_INT_KEYPAD 9
370 #define SIC_INT_DoC 21
371 #define SIC_INT_MMCI0A 22
372 #define SIC_INT_MMCI1A 23
373 #define SIC_INT_AACI 24
374 #define SIC_INT_ETH 25
375 #define SIC_INT_USB 26
376 #define SIC_INT_PCI0 27
377 #define SIC_INT_PCI1 28
378 #define SIC_INT_PCI2 29
379 #define SIC_INT_PCI3 30
385 #define VERSATILE_REFCLK 0
386 #define VERSATILE_TIMCLK 1
388 #define VERSATILE_TIMER1_EnSel 15
389 #define VERSATILE_TIMER2_EnSel 17
390 #define VERSATILE_TIMER3_EnSel 19
391 #define VERSATILE_TIMER4_EnSel 21
394 #define VERSATILE_CSR_BASE 0x10000000
395 #define VERSATILE_CSR_SIZE 0x10000000
397 #ifdef CONFIG_MACH_VERSATILE_AB
401 #define VERSATILE_IB2_CAMERA_BANK VERSATILE_IB2_BASE
402 #define VERSATILE_IB2_KBD_DATAREG (VERSATILE_IB2_BASE + 0x01000000)
405 #define VERSATILE_IB2_INT_BASE (VERSATILE_IB2_BASE + 0x02000000)
406 #define VERSATILE_IB2_IER (VERSATILE_IB2_INT_BASE + 0)
407 #define VERSATILE_IB2_ISR (VERSATILE_IB2_INT_BASE + 4)
409 #define VERSATILE_IB2_CTL_BASE (VERSATILE_IB2_BASE + 0x03000000)
410 #define VERSATILE_IB2_CTRL (VERSATILE_IB2_CTL_BASE + 0)
411 #define VERSATILE_IB2_STAT (VERSATILE_IB2_CTL_BASE + 4)