diff options
author | Arnd Bergmann <arnd@arndb.de> | 2013-06-18 12:36:47 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2013-06-18 12:37:51 -0400 |
commit | 0e2238ec27cb320efd73f3ea7cfc730539fc011d (patch) | |
tree | dbab4e7f411a4349608d9f37da4ed4ecd2c7a28a /arch/arm/mach-exynos | |
parent | 1a522f284fd924adea291960784c6fc27d2a61cb (diff) |
ARM: EXYNOS: Use exynos_init_io() as map_io callback
Since there is no board specific mapping needed on Exynos,
exynos_init_io() can be simplified and used as map_io callback for both
Exynos4 and Exynos5.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-exynos')
-rw-r--r-- | arch/arm/mach-exynos/common.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-exynos/common.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-exynos4-dt.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-exynos5-dt.c | 7 |
4 files changed, 4 insertions, 17 deletions
diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c index 91d457fc016a..561890fbb666 100644 --- a/arch/arm/mach-exynos/common.c +++ b/arch/arm/mach-exynos/common.c | |||
@@ -351,15 +351,12 @@ int __init exynos_fdt_map_chipid(unsigned long node, const char *uname, | |||
351 | * register the standard cpu IO areas | 351 | * register the standard cpu IO areas |
352 | */ | 352 | */ |
353 | 353 | ||
354 | void __init exynos_init_io(struct map_desc *mach_desc, int size) | 354 | void __init exynos_init_io(void) |
355 | { | 355 | { |
356 | debug_ll_io_init(); | 356 | debug_ll_io_init(); |
357 | 357 | ||
358 | of_scan_flat_dt(exynos_fdt_map_chipid, NULL); | 358 | of_scan_flat_dt(exynos_fdt_map_chipid, NULL); |
359 | 359 | ||
360 | if (mach_desc) | ||
361 | iotable_init(mach_desc, size); | ||
362 | |||
363 | /* detect cpu id and rev. */ | 360 | /* detect cpu id and rev. */ |
364 | s5p_init_cpu(S5P_VA_CHIPID); | 361 | s5p_init_cpu(S5P_VA_CHIPID); |
365 | 362 | ||
diff --git a/arch/arm/mach-exynos/common.h b/arch/arm/mach-exynos/common.h index 1c83f95fd3c3..38d45fd23be4 100644 --- a/arch/arm/mach-exynos/common.h +++ b/arch/arm/mach-exynos/common.h | |||
@@ -19,7 +19,7 @@ void exynos_init_time(void); | |||
19 | extern unsigned long xxti_f, xusbxti_f; | 19 | extern unsigned long xxti_f, xusbxti_f; |
20 | 20 | ||
21 | struct map_desc; | 21 | struct map_desc; |
22 | void exynos_init_io(struct map_desc *mach_desc, int size); | 22 | void exynos_init_io(void); |
23 | void exynos4_restart(char mode, const char *cmd); | 23 | void exynos4_restart(char mode, const char *cmd); |
24 | void exynos5_restart(char mode, const char *cmd); | 24 | void exynos5_restart(char mode, const char *cmd); |
25 | void exynos_init_late(void); | 25 | void exynos_init_late(void); |
diff --git a/arch/arm/mach-exynos/mach-exynos4-dt.c b/arch/arm/mach-exynos/mach-exynos4-dt.c index df1572675ace..0099c6c13bba 100644 --- a/arch/arm/mach-exynos/mach-exynos4-dt.c +++ b/arch/arm/mach-exynos/mach-exynos4-dt.c | |||
@@ -23,11 +23,6 @@ | |||
23 | 23 | ||
24 | #include "common.h" | 24 | #include "common.h" |
25 | 25 | ||
26 | static void __init exynos4_dt_map_io(void) | ||
27 | { | ||
28 | exynos_init_io(NULL, 0); | ||
29 | } | ||
30 | |||
31 | static void __init exynos4_dt_machine_init(void) | 26 | static void __init exynos4_dt_machine_init(void) |
32 | { | 27 | { |
33 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | 28 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); |
@@ -55,7 +50,7 @@ static void __init exynos4_reserve(void) | |||
55 | DT_MACHINE_START(EXYNOS4210_DT, "Samsung Exynos4 (Flattened Device Tree)") | 50 | DT_MACHINE_START(EXYNOS4210_DT, "Samsung Exynos4 (Flattened Device Tree)") |
56 | /* Maintainer: Thomas Abraham <thomas.abraham@linaro.org> */ | 51 | /* Maintainer: Thomas Abraham <thomas.abraham@linaro.org> */ |
57 | .smp = smp_ops(exynos_smp_ops), | 52 | .smp = smp_ops(exynos_smp_ops), |
58 | .map_io = exynos4_dt_map_io, | 53 | .map_io = exynos_init_io, |
59 | .init_early = exynos_firmware_init, | 54 | .init_early = exynos_firmware_init, |
60 | .init_machine = exynos4_dt_machine_init, | 55 | .init_machine = exynos4_dt_machine_init, |
61 | .init_late = exynos_init_late, | 56 | .init_late = exynos_init_late, |
diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c index c73d01c965c5..d5c8afdeaa39 100644 --- a/arch/arm/mach-exynos/mach-exynos5-dt.c +++ b/arch/arm/mach-exynos/mach-exynos5-dt.c | |||
@@ -23,11 +23,6 @@ | |||
23 | 23 | ||
24 | #include "common.h" | 24 | #include "common.h" |
25 | 25 | ||
26 | static void __init exynos5_dt_map_io(void) | ||
27 | { | ||
28 | exynos_init_io(NULL, 0); | ||
29 | } | ||
30 | |||
31 | static void __init exynos5_dt_machine_init(void) | 26 | static void __init exynos5_dt_machine_init(void) |
32 | { | 27 | { |
33 | struct device_node *i2c_np; | 28 | struct device_node *i2c_np; |
@@ -77,7 +72,7 @@ static void __init exynos5_reserve(void) | |||
77 | DT_MACHINE_START(EXYNOS5_DT, "SAMSUNG EXYNOS5 (Flattened Device Tree)") | 72 | DT_MACHINE_START(EXYNOS5_DT, "SAMSUNG EXYNOS5 (Flattened Device Tree)") |
78 | /* Maintainer: Kukjin Kim <kgene.kim@samsung.com> */ | 73 | /* Maintainer: Kukjin Kim <kgene.kim@samsung.com> */ |
79 | .smp = smp_ops(exynos_smp_ops), | 74 | .smp = smp_ops(exynos_smp_ops), |
80 | .map_io = exynos5_dt_map_io, | 75 | .map_io = exynos_init_io, |
81 | .init_machine = exynos5_dt_machine_init, | 76 | .init_machine = exynos5_dt_machine_init, |
82 | .init_late = exynos_init_late, | 77 | .init_late = exynos_init_late, |
83 | .init_time = exynos_init_time, | 78 | .init_time = exynos_init_time, |