diff options
author | Olof Johansson <olof@lixom.net> | 2013-10-07 13:55:23 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2013-10-07 13:55:23 -0400 |
commit | b4e086f6797fd5319cce3df317eec28e34910d1d (patch) | |
tree | 5c4a326852e621f4d2f8e946babda77db7a1dfc3 | |
parent | 933b4f0f34b1e04019477c913a9ddbae705f3de9 (diff) | |
parent | cde214a890f81797a5eee94fffc89c1de21ed991 (diff) |
Merge tag 'renesas-cleanup-for-v3.13' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas into next/cleanup
From Simon Horman:
Renesas ARM based SoC cleanups for v3.13
* Constify platform data and resources of r8a7790 SoC
* Rename to r8a7790_init_delay() as r8a7790_init_early()
- This is in preparation for doing more than just initialising the delay
* Rename r8a73a4_init_delay() as r8a73a4_init_early()
- This is in preparation for doing more than just initialising the delay
* tag 'renesas-cleanup-for-v3.13' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas:
ARM: shmobile: r8a7790: Constify platform data and resources
ARM: shmobile: Rename to r8a7790_init_early()
ARM: shmobile: Rename to r8a73a4_init_early()
Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r-- | arch/arm/mach-shmobile/board-ape6evm-reference.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/board-ape6evm.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/board-lager-reference.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/board-lager.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/r8a73a4.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/r8a7790.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/setup-r8a73a4.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/setup-r8a7790.c | 25 |
8 files changed, 21 insertions, 20 deletions
diff --git a/arch/arm/mach-shmobile/board-ape6evm-reference.c b/arch/arm/mach-shmobile/board-ape6evm-reference.c index a23fa714f7ac..3276afcf3cc9 100644 --- a/arch/arm/mach-shmobile/board-ape6evm-reference.c +++ b/arch/arm/mach-shmobile/board-ape6evm-reference.c | |||
@@ -57,7 +57,7 @@ static const char *ape6evm_boards_compat_dt[] __initdata = { | |||
57 | }; | 57 | }; |
58 | 58 | ||
59 | DT_MACHINE_START(APE6EVM_DT, "ape6evm") | 59 | DT_MACHINE_START(APE6EVM_DT, "ape6evm") |
60 | .init_early = r8a73a4_init_delay, | 60 | .init_early = r8a73a4_init_early, |
61 | .init_machine = ape6evm_add_standard_devices, | 61 | .init_machine = ape6evm_add_standard_devices, |
62 | .dt_compat = ape6evm_boards_compat_dt, | 62 | .dt_compat = ape6evm_boards_compat_dt, |
63 | MACHINE_END | 63 | MACHINE_END |
diff --git a/arch/arm/mach-shmobile/board-ape6evm.c b/arch/arm/mach-shmobile/board-ape6evm.c index 00e3add8e658..1e9313a419ef 100644 --- a/arch/arm/mach-shmobile/board-ape6evm.c +++ b/arch/arm/mach-shmobile/board-ape6evm.c | |||
@@ -240,7 +240,7 @@ static const char *ape6evm_boards_compat_dt[] __initdata = { | |||
240 | }; | 240 | }; |
241 | 241 | ||
242 | DT_MACHINE_START(APE6EVM_DT, "ape6evm") | 242 | DT_MACHINE_START(APE6EVM_DT, "ape6evm") |
243 | .init_early = r8a73a4_init_delay, | 243 | .init_early = r8a73a4_init_early, |
244 | .init_machine = ape6evm_add_standard_devices, | 244 | .init_machine = ape6evm_add_standard_devices, |
245 | .dt_compat = ape6evm_boards_compat_dt, | 245 | .dt_compat = ape6evm_boards_compat_dt, |
246 | MACHINE_END | 246 | MACHINE_END |
diff --git a/arch/arm/mach-shmobile/board-lager-reference.c b/arch/arm/mach-shmobile/board-lager-reference.c index 9c316a1b2e32..2856f51ff8a6 100644 --- a/arch/arm/mach-shmobile/board-lager-reference.c +++ b/arch/arm/mach-shmobile/board-lager-reference.c | |||
@@ -38,7 +38,7 @@ static const char *lager_boards_compat_dt[] __initdata = { | |||
38 | }; | 38 | }; |
39 | 39 | ||
40 | DT_MACHINE_START(LAGER_DT, "lager") | 40 | DT_MACHINE_START(LAGER_DT, "lager") |
41 | .init_early = r8a7790_init_delay, | 41 | .init_early = r8a7790_init_early, |
42 | .init_machine = lager_add_standard_devices, | 42 | .init_machine = lager_add_standard_devices, |
43 | .init_time = r8a7790_timer_init, | 43 | .init_time = r8a7790_timer_init, |
44 | .dt_compat = lager_boards_compat_dt, | 44 | .dt_compat = lager_boards_compat_dt, |
diff --git a/arch/arm/mach-shmobile/board-lager.c b/arch/arm/mach-shmobile/board-lager.c index 5930af8d434f..6569491839cf 100644 --- a/arch/arm/mach-shmobile/board-lager.c +++ b/arch/arm/mach-shmobile/board-lager.c | |||
@@ -186,7 +186,7 @@ static const char *lager_boards_compat_dt[] __initdata = { | |||
186 | }; | 186 | }; |
187 | 187 | ||
188 | DT_MACHINE_START(LAGER_DT, "lager") | 188 | DT_MACHINE_START(LAGER_DT, "lager") |
189 | .init_early = r8a7790_init_delay, | 189 | .init_early = r8a7790_init_early, |
190 | .init_time = r8a7790_timer_init, | 190 | .init_time = r8a7790_timer_init, |
191 | .init_machine = lager_init, | 191 | .init_machine = lager_init, |
192 | .dt_compat = lager_boards_compat_dt, | 192 | .dt_compat = lager_boards_compat_dt, |
diff --git a/arch/arm/mach-shmobile/include/mach/r8a73a4.h b/arch/arm/mach-shmobile/include/mach/r8a73a4.h index f3a9b702da56..5214338a6a47 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a73a4.h +++ b/arch/arm/mach-shmobile/include/mach/r8a73a4.h | |||
@@ -5,6 +5,6 @@ void r8a73a4_add_standard_devices(void); | |||
5 | void r8a73a4_add_dt_devices(void); | 5 | void r8a73a4_add_dt_devices(void); |
6 | void r8a73a4_clock_init(void); | 6 | void r8a73a4_clock_init(void); |
7 | void r8a73a4_pinmux_init(void); | 7 | void r8a73a4_pinmux_init(void); |
8 | void r8a73a4_init_delay(void); | 8 | void r8a73a4_init_early(void); |
9 | 9 | ||
10 | #endif /* __ASM_R8A73A4_H__ */ | 10 | #endif /* __ASM_R8A73A4_H__ */ |
diff --git a/arch/arm/mach-shmobile/include/mach/r8a7790.h b/arch/arm/mach-shmobile/include/mach/r8a7790.h index 788d55952091..177a8372abb7 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a7790.h +++ b/arch/arm/mach-shmobile/include/mach/r8a7790.h | |||
@@ -5,7 +5,7 @@ void r8a7790_add_standard_devices(void); | |||
5 | void r8a7790_add_dt_devices(void); | 5 | void r8a7790_add_dt_devices(void); |
6 | void r8a7790_clock_init(void); | 6 | void r8a7790_clock_init(void); |
7 | void r8a7790_pinmux_init(void); | 7 | void r8a7790_pinmux_init(void); |
8 | void r8a7790_init_delay(void); | 8 | void r8a7790_init_early(void); |
9 | void r8a7790_timer_init(void); | 9 | void r8a7790_timer_init(void); |
10 | 10 | ||
11 | #define MD(nr) BIT(nr) | 11 | #define MD(nr) BIT(nr) |
diff --git a/arch/arm/mach-shmobile/setup-r8a73a4.c b/arch/arm/mach-shmobile/setup-r8a73a4.c index 89491700afb7..53a896275cae 100644 --- a/arch/arm/mach-shmobile/setup-r8a73a4.c +++ b/arch/arm/mach-shmobile/setup-r8a73a4.c | |||
@@ -207,7 +207,7 @@ void __init r8a73a4_add_standard_devices(void) | |||
207 | r8a73a4_register_thermal(); | 207 | r8a73a4_register_thermal(); |
208 | } | 208 | } |
209 | 209 | ||
210 | void __init r8a73a4_init_delay(void) | 210 | void __init r8a73a4_init_early(void) |
211 | { | 211 | { |
212 | #ifndef CONFIG_ARM_ARCH_TIMER | 212 | #ifndef CONFIG_ARM_ARCH_TIMER |
213 | shmobile_setup_delay(1500, 2, 4); /* Cortex-A15 @ 1500MHz */ | 213 | shmobile_setup_delay(1500, 2, 4); /* Cortex-A15 @ 1500MHz */ |
@@ -222,7 +222,7 @@ static const char *r8a73a4_boards_compat_dt[] __initdata = { | |||
222 | }; | 222 | }; |
223 | 223 | ||
224 | DT_MACHINE_START(R8A73A4_DT, "Generic R8A73A4 (Flattened Device Tree)") | 224 | DT_MACHINE_START(R8A73A4_DT, "Generic R8A73A4 (Flattened Device Tree)") |
225 | .init_early = r8a73a4_init_delay, | 225 | .init_early = r8a73a4_init_early, |
226 | .dt_compat = r8a73a4_boards_compat_dt, | 226 | .dt_compat = r8a73a4_boards_compat_dt, |
227 | MACHINE_END | 227 | MACHINE_END |
228 | #endif /* CONFIG_USE_OF */ | 228 | #endif /* CONFIG_USE_OF */ |
diff --git a/arch/arm/mach-shmobile/setup-r8a7790.c b/arch/arm/mach-shmobile/setup-r8a7790.c index d0f5c9f9349a..e0d29a265c2d 100644 --- a/arch/arm/mach-shmobile/setup-r8a7790.c +++ b/arch/arm/mach-shmobile/setup-r8a7790.c | |||
@@ -31,17 +31,18 @@ | |||
31 | #include <mach/r8a7790.h> | 31 | #include <mach/r8a7790.h> |
32 | #include <asm/mach/arch.h> | 32 | #include <asm/mach/arch.h> |
33 | 33 | ||
34 | static struct resource pfc_resources[] __initdata = { | 34 | static const struct resource pfc_resources[] __initconst = { |
35 | DEFINE_RES_MEM(0xe6060000, 0x250), | 35 | DEFINE_RES_MEM(0xe6060000, 0x250), |
36 | }; | 36 | }; |
37 | 37 | ||
38 | #define R8A7790_GPIO(idx) \ | 38 | #define R8A7790_GPIO(idx) \ |
39 | static struct resource r8a7790_gpio##idx##_resources[] __initdata = { \ | 39 | static const struct resource r8a7790_gpio##idx##_resources[] __initconst = { \ |
40 | DEFINE_RES_MEM(0xe6050000 + 0x1000 * (idx), 0x50), \ | 40 | DEFINE_RES_MEM(0xe6050000 + 0x1000 * (idx), 0x50), \ |
41 | DEFINE_RES_IRQ(gic_spi(4 + (idx))), \ | 41 | DEFINE_RES_IRQ(gic_spi(4 + (idx))), \ |
42 | }; \ | 42 | }; \ |
43 | \ | 43 | \ |
44 | static struct gpio_rcar_config r8a7790_gpio##idx##_platform_data __initdata = { \ | 44 | static const struct gpio_rcar_config \ |
45 | r8a7790_gpio##idx##_platform_data __initconst = { \ | ||
45 | .gpio_base = 32 * (idx), \ | 46 | .gpio_base = 32 * (idx), \ |
46 | .irq_base = 0, \ | 47 | .irq_base = 0, \ |
47 | .number_of_pins = 32, \ | 48 | .number_of_pins = 32, \ |
@@ -112,7 +113,7 @@ void __init r8a7790_pinmux_init(void) | |||
112 | enum { SCIFA0, SCIFA1, SCIFB0, SCIFB1, SCIFB2, SCIFA2, SCIF0, SCIF1, | 113 | enum { SCIFA0, SCIFA1, SCIFB0, SCIFB1, SCIFB2, SCIFA2, SCIF0, SCIF1, |
113 | HSCIF0, HSCIF1 }; | 114 | HSCIF0, HSCIF1 }; |
114 | 115 | ||
115 | static struct plat_sci_port scif[] __initdata = { | 116 | static const struct plat_sci_port scif[] __initconst = { |
116 | SCIFA_DATA(SCIFA0, 0xe6c40000, gic_spi(144)), /* SCIFA0 */ | 117 | SCIFA_DATA(SCIFA0, 0xe6c40000, gic_spi(144)), /* SCIFA0 */ |
117 | SCIFA_DATA(SCIFA1, 0xe6c50000, gic_spi(145)), /* SCIFA1 */ | 118 | SCIFA_DATA(SCIFA1, 0xe6c50000, gic_spi(145)), /* SCIFA1 */ |
118 | SCIFB_DATA(SCIFB0, 0xe6c20000, gic_spi(148)), /* SCIFB0 */ | 119 | SCIFB_DATA(SCIFB0, 0xe6c20000, gic_spi(148)), /* SCIFB0 */ |
@@ -131,11 +132,11 @@ static inline void r8a7790_register_scif(int idx) | |||
131 | sizeof(struct plat_sci_port)); | 132 | sizeof(struct plat_sci_port)); |
132 | } | 133 | } |
133 | 134 | ||
134 | static struct renesas_irqc_config irqc0_data __initdata = { | 135 | static const struct renesas_irqc_config irqc0_data __initconst = { |
135 | .irq_base = irq_pin(0), /* IRQ0 -> IRQ3 */ | 136 | .irq_base = irq_pin(0), /* IRQ0 -> IRQ3 */ |
136 | }; | 137 | }; |
137 | 138 | ||
138 | static struct resource irqc0_resources[] __initdata = { | 139 | static const struct resource irqc0_resources[] __initconst = { |
139 | DEFINE_RES_MEM(0xe61c0000, 0x200), /* IRQC Event Detector Block_0 */ | 140 | DEFINE_RES_MEM(0xe61c0000, 0x200), /* IRQC Event Detector Block_0 */ |
140 | DEFINE_RES_IRQ(gic_spi(0)), /* IRQ0 */ | 141 | DEFINE_RES_IRQ(gic_spi(0)), /* IRQ0 */ |
141 | DEFINE_RES_IRQ(gic_spi(1)), /* IRQ1 */ | 142 | DEFINE_RES_IRQ(gic_spi(1)), /* IRQ1 */ |
@@ -150,7 +151,7 @@ static struct resource irqc0_resources[] __initdata = { | |||
150 | &irqc##idx##_data, \ | 151 | &irqc##idx##_data, \ |
151 | sizeof(struct renesas_irqc_config)) | 152 | sizeof(struct renesas_irqc_config)) |
152 | 153 | ||
153 | static struct resource thermal_resources[] __initdata = { | 154 | static const struct resource thermal_resources[] __initconst = { |
154 | DEFINE_RES_MEM(0xe61f0000, 0x14), | 155 | DEFINE_RES_MEM(0xe61f0000, 0x14), |
155 | DEFINE_RES_MEM(0xe61f0100, 0x38), | 156 | DEFINE_RES_MEM(0xe61f0100, 0x38), |
156 | DEFINE_RES_IRQ(gic_spi(69)), | 157 | DEFINE_RES_IRQ(gic_spi(69)), |
@@ -161,13 +162,13 @@ static struct resource thermal_resources[] __initdata = { | |||
161 | thermal_resources, \ | 162 | thermal_resources, \ |
162 | ARRAY_SIZE(thermal_resources)) | 163 | ARRAY_SIZE(thermal_resources)) |
163 | 164 | ||
164 | static struct sh_timer_config cmt00_platform_data __initdata = { | 165 | static const struct sh_timer_config cmt00_platform_data __initconst = { |
165 | .name = "CMT00", | 166 | .name = "CMT00", |
166 | .timer_bit = 0, | 167 | .timer_bit = 0, |
167 | .clockevent_rating = 80, | 168 | .clockevent_rating = 80, |
168 | }; | 169 | }; |
169 | 170 | ||
170 | static struct resource cmt00_resources[] __initdata = { | 171 | static const struct resource cmt00_resources[] __initconst = { |
171 | DEFINE_RES_MEM(0xffca0510, 0x0c), | 172 | DEFINE_RES_MEM(0xffca0510, 0x0c), |
172 | DEFINE_RES_MEM(0xffca0500, 0x04), | 173 | DEFINE_RES_MEM(0xffca0500, 0x04), |
173 | DEFINE_RES_IRQ(gic_spi(142)), /* CMT0_0 */ | 174 | DEFINE_RES_IRQ(gic_spi(142)), /* CMT0_0 */ |
@@ -267,7 +268,7 @@ void __init r8a7790_timer_init(void) | |||
267 | clocksource_of_init(); | 268 | clocksource_of_init(); |
268 | } | 269 | } |
269 | 270 | ||
270 | void __init r8a7790_init_delay(void) | 271 | void __init r8a7790_init_early(void) |
271 | { | 272 | { |
272 | #ifndef CONFIG_ARM_ARCH_TIMER | 273 | #ifndef CONFIG_ARM_ARCH_TIMER |
273 | shmobile_setup_delay(1300, 2, 4); /* Cortex-A15 @ 1300MHz */ | 274 | shmobile_setup_delay(1300, 2, 4); /* Cortex-A15 @ 1300MHz */ |
@@ -276,13 +277,13 @@ void __init r8a7790_init_delay(void) | |||
276 | 277 | ||
277 | #ifdef CONFIG_USE_OF | 278 | #ifdef CONFIG_USE_OF |
278 | 279 | ||
279 | static const char *r8a7790_boards_compat_dt[] __initdata = { | 280 | static const char * const r8a7790_boards_compat_dt[] __initconst = { |
280 | "renesas,r8a7790", | 281 | "renesas,r8a7790", |
281 | NULL, | 282 | NULL, |
282 | }; | 283 | }; |
283 | 284 | ||
284 | DT_MACHINE_START(R8A7790_DT, "Generic R8A7790 (Flattened Device Tree)") | 285 | DT_MACHINE_START(R8A7790_DT, "Generic R8A7790 (Flattened Device Tree)") |
285 | .init_early = r8a7790_init_delay, | 286 | .init_early = r8a7790_init_early, |
286 | .init_time = r8a7790_timer_init, | 287 | .init_time = r8a7790_timer_init, |
287 | .dt_compat = r8a7790_boards_compat_dt, | 288 | .dt_compat = r8a7790_boards_compat_dt, |
288 | MACHINE_END | 289 | MACHINE_END |