diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-10-21 09:07:07 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2008-12-15 18:03:41 -0500 |
commit | 94df868b884d673c294e39a11acdfebf2bfcd67b (patch) | |
tree | 8edb36f2e68d189cbf5a9cec05df6f14e02730c1 /arch | |
parent | a801cd619215a9e8c4968352cf8698ea5235f0f4 (diff) |
[ARM] S3C64XX: Map GPIO block
Add mapping for GPIO block in the static mappings.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-s3c6400/include/mach/map.h | 4 | ||||
-rw-r--r-- | arch/arm/plat-s3c64xx/cpu.c | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c6400/include/mach/map.h b/arch/arm/mach-s3c6400/include/mach/map.h index 83ed3c158693..618f09d637b2 100644 --- a/arch/arm/mach-s3c6400/include/mach/map.h +++ b/arch/arm/mach-s3c6400/include/mach/map.h | |||
@@ -35,6 +35,10 @@ | |||
35 | #define S3C64XX_PA_SYSCON (0x7E00F000) | 35 | #define S3C64XX_PA_SYSCON (0x7E00F000) |
36 | #define S3C64XX_PA_TIMER (0x7F006000) | 36 | #define S3C64XX_PA_TIMER (0x7F006000) |
37 | 37 | ||
38 | #define S3C64XX_PA_GPIO (0x7F008000) | ||
39 | #define S3C64XX_VA_GPIO S3C_ADDR(0x00500000) | ||
40 | #define S3C64XX_SZ_GPIO SZ_4K | ||
41 | |||
38 | #define S3C64XX_PA_SDRAM (0x50000000) | 42 | #define S3C64XX_PA_SDRAM (0x50000000) |
39 | #define S3C64XX_PA_VIC0 (0x71200000) | 43 | #define S3C64XX_PA_VIC0 (0x71200000) |
40 | #define S3C64XX_PA_VIC1 (0x71300000) | 44 | #define S3C64XX_PA_VIC1 (0x71300000) |
diff --git a/arch/arm/plat-s3c64xx/cpu.c b/arch/arm/plat-s3c64xx/cpu.c index 2559d6afc317..0bbc0e2dc5d4 100644 --- a/arch/arm/plat-s3c64xx/cpu.c +++ b/arch/arm/plat-s3c64xx/cpu.c | |||
@@ -92,6 +92,11 @@ static struct map_desc s3c_iodesc[] __initdata = { | |||
92 | .pfn = __phys_to_pfn(S3C_PA_TIMER), | 92 | .pfn = __phys_to_pfn(S3C_PA_TIMER), |
93 | .length = SZ_16K, | 93 | .length = SZ_16K, |
94 | .type = MT_DEVICE, | 94 | .type = MT_DEVICE, |
95 | }, { | ||
96 | .virtual = S3C64XX_VA_GPIO, | ||
97 | .pfn = __phys_to_pfn(S3C64XX_PA_GPIO), | ||
98 | .length = SZ_4K, | ||
99 | .type = MT_DEVICE, | ||
95 | }, | 100 | }, |
96 | }; | 101 | }; |
97 | 102 | ||