ARM: EXYNOS4: Add external GIC io memory mapping
authorChanghwan Youn <chaos.youn@samsung.com>
Sat, 16 Jul 2011 01:48:47 +0000 (10:48 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Wed, 20 Jul 2011 14:28:06 +0000 (23:28 +0900)
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>
arch/arm/mach-exynos4/cpu.c
arch/arm/mach-exynos4/include/mach/map.h
arch/arm/plat-s5p/include/plat/map-s5p.h

index bfd621460abfa6d5322024a9412d28c4b891a4d7..91fc9fc8d763ff8b852d407dea4f458b6c771cdb 100644 (file)
@@ -103,7 +103,17 @@ static struct map_desc exynos4_iodesc[] __initdata = {
                .pfn            = __phys_to_pfn(EXYNOS4_PA_HSPHY),
                .length         = SZ_4K,
                .type           = MT_DEVICE,
-       }
+       }, {
+               .virtual        = (unsigned long)S5P_VA_GIC_CPU,
+               .pfn            = __phys_to_pfn(EXYNOS4_PA_GIC_CPU),
+               .length         = SZ_64K,
+               .type           = MT_DEVICE,
+       }, {
+               .virtual        = (unsigned long)S5P_VA_GIC_DIST,
+               .pfn            = __phys_to_pfn(EXYNOS4_PA_GIC_DIST),
+               .length         = SZ_64K,
+               .type           = MT_DEVICE,
+       },
 };
 
 static void exynos4_idle(void)
index 0009e77a05fcaf9c115e02011a3807ecb5b8632e..0dbca26dfe6440d7393636aa40e395c2ff7ebae4 100644 (file)
 
 #define EXYNOS4_PA_DMC0                        0x10400000
 
-#define EXYNOS4_PA_COMBINER            0x10448000
+#define EXYNOS4_PA_COMBINER            0x10440000
+
+#define EXYNOS4_PA_GIC_CPU             0x10480000
+#define EXYNOS4_PA_GIC_DIST            0x10490000
 
 #define EXYNOS4_PA_COREPERI            0x10500000
-#define EXYNOS4_PA_GIC_CPU             0x10500100
 #define EXYNOS4_PA_TWD                 0x10500600
-#define EXYNOS4_PA_GIC_DIST            0x10501000
 #define EXYNOS4_PA_L2CC                        0x10502000
 
 #define EXYNOS4_PA_MDMA                        0x10810000
index d973d39666a3f9e83adc79964810c6a2d8b85da3..36d3551173b2fc5afcb4110048d1a5465f3eab90 100644 (file)
 #define S5P_VA_COREPERI_BASE   S3C_ADDR(0x02800000)
 #define S5P_VA_COREPERI(x)     (S5P_VA_COREPERI_BASE + (x))
 #define S5P_VA_SCU             S5P_VA_COREPERI(0x0)
-#define S5P_VA_GIC_CPU         S5P_VA_COREPERI(0x100)
 #define S5P_VA_TWD             S5P_VA_COREPERI(0x600)
-#define S5P_VA_GIC_DIST                S5P_VA_COREPERI(0x1000)
+
+#define S5P_VA_GIC_CPU         S3C_ADDR(0x02810000)
+#define S5P_VA_GIC_DIST                S3C_ADDR(0x02820000)
 
 #define S3C_VA_USB_HSPHY       S3C_ADDR(0x02900000)