diff options
author | Jongpill Lee <boyko.lee@samsung.com> | 2010-10-14 02:46:18 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2010-10-25 03:06:22 -0400 |
commit | 37ea63b14bec667957ca3cfaa899c6e103fdb854 (patch) | |
tree | 3753fdaef847199a9c14188198613656f7df1820 /arch/arm | |
parent | 3e7d5e5a4aa7960e977a0434c1203eaff2ac44a4 (diff) |
ARM: S5P: Add initial map for GPIO2 and GPIO3
This patch adds initial map for GPIO2 and GPIO3.
S5PV310/S5PC210 has separated GPIO1, GPIO2 and GPIO3.
Signed-off-by: Jongpill Lee <boyko.lee@samsung.com>
Signed-off-by: Sangbeom Kim <sbkim73@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-s5pv310/cpu.c | 12 | ||||
-rw-r--r-- | arch/arm/plat-s5p/include/plat/map-s5p.h | 3 |
2 files changed, 14 insertions, 1 deletions
diff --git a/arch/arm/mach-s5pv310/cpu.c b/arch/arm/mach-s5pv310/cpu.c index 66beac424e40..5b9790054421 100644 --- a/arch/arm/mach-s5pv310/cpu.c +++ b/arch/arm/mach-s5pv310/cpu.c | |||
@@ -57,11 +57,21 @@ static struct map_desc s5pv310_iodesc[] __initdata = { | |||
57 | .length = SZ_4K, | 57 | .length = SZ_4K, |
58 | .type = MT_DEVICE, | 58 | .type = MT_DEVICE, |
59 | }, { | 59 | }, { |
60 | .virtual = (unsigned long)S5P_VA_GPIO, | 60 | .virtual = (unsigned long)S5P_VA_GPIO1, |
61 | .pfn = __phys_to_pfn(S5PV310_PA_GPIO1), | 61 | .pfn = __phys_to_pfn(S5PV310_PA_GPIO1), |
62 | .length = SZ_4K, | 62 | .length = SZ_4K, |
63 | .type = MT_DEVICE, | 63 | .type = MT_DEVICE, |
64 | }, { | 64 | }, { |
65 | .virtual = (unsigned long)S5P_VA_GPIO2, | ||
66 | .pfn = __phys_to_pfn(S5PV310_PA_GPIO2), | ||
67 | .length = SZ_4K, | ||
68 | .type = MT_DEVICE, | ||
69 | }, { | ||
70 | .virtual = (unsigned long)S5P_VA_GPIO3, | ||
71 | .pfn = __phys_to_pfn(S5PV310_PA_GPIO3), | ||
72 | .length = SZ_256, | ||
73 | .type = MT_DEVICE, | ||
74 | }, { | ||
65 | .virtual = (unsigned long)S3C_VA_UART, | 75 | .virtual = (unsigned long)S3C_VA_UART, |
66 | .pfn = __phys_to_pfn(S3C_PA_UART), | 76 | .pfn = __phys_to_pfn(S3C_PA_UART), |
67 | .length = SZ_512K, | 77 | .length = SZ_512K, |
diff --git a/arch/arm/plat-s5p/include/plat/map-s5p.h b/arch/arm/plat-s5p/include/plat/map-s5p.h index ec96a193f5e1..fef353d44513 100644 --- a/arch/arm/plat-s5p/include/plat/map-s5p.h +++ b/arch/arm/plat-s5p/include/plat/map-s5p.h | |||
@@ -16,6 +16,9 @@ | |||
16 | #define S5P_VA_CHIPID S3C_ADDR(0x02000000) | 16 | #define S5P_VA_CHIPID S3C_ADDR(0x02000000) |
17 | #define S5P_VA_CMU S3C_ADDR(0x02100000) | 17 | #define S5P_VA_CMU S3C_ADDR(0x02100000) |
18 | #define S5P_VA_GPIO S3C_ADDR(0x02200000) | 18 | #define S5P_VA_GPIO S3C_ADDR(0x02200000) |
19 | #define S5P_VA_GPIO1 S5P_VA_GPIO | ||
20 | #define S5P_VA_GPIO2 S3C_ADDR(0x02240000) | ||
21 | #define S5P_VA_GPIO3 S3C_ADDR(0x02280000) | ||
19 | 22 | ||
20 | #define S5P_VA_SYSRAM S3C_ADDR(0x02400000) | 23 | #define S5P_VA_SYSRAM S3C_ADDR(0x02400000) |
21 | #define S5P_VA_DMC0 S3C_ADDR(0x02440000) | 24 | #define S5P_VA_DMC0 S3C_ADDR(0x02440000) |