diff options
author | Changhwan Youn <chaos.youn@samsung.com> | 2011-07-15 21:48:47 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2011-07-20 10:28:06 -0400 |
commit | eb13f2bf7254f868486179b75d41c8b17a134996 (patch) | |
tree | ab6bf6439fcda10c343a8789a0d3650ac041e360 /arch | |
parent | 0d855f40a47213e488103fdaf74d01eb90a57f09 (diff) |
ARM: EXYNOS4: Add external GIC io memory mapping
This patch adds external GIC io memory mapping
to support external GIC on EXYNOS4.
Signed-off-by: Changhwan Youn <chaos.youn@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-exynos4/cpu.c | 12 | ||||
-rw-r--r-- | arch/arm/mach-exynos4/include/mach/map.h | 7 | ||||
-rw-r--r-- | arch/arm/plat-s5p/include/plat/map-s5p.h | 5 |
3 files changed, 18 insertions, 6 deletions
diff --git a/arch/arm/mach-exynos4/cpu.c b/arch/arm/mach-exynos4/cpu.c index bfd621460abf..91fc9fc8d763 100644 --- a/arch/arm/mach-exynos4/cpu.c +++ b/arch/arm/mach-exynos4/cpu.c | |||
@@ -103,7 +103,17 @@ static struct map_desc exynos4_iodesc[] __initdata = { | |||
103 | .pfn = __phys_to_pfn(EXYNOS4_PA_HSPHY), | 103 | .pfn = __phys_to_pfn(EXYNOS4_PA_HSPHY), |
104 | .length = SZ_4K, | 104 | .length = SZ_4K, |
105 | .type = MT_DEVICE, | 105 | .type = MT_DEVICE, |
106 | } | 106 | }, { |
107 | .virtual = (unsigned long)S5P_VA_GIC_CPU, | ||
108 | .pfn = __phys_to_pfn(EXYNOS4_PA_GIC_CPU), | ||
109 | .length = SZ_64K, | ||
110 | .type = MT_DEVICE, | ||
111 | }, { | ||
112 | .virtual = (unsigned long)S5P_VA_GIC_DIST, | ||
113 | .pfn = __phys_to_pfn(EXYNOS4_PA_GIC_DIST), | ||
114 | .length = SZ_64K, | ||
115 | .type = MT_DEVICE, | ||
116 | }, | ||
107 | }; | 117 | }; |
108 | 118 | ||
109 | static void exynos4_idle(void) | 119 | static void exynos4_idle(void) |
diff --git a/arch/arm/mach-exynos4/include/mach/map.h b/arch/arm/mach-exynos4/include/mach/map.h index 0009e77a05fc..0dbca26dfe64 100644 --- a/arch/arm/mach-exynos4/include/mach/map.h +++ b/arch/arm/mach-exynos4/include/mach/map.h | |||
@@ -57,12 +57,13 @@ | |||
57 | 57 | ||
58 | #define EXYNOS4_PA_DMC0 0x10400000 | 58 | #define EXYNOS4_PA_DMC0 0x10400000 |
59 | 59 | ||
60 | #define EXYNOS4_PA_COMBINER 0x10448000 | 60 | #define EXYNOS4_PA_COMBINER 0x10440000 |
61 | |||
62 | #define EXYNOS4_PA_GIC_CPU 0x10480000 | ||
63 | #define EXYNOS4_PA_GIC_DIST 0x10490000 | ||
61 | 64 | ||
62 | #define EXYNOS4_PA_COREPERI 0x10500000 | 65 | #define EXYNOS4_PA_COREPERI 0x10500000 |
63 | #define EXYNOS4_PA_GIC_CPU 0x10500100 | ||
64 | #define EXYNOS4_PA_TWD 0x10500600 | 66 | #define EXYNOS4_PA_TWD 0x10500600 |
65 | #define EXYNOS4_PA_GIC_DIST 0x10501000 | ||
66 | #define EXYNOS4_PA_L2CC 0x10502000 | 67 | #define EXYNOS4_PA_L2CC 0x10502000 |
67 | 68 | ||
68 | #define EXYNOS4_PA_MDMA 0x10810000 | 69 | #define EXYNOS4_PA_MDMA 0x10810000 |
diff --git a/arch/arm/plat-s5p/include/plat/map-s5p.h b/arch/arm/plat-s5p/include/plat/map-s5p.h index d973d39666a3..36d3551173b2 100644 --- a/arch/arm/plat-s5p/include/plat/map-s5p.h +++ b/arch/arm/plat-s5p/include/plat/map-s5p.h | |||
@@ -35,9 +35,10 @@ | |||
35 | #define S5P_VA_COREPERI_BASE S3C_ADDR(0x02800000) | 35 | #define S5P_VA_COREPERI_BASE S3C_ADDR(0x02800000) |
36 | #define S5P_VA_COREPERI(x) (S5P_VA_COREPERI_BASE + (x)) | 36 | #define S5P_VA_COREPERI(x) (S5P_VA_COREPERI_BASE + (x)) |
37 | #define S5P_VA_SCU S5P_VA_COREPERI(0x0) | 37 | #define S5P_VA_SCU S5P_VA_COREPERI(0x0) |
38 | #define S5P_VA_GIC_CPU S5P_VA_COREPERI(0x100) | ||
39 | #define S5P_VA_TWD S5P_VA_COREPERI(0x600) | 38 | #define S5P_VA_TWD S5P_VA_COREPERI(0x600) |
40 | #define S5P_VA_GIC_DIST S5P_VA_COREPERI(0x1000) | 39 | |
40 | #define S5P_VA_GIC_CPU S3C_ADDR(0x02810000) | ||
41 | #define S5P_VA_GIC_DIST S3C_ADDR(0x02820000) | ||
41 | 42 | ||
42 | #define S3C_VA_USB_HSPHY S3C_ADDR(0x02900000) | 43 | #define S3C_VA_USB_HSPHY S3C_ADDR(0x02900000) |
43 | 44 | ||