diff options
author | Magnus Damm <damm@igel.co.jp> | 2009-04-15 06:50:30 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-04-19 00:06:25 -0400 |
commit | 28fde6863e6ed1f4bfb7cef080e67bf439c20628 (patch) | |
tree | d916649a6b835f71e8b1e286a0299a85d198c788 /arch | |
parent | 87a00dc059e3af46303f1f56b0e8df41af988c7b (diff) |
sh: Early Platform Data for SuperH Mobile
Use plat_early_device_setup() to register Early Platform Data
for SuperH Mobile processors.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7343.c | 10 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7366.c | 10 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7722.c | 10 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7723.c | 10 |
4 files changed, 40 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7343.c b/arch/sh/kernel/cpu/sh4a/setup-sh7343.c index c1549382c87c..cb5b4db1ca25 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7343.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7343.c | |||
@@ -234,6 +234,16 @@ static int __init sh7343_devices_setup(void) | |||
234 | } | 234 | } |
235 | __initcall(sh7343_devices_setup); | 235 | __initcall(sh7343_devices_setup); |
236 | 236 | ||
237 | static struct platform_device *sh7343_early_devices[] __initdata = { | ||
238 | &cmt_device, | ||
239 | }; | ||
240 | |||
241 | void __init plat_early_device_setup(void) | ||
242 | { | ||
243 | early_platform_add_devices(sh7343_early_devices, | ||
244 | ARRAY_SIZE(sh7343_early_devices)); | ||
245 | } | ||
246 | |||
237 | enum { | 247 | enum { |
238 | UNUSED = 0, | 248 | UNUSED = 0, |
239 | 249 | ||
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7366.c b/arch/sh/kernel/cpu/sh4a/setup-sh7366.c index 93ecf8ed5c6c..2a771f48e9e0 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7366.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7366.c | |||
@@ -226,6 +226,16 @@ static int __init sh7366_devices_setup(void) | |||
226 | } | 226 | } |
227 | __initcall(sh7366_devices_setup); | 227 | __initcall(sh7366_devices_setup); |
228 | 228 | ||
229 | static struct platform_device *sh7366_early_devices[] __initdata = { | ||
230 | &cmt_device, | ||
231 | }; | ||
232 | |||
233 | void __init plat_early_device_setup(void) | ||
234 | { | ||
235 | early_platform_add_devices(sh7366_early_devices, | ||
236 | ARRAY_SIZE(sh7366_early_devices)); | ||
237 | } | ||
238 | |||
229 | enum { | 239 | enum { |
230 | UNUSED=0, | 240 | UNUSED=0, |
231 | 241 | ||
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c index 0e5d204bc792..8f974d0494c9 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c | |||
@@ -270,6 +270,16 @@ static int __init sh7722_devices_setup(void) | |||
270 | } | 270 | } |
271 | __initcall(sh7722_devices_setup); | 271 | __initcall(sh7722_devices_setup); |
272 | 272 | ||
273 | static struct platform_device *sh7722_early_devices[] __initdata = { | ||
274 | &cmt_device, | ||
275 | }; | ||
276 | |||
277 | void __init plat_early_device_setup(void) | ||
278 | { | ||
279 | early_platform_add_devices(sh7722_early_devices, | ||
280 | ARRAY_SIZE(sh7722_early_devices)); | ||
281 | } | ||
282 | |||
273 | enum { | 283 | enum { |
274 | UNUSED=0, | 284 | UNUSED=0, |
275 | 285 | ||
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7723.c b/arch/sh/kernel/cpu/sh4a/setup-sh7723.c index 5338dacbcfba..21a58d63a00d 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7723.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7723.c | |||
@@ -281,6 +281,16 @@ static int __init sh7723_devices_setup(void) | |||
281 | } | 281 | } |
282 | __initcall(sh7723_devices_setup); | 282 | __initcall(sh7723_devices_setup); |
283 | 283 | ||
284 | static struct platform_device *sh7723_early_devices[] __initdata = { | ||
285 | &cmt_device, | ||
286 | }; | ||
287 | |||
288 | void __init plat_early_device_setup(void) | ||
289 | { | ||
290 | early_platform_add_devices(sh7723_early_devices, | ||
291 | ARRAY_SIZE(sh7723_early_devices)); | ||
292 | } | ||
293 | |||
284 | enum { | 294 | enum { |
285 | UNUSED=0, | 295 | UNUSED=0, |
286 | 296 | ||