2009-06-04 03:32:12 -06:00
|
|
|
#ifndef __MACH_MX25_H__
|
|
|
|
#define __MACH_MX25_H__
|
|
|
|
|
2009-11-12 13:51:55 -07:00
|
|
|
#define MX25_AIPS1_BASE_ADDR 0x43f00000
|
|
|
|
#define MX25_AIPS1_BASE_ADDR_VIRT 0xfc000000
|
2009-06-04 03:32:12 -06:00
|
|
|
#define MX25_AIPS1_SIZE SZ_1M
|
2009-11-12 13:51:55 -07:00
|
|
|
#define MX25_AIPS2_BASE_ADDR 0x53f00000
|
|
|
|
#define MX25_AIPS2_BASE_ADDR_VIRT 0xfc200000
|
2009-06-04 03:32:12 -06:00
|
|
|
#define MX25_AIPS2_SIZE SZ_1M
|
|
|
|
#define MX25_AVIC_BASE_ADDR 0x68000000
|
2009-11-12 13:51:55 -07:00
|
|
|
#define MX25_AVIC_BASE_ADDR_VIRT 0xfc400000
|
2009-06-04 03:32:12 -06:00
|
|
|
#define MX25_AVIC_SIZE SZ_1M
|
|
|
|
|
2010-06-16 06:55:07 -06:00
|
|
|
#define MX25_I2C1_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0x80000)
|
|
|
|
#define MX25_I2C3_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0x84000)
|
2010-07-22 03:41:56 -06:00
|
|
|
#define MX25_CAN1_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0x88000)
|
|
|
|
#define MX25_CAN2_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0x8c000)
|
2010-06-16 06:55:07 -06:00
|
|
|
#define MX25_I2C2_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0x98000)
|
2010-06-21 09:34:58 -06:00
|
|
|
#define MX25_CSPI1_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0xa4000)
|
2009-06-04 03:32:12 -06:00
|
|
|
#define MX25_IOMUXC_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0xac000)
|
|
|
|
|
|
|
|
#define MX25_CRM_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0x80000)
|
|
|
|
#define MX25_GPT1_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0x90000)
|
|
|
|
#define MX25_WDOG_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0xdc000)
|
|
|
|
|
|
|
|
#define MX25_GPIO1_BASE_ADDR_VIRT (MX25_AIPS2_BASE_ADDR_VIRT + 0xcc000)
|
|
|
|
#define MX25_GPIO2_BASE_ADDR_VIRT (MX25_AIPS2_BASE_ADDR_VIRT + 0xd0000)
|
|
|
|
#define MX25_GPIO3_BASE_ADDR_VIRT (MX25_AIPS2_BASE_ADDR_VIRT + 0xa4000)
|
|
|
|
#define MX25_GPIO4_BASE_ADDR_VIRT (MX25_AIPS2_BASE_ADDR_VIRT + 0x9c000)
|
|
|
|
|
2009-12-16 11:07:04 -07:00
|
|
|
#define MX25_IO_ADDRESS(x) ( \
|
|
|
|
IMX_IO_ADDRESS(x, MX25_AIPS1) ?: \
|
|
|
|
IMX_IO_ADDRESS(x, MX25_AIPS2) ?: \
|
|
|
|
IMX_IO_ADDRESS(x, MX25_AVIC))
|
2009-06-04 03:32:12 -06:00
|
|
|
|
2010-07-16 07:09:06 -06:00
|
|
|
#define MX25_AIPS1_IO_ADDRESS(x) \
|
|
|
|
(((x) - MX25_AIPS1_BASE_ADDR) + MX25_AIPS1_BASE_ADDR_VIRT)
|
|
|
|
|
2010-01-25 09:55:16 -07:00
|
|
|
#define MX25_UART1_BASE_ADDR 0x43f90000
|
|
|
|
#define MX25_UART2_BASE_ADDR 0x43f94000
|
2010-06-08 03:03:00 -06:00
|
|
|
#define MX25_AUDMUX_BASE_ADDR 0x43fb0000
|
2010-06-24 07:20:44 -06:00
|
|
|
#define MX25_UART3_BASE_ADDR 0x5000c000
|
|
|
|
#define MX25_UART4_BASE_ADDR 0x50008000
|
|
|
|
#define MX25_UART5_BASE_ADDR 0x5002c000
|
2009-06-04 03:32:12 -06:00
|
|
|
|
2010-06-21 09:34:58 -06:00
|
|
|
#define MX25_CSPI3_BASE_ADDR 0x50004000
|
|
|
|
#define MX25_CSPI2_BASE_ADDR 0x50010000
|
2009-12-21 04:44:31 -07:00
|
|
|
#define MX25_FEC_BASE_ADDR 0x50038000
|
2010-06-08 03:03:00 -06:00
|
|
|
#define MX25_SSI2_BASE_ADDR 0x50014000
|
|
|
|
#define MX25_SSI1_BASE_ADDR 0x50034000
|
2010-01-14 02:24:14 -07:00
|
|
|
#define MX25_NFC_BASE_ADDR 0xbb000000
|
2010-01-27 06:00:48 -07:00
|
|
|
#define MX25_DRYICE_BASE_ADDR 0x53ffc000
|
2010-02-17 03:33:24 -07:00
|
|
|
#define MX25_LCDC_BASE_ADDR 0x53fbc000
|
2010-05-26 06:12:10 -06:00
|
|
|
#define MX25_KPP_BASE_ADDR 0x43fa8000
|
2010-06-08 03:02:55 -06:00
|
|
|
#define MX25_OTG_BASE_ADDR 0x53ff4000
|
2010-06-20 23:16:00 -06:00
|
|
|
#define MX25_CSI_BASE_ADDR 0x53ff8000
|
2009-12-21 04:44:31 -07:00
|
|
|
|
2010-06-21 09:34:58 -06:00
|
|
|
#define MX25_INT_CSPI3 0
|
2010-06-16 06:55:07 -06:00
|
|
|
#define MX25_INT_I2C1 3
|
|
|
|
#define MX25_INT_I2C2 4
|
2010-06-24 07:20:44 -06:00
|
|
|
#define MX25_INT_UART4 5
|
2010-06-16 06:55:07 -06:00
|
|
|
#define MX25_INT_I2C3 10
|
2010-06-30 04:16:24 -06:00
|
|
|
#define MX25_INT_SSI2 11
|
|
|
|
#define MX25_INT_SSI1 12
|
2010-06-21 09:34:58 -06:00
|
|
|
#define MX25_INT_CSPI2 13
|
|
|
|
#define MX25_INT_CSPI1 14
|
2010-06-30 04:16:24 -06:00
|
|
|
#define MX25_INT_CSI 17
|
2010-06-24 07:20:44 -06:00
|
|
|
#define MX25_INT_UART3 18
|
2010-06-30 04:16:24 -06:00
|
|
|
#define MX25_INT_KPP 24
|
2010-06-16 06:55:07 -06:00
|
|
|
#define MX25_INT_DRYICE 25
|
2010-06-24 07:20:44 -06:00
|
|
|
#define MX25_INT_UART2 32
|
2010-06-16 06:55:07 -06:00
|
|
|
#define MX25_INT_NANDFC 33
|
|
|
|
#define MX25_INT_LCDC 39
|
2010-06-24 07:20:44 -06:00
|
|
|
#define MX25_INT_UART5 40
|
2010-07-22 03:41:56 -06:00
|
|
|
#define MX25_INT_CAN1 43
|
|
|
|
#define MX25_INT_CAN2 44
|
2010-06-24 07:20:44 -06:00
|
|
|
#define MX25_INT_UART1 45
|
2010-06-21 09:34:58 -06:00
|
|
|
#define MX25_INT_FEC 57
|
2009-12-21 04:44:31 -07:00
|
|
|
|
2010-01-08 08:02:30 -07:00
|
|
|
#endif /* ifndef __MACH_MX25_H__ */
|