spi-topcliff-pch: Fix issue for transmitting over 4KByte
[zen-stable.git] / arch / arm / mach-tegra / include / mach / iomap.h
blob19dec3ac0854a49218d107b78f00b26857ef7329
1 /*
2 * arch/arm/mach-tegra/include/mach/iomap.h
4 * Copyright (C) 2010 Google, Inc.
6 * Author:
7 * Colin Cross <ccross@google.com>
8 * Erik Gilling <konkers@google.com>
10 * This software is licensed under the terms of the GNU General Public
11 * License version 2, as published by the Free Software Foundation, and
12 * may be copied, distributed, and modified under those terms.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
21 #ifndef __MACH_TEGRA_IOMAP_H
22 #define __MACH_TEGRA_IOMAP_H
24 #include <asm/sizes.h>
26 #define TEGRA_IRAM_BASE 0x40000000
27 #define TEGRA_IRAM_SIZE SZ_256K
29 #define TEGRA_HOST1X_BASE 0x50000000
30 #define TEGRA_HOST1X_SIZE 0x24000
32 #define TEGRA_ARM_PERIF_BASE 0x50040000
33 #define TEGRA_ARM_PERIF_SIZE SZ_8K
35 #define TEGRA_ARM_PL310_BASE 0x50043000
36 #define TEGRA_ARM_PL310_SIZE SZ_4K
38 #define TEGRA_ARM_INT_DIST_BASE 0x50041000
39 #define TEGRA_ARM_INT_DIST_SIZE SZ_4K
41 #define TEGRA_MPE_BASE 0x54040000
42 #define TEGRA_MPE_SIZE SZ_256K
44 #define TEGRA_VI_BASE 0x54080000
45 #define TEGRA_VI_SIZE SZ_256K
47 #define TEGRA_ISP_BASE 0x54100000
48 #define TEGRA_ISP_SIZE SZ_256K
50 #define TEGRA_DISPLAY_BASE 0x54200000
51 #define TEGRA_DISPLAY_SIZE SZ_256K
53 #define TEGRA_DISPLAY2_BASE 0x54240000
54 #define TEGRA_DISPLAY2_SIZE SZ_256K
56 #define TEGRA_HDMI_BASE 0x54280000
57 #define TEGRA_HDMI_SIZE SZ_256K
59 #define TEGRA_GART_BASE 0x58000000
60 #define TEGRA_GART_SIZE SZ_32M
62 #define TEGRA_RES_SEMA_BASE 0x60001000
63 #define TEGRA_RES_SEMA_SIZE SZ_4K
65 #define TEGRA_PRIMARY_ICTLR_BASE 0x60004000
66 #define TEGRA_PRIMARY_ICTLR_SIZE SZ_64
68 #define TEGRA_SECONDARY_ICTLR_BASE 0x60004100
69 #define TEGRA_SECONDARY_ICTLR_SIZE SZ_64
71 #define TEGRA_TERTIARY_ICTLR_BASE 0x60004200
72 #define TEGRA_TERTIARY_ICTLR_SIZE SZ_64
74 #define TEGRA_QUATERNARY_ICTLR_BASE 0x60004300
75 #define TEGRA_QUATERNARY_ICTLR_SIZE SZ_64
77 #define TEGRA_TMR1_BASE 0x60005000
78 #define TEGRA_TMR1_SIZE SZ_8
80 #define TEGRA_TMR2_BASE 0x60005008
81 #define TEGRA_TMR2_SIZE SZ_8
83 #define TEGRA_TMRUS_BASE 0x60005010
84 #define TEGRA_TMRUS_SIZE SZ_64
86 #define TEGRA_TMR3_BASE 0x60005050
87 #define TEGRA_TMR3_SIZE SZ_8
89 #define TEGRA_TMR4_BASE 0x60005058
90 #define TEGRA_TMR4_SIZE SZ_8
92 #define TEGRA_CLK_RESET_BASE 0x60006000
93 #define TEGRA_CLK_RESET_SIZE SZ_4K
95 #define TEGRA_FLOW_CTRL_BASE 0x60007000
96 #define TEGRA_FLOW_CTRL_SIZE 20
98 #define TEGRA_AHB_DMA_BASE 0x60008000
99 #define TEGRA_AHB_DMA_SIZE SZ_4K
101 #define TEGRA_AHB_DMA_CH0_BASE 0x60009000
102 #define TEGRA_AHB_DMA_CH0_SIZE 32
104 #define TEGRA_APB_DMA_BASE 0x6000A000
105 #define TEGRA_APB_DMA_SIZE SZ_4K
107 #define TEGRA_APB_DMA_CH0_BASE 0x6000B000
108 #define TEGRA_APB_DMA_CH0_SIZE 32
110 #define TEGRA_AHB_GIZMO_BASE 0x6000C004
111 #define TEGRA_AHB_GIZMO_SIZE 0x10C
113 #define TEGRA_STATMON_BASE 0x6000C400
114 #define TEGRA_STATMON_SIZE SZ_1K
116 #define TEGRA_GPIO_BASE 0x6000D000
117 #define TEGRA_GPIO_SIZE SZ_4K
119 #define TEGRA_EXCEPTION_VECTORS_BASE 0x6000F000
120 #define TEGRA_EXCEPTION_VECTORS_SIZE SZ_4K
122 #define TEGRA_APB_MISC_BASE 0x70000000
123 #define TEGRA_APB_MISC_SIZE SZ_4K
125 #define TEGRA_APB_MISC_DAS_BASE 0x70000c00
126 #define TEGRA_APB_MISC_DAS_SIZE SZ_128
128 #define TEGRA_AC97_BASE 0x70002000
129 #define TEGRA_AC97_SIZE SZ_512
131 #define TEGRA_SPDIF_BASE 0x70002400
132 #define TEGRA_SPDIF_SIZE SZ_512
134 #define TEGRA_I2S1_BASE 0x70002800
135 #define TEGRA_I2S1_SIZE SZ_256
137 #define TEGRA_I2S2_BASE 0x70002A00
138 #define TEGRA_I2S2_SIZE SZ_256
140 #define TEGRA_UARTA_BASE 0x70006000
141 #define TEGRA_UARTA_SIZE SZ_64
143 #define TEGRA_UARTB_BASE 0x70006040
144 #define TEGRA_UARTB_SIZE SZ_64
146 #define TEGRA_UARTC_BASE 0x70006200
147 #define TEGRA_UARTC_SIZE SZ_256
149 #define TEGRA_UARTD_BASE 0x70006300
150 #define TEGRA_UARTD_SIZE SZ_256
152 #define TEGRA_UARTE_BASE 0x70006400
153 #define TEGRA_UARTE_SIZE SZ_256
155 #define TEGRA_NAND_BASE 0x70008000
156 #define TEGRA_NAND_SIZE SZ_256
158 #define TEGRA_HSMMC_BASE 0x70008500
159 #define TEGRA_HSMMC_SIZE SZ_256
161 #define TEGRA_SNOR_BASE 0x70009000
162 #define TEGRA_SNOR_SIZE SZ_4K
164 #define TEGRA_PWFM_BASE 0x7000A000
165 #define TEGRA_PWFM_SIZE SZ_256
167 #define TEGRA_PWFM0_BASE 0x7000A000
168 #define TEGRA_PWFM0_SIZE 4
170 #define TEGRA_PWFM1_BASE 0x7000A010
171 #define TEGRA_PWFM1_SIZE 4
173 #define TEGRA_PWFM2_BASE 0x7000A020
174 #define TEGRA_PWFM2_SIZE 4
176 #define TEGRA_PWFM3_BASE 0x7000A030
177 #define TEGRA_PWFM3_SIZE 4
179 #define TEGRA_MIPI_BASE 0x7000B000
180 #define TEGRA_MIPI_SIZE SZ_256
182 #define TEGRA_I2C_BASE 0x7000C000
183 #define TEGRA_I2C_SIZE SZ_256
185 #define TEGRA_TWC_BASE 0x7000C100
186 #define TEGRA_TWC_SIZE SZ_256
188 #define TEGRA_SPI_BASE 0x7000C380
189 #define TEGRA_SPI_SIZE 48
191 #define TEGRA_I2C2_BASE 0x7000C400
192 #define TEGRA_I2C2_SIZE SZ_256
194 #define TEGRA_I2C3_BASE 0x7000C500
195 #define TEGRA_I2C3_SIZE SZ_256
197 #define TEGRA_OWR_BASE 0x7000C600
198 #define TEGRA_OWR_SIZE 80
200 #define TEGRA_DVC_BASE 0x7000D000
201 #define TEGRA_DVC_SIZE SZ_512
203 #define TEGRA_SPI1_BASE 0x7000D400
204 #define TEGRA_SPI1_SIZE SZ_512
206 #define TEGRA_SPI2_BASE 0x7000D600
207 #define TEGRA_SPI2_SIZE SZ_512
209 #define TEGRA_SPI3_BASE 0x7000D800
210 #define TEGRA_SPI3_SIZE SZ_512
212 #define TEGRA_SPI4_BASE 0x7000DA00
213 #define TEGRA_SPI4_SIZE SZ_512
215 #define TEGRA_RTC_BASE 0x7000E000
216 #define TEGRA_RTC_SIZE SZ_256
218 #define TEGRA_KBC_BASE 0x7000E200
219 #define TEGRA_KBC_SIZE SZ_256
221 #define TEGRA_PMC_BASE 0x7000E400
222 #define TEGRA_PMC_SIZE SZ_256
224 #define TEGRA_MC_BASE 0x7000F000
225 #define TEGRA_MC_SIZE SZ_1K
227 #define TEGRA_EMC_BASE 0x7000F400
228 #define TEGRA_EMC_SIZE SZ_1K
230 #define TEGRA_FUSE_BASE 0x7000F800
231 #define TEGRA_FUSE_SIZE SZ_1K
233 #define TEGRA_KFUSE_BASE 0x7000FC00
234 #define TEGRA_KFUSE_SIZE SZ_1K
236 #define TEGRA_CSITE_BASE 0x70040000
237 #define TEGRA_CSITE_SIZE SZ_256K
239 #define TEGRA_USB_BASE 0xC5000000
240 #define TEGRA_USB_SIZE SZ_16K
242 #define TEGRA_USB2_BASE 0xC5004000
243 #define TEGRA_USB2_SIZE SZ_16K
245 #define TEGRA_USB3_BASE 0xC5008000
246 #define TEGRA_USB3_SIZE SZ_16K
248 #define TEGRA_SDMMC1_BASE 0xC8000000
249 #define TEGRA_SDMMC1_SIZE SZ_512
251 #define TEGRA_SDMMC2_BASE 0xC8000200
252 #define TEGRA_SDMMC2_SIZE SZ_512
254 #define TEGRA_SDMMC3_BASE 0xC8000400
255 #define TEGRA_SDMMC3_SIZE SZ_512
257 #define TEGRA_SDMMC4_BASE 0xC8000600
258 #define TEGRA_SDMMC4_SIZE SZ_512
260 #if defined(CONFIG_TEGRA_DEBUG_UART_NONE)
261 # define TEGRA_DEBUG_UART_BASE 0
262 #elif defined(CONFIG_TEGRA_DEBUG_UARTA)
263 # define TEGRA_DEBUG_UART_BASE TEGRA_UARTA_BASE
264 #elif defined(CONFIG_TEGRA_DEBUG_UARTB)
265 # define TEGRA_DEBUG_UART_BASE TEGRA_UARTB_BASE
266 #elif defined(CONFIG_TEGRA_DEBUG_UARTC)
267 # define TEGRA_DEBUG_UART_BASE TEGRA_UARTC_BASE
268 #elif defined(CONFIG_TEGRA_DEBUG_UARTD)
269 # define TEGRA_DEBUG_UART_BASE TEGRA_UARTD_BASE
270 #elif defined(CONFIG_TEGRA_DEBUG_UARTE)
271 # define TEGRA_DEBUG_UART_BASE TEGRA_UARTE_BASE
272 #endif
274 #endif