blob: 16ac6b6d496fd13dd4e57ab315f6e530221fa3eb [file] [log] [blame]
Sascha Hauer8c25c362009-06-04 11:32:12 +02001#ifndef __MACH_MX25_H__
2#define __MACH_MX25_H__
3
Uwe Kleine-Königc8e5db02009-11-12 21:51:55 +01004#define MX25_AIPS1_BASE_ADDR 0x43f00000
5#define MX25_AIPS1_BASE_ADDR_VIRT 0xfc000000
Sascha Hauer8c25c362009-06-04 11:32:12 +02006#define MX25_AIPS1_SIZE SZ_1M
Uwe Kleine-Königc8e5db02009-11-12 21:51:55 +01007#define MX25_AIPS2_BASE_ADDR 0x53f00000
8#define MX25_AIPS2_BASE_ADDR_VIRT 0xfc200000
Sascha Hauer8c25c362009-06-04 11:32:12 +02009#define MX25_AIPS2_SIZE SZ_1M
10#define MX25_AVIC_BASE_ADDR 0x68000000
Uwe Kleine-Königc8e5db02009-11-12 21:51:55 +010011#define MX25_AVIC_BASE_ADDR_VIRT 0xfc400000
Sascha Hauer8c25c362009-06-04 11:32:12 +020012#define MX25_AVIC_SIZE SZ_1M
13
Uwe Kleine-Königa8ff0452010-06-16 14:55:07 +020014#define MX25_I2C1_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0x80000)
15#define MX25_I2C3_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0x84000)
16#define MX25_I2C2_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0x98000)
Uwe Kleine-König63ddc5b2010-06-21 17:34:58 +020017#define MX25_CSPI1_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0xa4000)
Sascha Hauer8c25c362009-06-04 11:32:12 +020018#define MX25_IOMUXC_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0xac000)
19
20#define MX25_CRM_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0x80000)
21#define MX25_GPT1_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0x90000)
22#define MX25_WDOG_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0xdc000)
23
24#define MX25_GPIO1_BASE_ADDR_VIRT (MX25_AIPS2_BASE_ADDR_VIRT + 0xcc000)
25#define MX25_GPIO2_BASE_ADDR_VIRT (MX25_AIPS2_BASE_ADDR_VIRT + 0xd0000)
26#define MX25_GPIO3_BASE_ADDR_VIRT (MX25_AIPS2_BASE_ADDR_VIRT + 0xa4000)
27#define MX25_GPIO4_BASE_ADDR_VIRT (MX25_AIPS2_BASE_ADDR_VIRT + 0x9c000)
28
Uwe Kleine-Königdf9375f2009-12-16 19:07:04 +010029#define MX25_IO_ADDRESS(x) ( \
30 IMX_IO_ADDRESS(x, MX25_AIPS1) ?: \
31 IMX_IO_ADDRESS(x, MX25_AIPS2) ?: \
32 IMX_IO_ADDRESS(x, MX25_AVIC))
Sascha Hauer8c25c362009-06-04 11:32:12 +020033
Uwe Kleine-König66ac2f22010-01-25 17:55:16 +010034#define MX25_UART1_BASE_ADDR 0x43f90000
35#define MX25_UART2_BASE_ADDR 0x43f94000
Sascha Hauer8c25c362009-06-04 11:32:12 +020036
Uwe Kleine-König63ddc5b2010-06-21 17:34:58 +020037#define MX25_CSPI3_BASE_ADDR 0x50004000
38#define MX25_CSPI2_BASE_ADDR 0x50010000
Baruch Siacha7595442009-12-21 13:44:31 +020039#define MX25_FEC_BASE_ADDR 0x50038000
Baruch Siach27f59022010-01-14 11:24:14 +020040#define MX25_NFC_BASE_ADDR 0xbb000000
Baruch Siachdcbabbc2010-01-27 15:00:48 +020041#define MX25_DRYICE_BASE_ADDR 0x53ffc000
Baruch Siach04a03e52010-02-17 12:33:24 +020042#define MX25_LCDC_BASE_ADDR 0x53fbc000
Baruch Siacha7595442009-12-21 13:44:31 +020043
Uwe Kleine-König63ddc5b2010-06-21 17:34:58 +020044#define MX25_INT_CSPI3 0
Uwe Kleine-Königa8ff0452010-06-16 14:55:07 +020045#define MX25_INT_I2C1 3
46#define MX25_INT_I2C2 4
47#define MX25_INT_I2C3 10
Uwe Kleine-König63ddc5b2010-06-21 17:34:58 +020048#define MX25_INT_CSPI2 13
49#define MX25_INT_CSPI1 14
Uwe Kleine-Königa8ff0452010-06-16 14:55:07 +020050#define MX25_INT_DRYICE 25
Uwe Kleine-Königa8ff0452010-06-16 14:55:07 +020051#define MX25_INT_NANDFC 33
52#define MX25_INT_LCDC 39
Uwe Kleine-König63ddc5b2010-06-21 17:34:58 +020053#define MX25_INT_FEC 57
Baruch Siacha7595442009-12-21 13:44:31 +020054
Uwe Kleine-König66ac2f22010-01-25 17:55:16 +010055#if defined(IMX_NEEDS_DEPRECATED_SYMBOLS)
56#define UART1_BASE_ADDR MX25_UART1_BASE_ADDR
57#define UART2_BASE_ADDR MX25_UART2_BASE_ADDR
58#endif
59
Uwe Kleine-König3cdd5442010-01-08 16:02:30 +010060#endif /* ifndef __MACH_MX25_H__ */