diff options
author | Kyungmin Park <kyungmin.park@samsung.com> | 2010-10-21 03:28:20 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2010-10-25 03:11:07 -0400 |
commit | 57c1f8713605489b3d4914f68a96564858d7c91d (patch) | |
tree | 86792683a335c845eeb238f24261006c7be86874 /arch/arm/mach-s5pv310 | |
parent | 63612a1f916d2f1b51bed68cd6d90245371430f1 (diff) |
ARM: S5PV310: Remove L2 cache init in machine
Basically, need L2 cache initialize function in ARCH_S5PV310. So it would
be better to move it into ARCH_S5PV310 common part. This patch removes L2
cache initialization code at the each board file.
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Changhwan Youn <chaos.youn@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s5pv310')
-rw-r--r-- | arch/arm/mach-s5pv310/mach-smdkc210.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-s5pv310/mach-smdkv310.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-s5pv310/mach-universal_c210.c | 5 |
3 files changed, 0 insertions, 15 deletions
diff --git a/arch/arm/mach-s5pv310/mach-smdkc210.c b/arch/arm/mach-s5pv310/mach-smdkc210.c index 93d537b8dadf..9f7f77d8a748 100644 --- a/arch/arm/mach-s5pv310/mach-smdkc210.c +++ b/arch/arm/mach-s5pv310/mach-smdkc210.c | |||
@@ -15,7 +15,6 @@ | |||
15 | 15 | ||
16 | #include <asm/mach/arch.h> | 16 | #include <asm/mach/arch.h> |
17 | #include <asm/mach-types.h> | 17 | #include <asm/mach-types.h> |
18 | #include <asm/hardware/cache-l2x0.h> | ||
19 | 18 | ||
20 | #include <plat/regs-serial.h> | 19 | #include <plat/regs-serial.h> |
21 | #include <plat/s5pv310.h> | 20 | #include <plat/s5pv310.h> |
@@ -129,10 +128,6 @@ static void __init smdkc210_machine_init(void) | |||
129 | s3c_sdhci2_set_platdata(&smdkc210_hsmmc2_pdata); | 128 | s3c_sdhci2_set_platdata(&smdkc210_hsmmc2_pdata); |
130 | s3c_sdhci3_set_platdata(&smdkc210_hsmmc3_pdata); | 129 | s3c_sdhci3_set_platdata(&smdkc210_hsmmc3_pdata); |
131 | 130 | ||
132 | #ifdef CONFIG_CACHE_L2X0 | ||
133 | l2x0_init(S5P_VA_L2CC, 1 << 28, 0xffffffff); | ||
134 | #endif | ||
135 | |||
136 | platform_add_devices(smdkc210_devices, ARRAY_SIZE(smdkc210_devices)); | 131 | platform_add_devices(smdkc210_devices, ARRAY_SIZE(smdkc210_devices)); |
137 | } | 132 | } |
138 | 133 | ||
diff --git a/arch/arm/mach-s5pv310/mach-smdkv310.c b/arch/arm/mach-s5pv310/mach-smdkv310.c index 10f80566516d..e350a7582d08 100644 --- a/arch/arm/mach-s5pv310/mach-smdkv310.c +++ b/arch/arm/mach-s5pv310/mach-smdkv310.c | |||
@@ -15,7 +15,6 @@ | |||
15 | 15 | ||
16 | #include <asm/mach/arch.h> | 16 | #include <asm/mach/arch.h> |
17 | #include <asm/mach-types.h> | 17 | #include <asm/mach-types.h> |
18 | #include <asm/hardware/cache-l2x0.h> | ||
19 | 18 | ||
20 | #include <plat/regs-serial.h> | 19 | #include <plat/regs-serial.h> |
21 | #include <plat/s5pv310.h> | 20 | #include <plat/s5pv310.h> |
@@ -129,10 +128,6 @@ static void __init smdkv310_machine_init(void) | |||
129 | s3c_sdhci2_set_platdata(&smdkv310_hsmmc2_pdata); | 128 | s3c_sdhci2_set_platdata(&smdkv310_hsmmc2_pdata); |
130 | s3c_sdhci3_set_platdata(&smdkv310_hsmmc3_pdata); | 129 | s3c_sdhci3_set_platdata(&smdkv310_hsmmc3_pdata); |
131 | 130 | ||
132 | #ifdef CONFIG_CACHE_L2X0 | ||
133 | l2x0_init(S5P_VA_L2CC, 1 << 28, 0xffffffff); | ||
134 | #endif | ||
135 | |||
136 | platform_add_devices(smdkv310_devices, ARRAY_SIZE(smdkv310_devices)); | 131 | platform_add_devices(smdkv310_devices, ARRAY_SIZE(smdkv310_devices)); |
137 | } | 132 | } |
138 | 133 | ||
diff --git a/arch/arm/mach-s5pv310/mach-universal_c210.c b/arch/arm/mach-s5pv310/mach-universal_c210.c index deffeb1be3b9..9ea7836147f8 100644 --- a/arch/arm/mach-s5pv310/mach-universal_c210.c +++ b/arch/arm/mach-s5pv310/mach-universal_c210.c | |||
@@ -16,7 +16,6 @@ | |||
16 | 16 | ||
17 | #include <asm/mach/arch.h> | 17 | #include <asm/mach/arch.h> |
18 | #include <asm/mach-types.h> | 18 | #include <asm/mach-types.h> |
19 | #include <asm/hardware/cache-l2x0.h> | ||
20 | 19 | ||
21 | #include <plat/regs-serial.h> | 20 | #include <plat/regs-serial.h> |
22 | #include <plat/s5pv310.h> | 21 | #include <plat/s5pv310.h> |
@@ -141,10 +140,6 @@ static void __init universal_map_io(void) | |||
141 | 140 | ||
142 | static void __init universal_machine_init(void) | 141 | static void __init universal_machine_init(void) |
143 | { | 142 | { |
144 | #ifdef CONFIG_CACHE_L2X0 | ||
145 | l2x0_init(S5P_VA_L2CC, 1 << 28, 0xffffffff); | ||
146 | #endif | ||
147 | |||
148 | i2c_register_board_info(0, i2c0_devs, ARRAY_SIZE(i2c0_devs)); | 143 | i2c_register_board_info(0, i2c0_devs, ARRAY_SIZE(i2c0_devs)); |
149 | i2c_register_board_info(1, i2c1_devs, ARRAY_SIZE(i2c1_devs)); | 144 | i2c_register_board_info(1, i2c1_devs, ARRAY_SIZE(i2c1_devs)); |
150 | 145 | ||