Skip to content

Commit 28fde68

Browse files
Magnus Dammpmundt
authored andcommitted
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 <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
1 parent 87a00dc commit 28fde68

File tree

4 files changed

+40
-0
lines changed

4 files changed

+40
-0
lines changed

arch/sh/kernel/cpu/sh4a/setup-sh7343.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,16 @@ static int __init sh7343_devices_setup(void)
234234
}
235235
__initcall(sh7343_devices_setup);
236236

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+
237247
enum {
238248
UNUSED = 0,
239249

arch/sh/kernel/cpu/sh4a/setup-sh7366.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,16 @@ static int __init sh7366_devices_setup(void)
226226
}
227227
__initcall(sh7366_devices_setup);
228228

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+
229239
enum {
230240
UNUSED=0,
231241

arch/sh/kernel/cpu/sh4a/setup-sh7722.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,16 @@ static int __init sh7722_devices_setup(void)
270270
}
271271
__initcall(sh7722_devices_setup);
272272

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+
273283
enum {
274284
UNUSED=0,
275285

arch/sh/kernel/cpu/sh4a/setup-sh7723.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,16 @@ static int __init sh7723_devices_setup(void)
281281
}
282282
__initcall(sh7723_devices_setup);
283283

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+
284294
enum {
285295
UNUSED=0,
286296

0 commit comments

Comments
 (0)