]>
Commit | Line | Data |
---|---|---|
cfca8b53 PZ |
1 | /* |
2 | * Copyright (C) 1997,1998 Russell King | |
3 | * Copyright (C) 1999 ARM Limited | |
4 | * Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved. | |
5 | * Copyright (c) 2008 Paulius Zaleckas <paulius.zaleckas@teltonika.lt> | |
6 | * | |
7 | * This program is free software; you can redistribute it and/or modify | |
8 | * it under the terms of the GNU General Public License version 2 as | |
9 | * published by the Free Software Foundation. | |
10 | */ | |
11 | ||
3cdd5441 UKK |
12 | #ifndef __MACH_MX1_H__ |
13 | #define __MACH_MX1_H__ | |
cfca8b53 | 14 | |
cfca8b53 PZ |
15 | #include <mach/vmalloc.h> |
16 | ||
cfca8b53 PZ |
17 | /* |
18 | * Memory map | |
19 | */ | |
7d58289f UKK |
20 | #define MX1_IO_BASE_ADDR 0x00200000 |
21 | #define MX1_IO_SIZE SZ_1M | |
cfca8b53 | 22 | |
7d58289f UKK |
23 | #define MX1_CS0_PHYS 0x10000000 |
24 | #define MX1_CS0_SIZE 0x02000000 | |
cfca8b53 | 25 | |
7d58289f UKK |
26 | #define MX1_CS1_PHYS 0x12000000 |
27 | #define MX1_CS1_SIZE 0x01000000 | |
cfca8b53 | 28 | |
7d58289f UKK |
29 | #define MX1_CS2_PHYS 0x13000000 |
30 | #define MX1_CS2_SIZE 0x01000000 | |
cfca8b53 | 31 | |
7d58289f UKK |
32 | #define MX1_CS3_PHYS 0x14000000 |
33 | #define MX1_CS3_SIZE 0x01000000 | |
cfca8b53 | 34 | |
7d58289f UKK |
35 | #define MX1_CS4_PHYS 0x15000000 |
36 | #define MX1_CS4_SIZE 0x01000000 | |
cfca8b53 | 37 | |
7d58289f UKK |
38 | #define MX1_CS5_PHYS 0x16000000 |
39 | #define MX1_CS5_SIZE 0x01000000 | |
cfca8b53 PZ |
40 | |
41 | /* | |
42 | * Register BASEs, based on OFFSETs | |
43 | */ | |
7d58289f UKK |
44 | #define MX1_AIPI1_BASE_ADDR (0x00000 + MX1_IO_BASE_ADDR) |
45 | #define MX1_WDT_BASE_ADDR (0x01000 + MX1_IO_BASE_ADDR) | |
46 | #define MX1_TIM1_BASE_ADDR (0x02000 + MX1_IO_BASE_ADDR) | |
47 | #define MX1_TIM2_BASE_ADDR (0x03000 + MX1_IO_BASE_ADDR) | |
48 | #define MX1_RTC_BASE_ADDR (0x04000 + MX1_IO_BASE_ADDR) | |
49 | #define MX1_LCDC_BASE_ADDR (0x05000 + MX1_IO_BASE_ADDR) | |
50 | #define MX1_UART1_BASE_ADDR (0x06000 + MX1_IO_BASE_ADDR) | |
51 | #define MX1_UART2_BASE_ADDR (0x07000 + MX1_IO_BASE_ADDR) | |
52 | #define MX1_PWM_BASE_ADDR (0x08000 + MX1_IO_BASE_ADDR) | |
53 | #define MX1_DMA_BASE_ADDR (0x09000 + MX1_IO_BASE_ADDR) | |
54 | #define MX1_AIPI2_BASE_ADDR (0x10000 + MX1_IO_BASE_ADDR) | |
55 | #define MX1_SIM_BASE_ADDR (0x11000 + MX1_IO_BASE_ADDR) | |
56 | #define MX1_USBD_BASE_ADDR (0x12000 + MX1_IO_BASE_ADDR) | |
57 | #define MX1_SPI1_BASE_ADDR (0x13000 + MX1_IO_BASE_ADDR) | |
58 | #define MX1_MMC_BASE_ADDR (0x14000 + MX1_IO_BASE_ADDR) | |
59 | #define MX1_ASP_BASE_ADDR (0x15000 + MX1_IO_BASE_ADDR) | |
60 | #define MX1_BTA_BASE_ADDR (0x16000 + MX1_IO_BASE_ADDR) | |
61 | #define MX1_I2C_BASE_ADDR (0x17000 + MX1_IO_BASE_ADDR) | |
62 | #define MX1_SSI_BASE_ADDR (0x18000 + MX1_IO_BASE_ADDR) | |
63 | #define MX1_SPI2_BASE_ADDR (0x19000 + MX1_IO_BASE_ADDR) | |
64 | #define MX1_MSHC_BASE_ADDR (0x1A000 + MX1_IO_BASE_ADDR) | |
65 | #define MX1_CCM_BASE_ADDR (0x1B000 + MX1_IO_BASE_ADDR) | |
66 | #define MX1_SCM_BASE_ADDR (0x1B804 + MX1_IO_BASE_ADDR) | |
67 | #define MX1_GPIO_BASE_ADDR (0x1C000 + MX1_IO_BASE_ADDR) | |
d485c7e7 UKK |
68 | #define MX1_GPIO1_BASE_ADDR (0x1C000 + MX1_IO_BASE_ADDR) |
69 | #define MX1_GPIO2_BASE_ADDR (0x1C100 + MX1_IO_BASE_ADDR) | |
70 | #define MX1_GPIO3_BASE_ADDR (0x1C200 + MX1_IO_BASE_ADDR) | |
71 | #define MX1_GPIO4_BASE_ADDR (0x1C300 + MX1_IO_BASE_ADDR) | |
7d58289f UKK |
72 | #define MX1_EIM_BASE_ADDR (0x20000 + MX1_IO_BASE_ADDR) |
73 | #define MX1_SDRAMC_BASE_ADDR (0x21000 + MX1_IO_BASE_ADDR) | |
74 | #define MX1_MMA_BASE_ADDR (0x22000 + MX1_IO_BASE_ADDR) | |
75 | #define MX1_AVIC_BASE_ADDR (0x23000 + MX1_IO_BASE_ADDR) | |
76 | #define MX1_CSI_BASE_ADDR (0x24000 + MX1_IO_BASE_ADDR) | |
cfca8b53 PZ |
77 | |
78 | /* macro to get at IO space when running virtually */ | |
a9963148 | 79 | #define MX1_IO_P2V(x) IMX_IO_P2V(x) |
f5d7a13b | 80 | #define MX1_IO_ADDRESS(x) IOMEM(MX1_IO_P2V(x)) |
cfca8b53 PZ |
81 | |
82 | /* fixed interrput numbers */ | |
7d58289f | 83 | #define MX1_INT_SOFTINT 0 |
9bb39b3f | 84 | #define MX1_INT_CSI 6 |
7d58289f UKK |
85 | #define MX1_DSPA_MAC_INT 7 |
86 | #define MX1_DSPA_INT 8 | |
87 | #define MX1_COMP_INT 9 | |
88 | #define MX1_MSHC_XINT 10 | |
89 | #define MX1_GPIO_INT_PORTA 11 | |
90 | #define MX1_GPIO_INT_PORTB 12 | |
91 | #define MX1_GPIO_INT_PORTC 13 | |
92 | #define MX1_LCDC_INT 14 | |
93 | #define MX1_SIM_INT 15 | |
94 | #define MX1_SIM_DATA_INT 16 | |
95 | #define MX1_RTC_INT 17 | |
96 | #define MX1_RTC_SAMINT 18 | |
d112f4e4 UKK |
97 | #define MX1_INT_UART2PFERR 19 |
98 | #define MX1_INT_UART2RTS 20 | |
99 | #define MX1_INT_UART2DTR 21 | |
100 | #define MX1_INT_UART2UARTC 22 | |
101 | #define MX1_INT_UART2TX 23 | |
102 | #define MX1_INT_UART2RX 24 | |
103 | #define MX1_INT_UART1PFERR 25 | |
104 | #define MX1_INT_UART1RTS 26 | |
105 | #define MX1_INT_UART1DTR 27 | |
106 | #define MX1_INT_UART1UARTC 28 | |
107 | #define MX1_INT_UART1TX 29 | |
108 | #define MX1_INT_UART1RX 30 | |
7d58289f UKK |
109 | #define MX1_VOICE_DAC_INT 31 |
110 | #define MX1_VOICE_ADC_INT 32 | |
111 | #define MX1_PEN_DATA_INT 33 | |
112 | #define MX1_PWM_INT 34 | |
113 | #define MX1_SDHC_INT 35 | |
6348e6b5 | 114 | #define MX1_INT_I2C 39 |
7d58289f UKK |
115 | #define MX1_CSPI_INT 41 |
116 | #define MX1_SSI_TX_INT 42 | |
117 | #define MX1_SSI_TX_ERR_INT 43 | |
118 | #define MX1_SSI_RX_INT 44 | |
119 | #define MX1_SSI_RX_ERR_INT 45 | |
120 | #define MX1_TOUCH_INT 46 | |
e0830004 UKK |
121 | #define MX1_INT_USBD0 47 |
122 | #define MX1_INT_USBD1 48 | |
123 | #define MX1_INT_USBD2 49 | |
124 | #define MX1_INT_USBD3 50 | |
125 | #define MX1_INT_USBD4 51 | |
126 | #define MX1_INT_USBD5 52 | |
127 | #define MX1_INT_USBD6 53 | |
7d58289f UKK |
128 | #define MX1_BTSYS_INT 55 |
129 | #define MX1_BTTIM_INT 56 | |
130 | #define MX1_BTWUI_INT 57 | |
131 | #define MX1_TIM2_INT 58 | |
132 | #define MX1_TIM1_INT 59 | |
133 | #define MX1_DMA_ERR 60 | |
134 | #define MX1_DMA_INT 61 | |
135 | #define MX1_GPIO_INT_PORTD 62 | |
136 | #define MX1_WDT_INT 63 | |
cfca8b53 | 137 | |
cfca8b53 | 138 | /* DMA */ |
7d58289f UKK |
139 | #define MX1_DMA_REQ_UART3_T 2 |
140 | #define MX1_DMA_REQ_UART3_R 3 | |
141 | #define MX1_DMA_REQ_SSI2_T 4 | |
142 | #define MX1_DMA_REQ_SSI2_R 5 | |
143 | #define MX1_DMA_REQ_CSI_STAT 6 | |
144 | #define MX1_DMA_REQ_CSI_R 7 | |
145 | #define MX1_DMA_REQ_MSHC 8 | |
146 | #define MX1_DMA_REQ_DSPA_DCT_DOUT 9 | |
147 | #define MX1_DMA_REQ_DSPA_DCT_DIN 10 | |
148 | #define MX1_DMA_REQ_DSPA_MAC 11 | |
149 | #define MX1_DMA_REQ_EXT 12 | |
150 | #define MX1_DMA_REQ_SDHC 13 | |
151 | #define MX1_DMA_REQ_SPI1_R 14 | |
152 | #define MX1_DMA_REQ_SPI1_T 15 | |
153 | #define MX1_DMA_REQ_SSI_T 16 | |
154 | #define MX1_DMA_REQ_SSI_R 17 | |
155 | #define MX1_DMA_REQ_ASP_DAC 18 | |
156 | #define MX1_DMA_REQ_ASP_ADC 19 | |
157 | #define MX1_DMA_REQ_USP_EP(x) (20 + (x)) | |
158 | #define MX1_DMA_REQ_SPI2_R 26 | |
159 | #define MX1_DMA_REQ_SPI2_T 27 | |
160 | #define MX1_DMA_REQ_UART2_T 28 | |
161 | #define MX1_DMA_REQ_UART2_R 29 | |
162 | #define MX1_DMA_REQ_UART1_T 30 | |
163 | #define MX1_DMA_REQ_UART1_R 31 | |
164 | ||
165 | /* | |
166 | * This doesn't depend on IMX_NEEDS_DEPRECATED_SYMBOLS | |
167 | * to not break drivers/usb/gadget/imx_udc. Should go | |
168 | * away after this driver uses the new name. | |
169 | */ | |
e0830004 | 170 | #define USBD_INT0 MX1_INT_USBD0 |
7d58289f | 171 | |
3cdd5441 | 172 | #endif /* ifndef __MACH_MX1_H__ */ |