blob: ccebf5ba12f06f7927e44c24c12937e8b084f660 [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
Sascha Hauer8c25c362009-06-04 11:32:12 +02005#define MX25_AIPS1_SIZE SZ_1M
Uwe Kleine-Königc8e5db02009-11-12 21:51:55 +01006#define MX25_AIPS2_BASE_ADDR 0x53f00000
Sascha Hauer8c25c362009-06-04 11:32:12 +02007#define MX25_AIPS2_SIZE SZ_1M
8#define MX25_AVIC_BASE_ADDR 0x68000000
Sascha Hauer8c25c362009-06-04 11:32:12 +02009#define MX25_AVIC_SIZE SZ_1M
10
Uwe Kleine-Königa8ff0452010-06-16 14:55:07 +020011#define MX25_I2C1_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0x80000)
12#define MX25_I2C3_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0x84000)
Marc Kleine-Buddec3f6a342010-07-22 11:41:56 +020013#define MX25_CAN1_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0x88000)
14#define MX25_CAN2_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0x8c000)
Uwe Kleine-Königa8ff0452010-06-16 14:55:07 +020015#define MX25_I2C2_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0x98000)
Uwe Kleine-König63ddc5b2010-06-21 17:34:58 +020016#define MX25_CSPI1_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0xa4000)
Sascha Hauer8c25c362009-06-04 11:32:12 +020017#define MX25_IOMUXC_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0xac000)
18
19#define MX25_CRM_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0x80000)
20#define MX25_GPT1_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0x90000)
Uwe Kleine-Königcf3a6ab2010-10-25 15:54:58 +020021#define MX25_GPIO4_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0x9c000)
Uwe Kleine-König5f3d1092010-11-10 22:15:45 +010022#define MX25_PWM2_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0xa0000)
Uwe Kleine-Königcf3a6ab2010-10-25 15:54:58 +020023#define MX25_GPIO3_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0xa4000)
Uwe Kleine-König5f3d1092010-11-10 22:15:45 +010024#define MX25_PWM3_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0xa8000)
25#define MX25_PWM4_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0xc8000)
Uwe Kleine-Königcf3a6ab2010-10-25 15:54:58 +020026#define MX25_GPIO1_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0xcc000)
27#define MX25_GPIO2_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0xd0000)
Sascha Hauer8c25c362009-06-04 11:32:12 +020028#define MX25_WDOG_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0xdc000)
Uwe Kleine-König5f3d1092010-11-10 22:15:45 +010029#define MX25_PWM1_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0xe0000)
Sascha Hauer8c25c362009-06-04 11:32:12 +020030
Uwe Kleine-König66ac2f22010-01-25 17:55:16 +010031#define MX25_UART1_BASE_ADDR 0x43f90000
32#define MX25_UART2_BASE_ADDR 0x43f94000
Eric Bénard8402ed32010-06-08 11:03:00 +020033#define MX25_AUDMUX_BASE_ADDR 0x43fb0000
Uwe Kleine-König7cc3c842010-06-24 15:20:44 +020034#define MX25_UART3_BASE_ADDR 0x5000c000
35#define MX25_UART4_BASE_ADDR 0x50008000
36#define MX25_UART5_BASE_ADDR 0x5002c000
Sascha Hauer8c25c362009-06-04 11:32:12 +020037
Uwe Kleine-König63ddc5b2010-06-21 17:34:58 +020038#define MX25_CSPI3_BASE_ADDR 0x50004000
39#define MX25_CSPI2_BASE_ADDR 0x50010000
Baruch Siacha7595442009-12-21 13:44:31 +020040#define MX25_FEC_BASE_ADDR 0x50038000
Eric Bénard8402ed32010-06-08 11:03:00 +020041#define MX25_SSI2_BASE_ADDR 0x50014000
42#define MX25_SSI1_BASE_ADDR 0x50034000
Baruch Siach27f59022010-01-14 11:24:14 +020043#define MX25_NFC_BASE_ADDR 0xbb000000
Jason Liu6132ae82011-08-29 21:13:44 +080044#define MX25_IIM_BASE_ADDR 0x53ff0000
Baruch Siachdcbabbc2010-01-27 15:00:48 +020045#define MX25_DRYICE_BASE_ADDR 0x53ffc000
Eric Bénardf5e40c22010-10-02 17:15:28 +020046#define MX25_ESDHC1_BASE_ADDR 0x53fb4000
47#define MX25_ESDHC2_BASE_ADDR 0x53fb8000
Baruch Siach04a03e52010-02-17 12:33:24 +020048#define MX25_LCDC_BASE_ADDR 0x53fbc000
Baruch Siach49535a92010-05-26 15:12:10 +030049#define MX25_KPP_BASE_ADDR 0x43fa8000
Eric Bénardec4aac22010-10-12 14:08:42 +020050#define MX25_SDMA_BASE_ADDR 0x53fd4000
Uwe Kleine-König2c20b9f2010-11-10 21:27:55 +010051#define MX25_USB_BASE_ADDR 0x53ff4000
52#define MX25_USB_OTG_BASE_ADDR (MX25_USB_BASE_ADDR + 0x0000)
Uwe Kleine-König4c6c32b2010-11-29 08:58:14 +010053/*
54 * The reference manual (IMX25RM, Rev. 1, 06/2009) specifies an offset of 0x200
55 * for the host controller. Early documentation drafts specified 0x400 and
56 * Freescale internal sources confirm only the latter value to work.
57 */
58#define MX25_USB_HS_BASE_ADDR (MX25_USB_BASE_ADDR + 0x0400)
Baruch Siachf7478472010-06-21 08:16:00 +030059#define MX25_CSI_BASE_ADDR 0x53ff8000
Baruch Siacha7595442009-12-21 13:44:31 +020060
Uwe Kleine-Königa9963142010-10-25 15:44:25 +020061#define MX25_IO_P2V(x) IMX_IO_P2V(x)
62#define MX25_IO_ADDRESS(x) IOMEM(MX25_IO_P2V(x))
63
Uwe Kleine-König63ddc5b2010-06-21 17:34:58 +020064#define MX25_INT_CSPI3 0
Uwe Kleine-Königa8ff0452010-06-16 14:55:07 +020065#define MX25_INT_I2C1 3
66#define MX25_INT_I2C2 4
Uwe Kleine-König7cc3c842010-06-24 15:20:44 +020067#define MX25_INT_UART4 5
Eric Bénardc0745122010-10-12 13:12:32 +020068#define MX25_INT_ESDHC2 8
69#define MX25_INT_ESDHC1 9
Uwe Kleine-Königa8ff0452010-06-16 14:55:07 +020070#define MX25_INT_I2C3 10
Uwe Kleine-König2dcf78c2010-06-30 12:16:24 +020071#define MX25_INT_SSI2 11
72#define MX25_INT_SSI1 12
Uwe Kleine-König63ddc5b2010-06-21 17:34:58 +020073#define MX25_INT_CSPI2 13
74#define MX25_INT_CSPI1 14
Uwe Kleine-Königd485c7e2010-11-11 10:52:33 +010075#define MX25_INT_GPIO3 16
Uwe Kleine-König2dcf78c2010-06-30 12:16:24 +020076#define MX25_INT_CSI 17
Uwe Kleine-König7cc3c842010-06-24 15:20:44 +020077#define MX25_INT_UART3 18
Uwe Kleine-Königd485c7e2010-11-11 10:52:33 +010078#define MX25_INT_GPIO4 23
Uwe Kleine-König2dcf78c2010-06-30 12:16:24 +020079#define MX25_INT_KPP 24
Uwe Kleine-Königa8ff0452010-06-16 14:55:07 +020080#define MX25_INT_DRYICE 25
Uwe Kleine-König5f3d1092010-11-10 22:15:45 +010081#define MX25_INT_PWM1 26
Uwe Kleine-König7cc3c842010-06-24 15:20:44 +020082#define MX25_INT_UART2 32
Uwe Kleine-König00b57bf2010-08-23 11:25:52 +020083#define MX25_INT_NFC 33
Eric Bénardec4aac22010-10-12 14:08:42 +020084#define MX25_INT_SDMA 34
Uwe Kleine-König2c20b9f2010-11-10 21:27:55 +010085#define MX25_INT_USB_HS 35
Uwe Kleine-König5f3d1092010-11-10 22:15:45 +010086#define MX25_INT_PWM2 36
Uwe Kleine-König2c20b9f2010-11-10 21:27:55 +010087#define MX25_INT_USB_OTG 37
Uwe Kleine-Königa8ff0452010-06-16 14:55:07 +020088#define MX25_INT_LCDC 39
Uwe Kleine-König7cc3c842010-06-24 15:20:44 +020089#define MX25_INT_UART5 40
Uwe Kleine-König5f3d1092010-11-10 22:15:45 +010090#define MX25_INT_PWM3 41
91#define MX25_INT_PWM4 42
Marc Kleine-Buddec3f6a342010-07-22 11:41:56 +020092#define MX25_INT_CAN1 43
93#define MX25_INT_CAN2 44
Uwe Kleine-König7cc3c842010-06-24 15:20:44 +020094#define MX25_INT_UART1 45
Uwe Kleine-Königd485c7e2010-11-11 10:52:33 +010095#define MX25_INT_GPIO2 51
96#define MX25_INT_GPIO1 52
Uwe Kleine-König63ddc5b2010-06-21 17:34:58 +020097#define MX25_INT_FEC 57
Baruch Siacha7595442009-12-21 13:44:31 +020098
Uwe Kleine-König4697bb92010-08-25 17:37:45 +020099#define MX25_DMA_REQ_SSI2_RX1 22
100#define MX25_DMA_REQ_SSI2_TX1 23
101#define MX25_DMA_REQ_SSI2_RX0 24
102#define MX25_DMA_REQ_SSI2_TX0 25
103#define MX25_DMA_REQ_SSI1_RX1 26
104#define MX25_DMA_REQ_SSI1_TX1 27
105#define MX25_DMA_REQ_SSI1_RX0 28
106#define MX25_DMA_REQ_SSI1_TX0 29
107
Jason Liud27536c2011-08-26 13:35:19 +0800108#ifndef __ASSEMBLY__
109extern int mx25_revision(void);
110#endif
111
Uwe Kleine-König3cdd5442010-01-08 16:02:30 +0100112#endif /* ifndef __MACH_MX25_H__ */