[ARM] S3C64XX: Map GPIO block
authorBen Dooks <ben-linux@fluff.org>
Tue, 21 Oct 2008 13:07:07 +0000 (14:07 +0100)
committerBen Dooks <ben-linux@fluff.org>
Mon, 15 Dec 2008 23:03:41 +0000 (23:03 +0000)
Add mapping for GPIO block in the static mappings.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/mach-s3c6400/include/mach/map.h
arch/arm/plat-s3c64xx/cpu.c

index 83ed3c158693ac9fd2424def8676a2f113813269..618f09d637b2627108a1a165a76fb8cd0ee3ccf9 100644 (file)
 #define S3C64XX_PA_SYSCON      (0x7E00F000)
 #define S3C64XX_PA_TIMER       (0x7F006000)
 
+#define S3C64XX_PA_GPIO                (0x7F008000)
+#define S3C64XX_VA_GPIO                S3C_ADDR(0x00500000)
+#define S3C64XX_SZ_GPIO                SZ_4K
+
 #define S3C64XX_PA_SDRAM       (0x50000000)
 #define S3C64XX_PA_VIC0                (0x71200000)
 #define S3C64XX_PA_VIC1                (0x71300000)
index 2559d6afc3176e7d1115a33e8a731ebf7094a3c2..0bbc0e2dc5d40a4b29ec7cbb931e464e9cfca9b2 100644 (file)
@@ -92,6 +92,11 @@ static struct map_desc s3c_iodesc[] __initdata = {
                .pfn            = __phys_to_pfn(S3C_PA_TIMER),
                .length         = SZ_16K,
                .type           = MT_DEVICE,
+       }, {
+               .virtual        = S3C64XX_VA_GPIO,
+               .pfn            = __phys_to_pfn(S3C64XX_PA_GPIO),
+               .length         = SZ_4K,
+               .type           = MT_DEVICE,
        },
 };