aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-s3c2410/map.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-arm/arch-s3c2410/map.h')
-rw-r--r--include/asm-arm/arch-s3c2410/map.h34
1 files changed, 26 insertions, 8 deletions
diff --git a/include/asm-arm/arch-s3c2410/map.h b/include/asm-arm/arch-s3c2410/map.h
index c380d264a84..27ba0ac3fdd 100644
--- a/include/asm-arm/arch-s3c2410/map.h
+++ b/include/asm-arm/arch-s3c2410/map.h
@@ -8,13 +8,6 @@
8 * This program is free software; you can redistribute it and/or modify 8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as 9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation. 10 * published by the Free Software Foundation.
11 *
12 * Changelog:
13 * 12-May-2003 BJD Created file
14 * 06-Jan-2003 BJD Linux 2.6.0 version, moved bast specifics out
15 * 10-Feb-2005 BJD Added CAMIF definition from guillaume.gourat@nexvision.tv
16 * 10-Mar-2005 LCVR Added support to S3C2400, changed {VA,SZ} names
17 * 15-Jan-2006 LCVR Added S3C24XX_PA macros for common S3C24XX resources
18*/ 11*/
19 12
20#ifndef __ASM_ARCH_MAP_H 13#ifndef __ASM_ARCH_MAP_H
@@ -126,9 +119,18 @@
126#define S3C24XX_SZ_IIS SZ_1M 119#define S3C24XX_SZ_IIS SZ_1M
127 120
128/* GPIO ports */ 121/* GPIO ports */
129#define S3C24XX_VA_GPIO S3C2410_ADDR(0x00E00000) 122
123/* the calculation for the VA of this must ensure that
124 * it is the same distance apart from the UART in the
125 * phsyical address space, as the initial mapping for the IO
126 * is done as a 1:1 maping. This puts it (currently) at
127 * 0xF6800000, which is not in the way of any current mapping
128 * by the base system.
129*/
130
130#define S3C2400_PA_GPIO (0x15600000) 131#define S3C2400_PA_GPIO (0x15600000)
131#define S3C2410_PA_GPIO (0x56000000) 132#define S3C2410_PA_GPIO (0x56000000)
133#define S3C24XX_VA_GPIO ((S3C2410_PA_GPIO - S3C24XX_PA_UART) + S3C24XX_VA_UART)
132#define S3C24XX_SZ_GPIO SZ_1M 134#define S3C24XX_SZ_GPIO SZ_1M
133 135
134/* RTC */ 136/* RTC */
@@ -227,4 +229,20 @@
227#define S3C24XX_PA_SPI S3C2410_PA_SPI 229#define S3C24XX_PA_SPI S3C2410_PA_SPI
228#endif 230#endif
229 231
232/* deal with the registers that move under the 2412/2413 */
233
234#if defined(CONFIG_CPU_S3C2412) || defined(CONFIG_CPU_S3C2413)
235#ifndef __ASSEMBLY__
236extern void __iomem *s3c24xx_va_gpio2;
237#endif
238#ifdef CONFIG_CPU_S3C2412_ONLY
239#define S3C24XX_VA_GPIO2 (S3C24XX_VA_GPIO + 0x10)
240#else
241#define S3C24XX_VA_GPIO2 s3c24xx_va_gpio2
242#endif
243#else
244#define s3c24xx_va_gpio2 S3C24XX_VA_GPIO
245#define S3C24XX_VA_GPIO2 S3C24XX_VA_GPIO
246#endif
247
230#endif /* __ASM_ARCH_MAP_H */ 248#endif /* __ASM_ARCH_MAP_H */