aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-s3c2410/s3c2412.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/mach-s3c2410/s3c2412.c b/arch/arm/mach-s3c2410/s3c2412.c
index 2d163f7600be..a5ec56efd5c5 100644
--- a/arch/arm/mach-s3c2410/s3c2412.c
+++ b/arch/arm/mach-s3c2410/s3c2412.c
@@ -56,6 +56,13 @@
56 56
57#ifndef CONFIG_CPU_S3C2412_ONLY 57#ifndef CONFIG_CPU_S3C2412_ONLY
58void __iomem *s3c24xx_va_gpio2 = S3C24XX_VA_GPIO; 58void __iomem *s3c24xx_va_gpio2 = S3C24XX_VA_GPIO;
59
60static inline void s3c2412_init_gpio2(void)
61{
62 s3c24xx_va_gpio2 = S3C24XX_VA_GPIO + 0x10;
63}
64#else
65#define s3c2412_init_gpio2() do { } while(0)
59#endif 66#endif
60 67
61/* Initial IO mappings */ 68/* Initial IO mappings */
@@ -110,7 +117,7 @@ void __init s3c2412_map_io(struct map_desc *mach_desc, int mach_size)
110{ 117{
111 /* move base of IO */ 118 /* move base of IO */
112 119
113 s3c24xx_va_gpio2 = S3C24XX_VA_GPIO + 0x10; 120 s3c2412_init_gpio2();
114 121
115 /* set our idle function */ 122 /* set our idle function */
116 123