Skip to contentSkip to conversation

ARM: shmobile: break out sh7372 platform devices

PATCH In review Magnus Damm 2 participants 2 messages Oct 13, 2010

Subsystems (4)
lore
Share & tools
lore

Magnus Damm

author maintainer
#0 lore raw

PATCH 1/1 ARM: shmobile: break out sh7372 platform devices

From: Magnus Damm <[email protected]>

This patch introduces sh7372_late_devices which should include all regular processor specific platform devices.

Early platform devices for console and timers should be put on the sh7372_early_devices list, all other devices should be on sh7372_late_devices.

---

 arch/arm/mach-shmobile/setup-sh7372.c |    6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/mach-shmobile/setup-sh7372.c +6 -0
@@ -527,6 +527,9 @@ static struct platform_device *sh7372_ea
 	&scif5_device,
 	&scif6_device,
 	&cmt10_device,
+};
+
+static struct platform_device *sh7372_late_devices[] __initdata = {
 	&iic0_device,
 	&iic1_device,
 	&dma0_device,
@@ -538,6 +541,9 @@ void __init sh7372_add_standard_devices(
 {
 	platform_add_devices(sh7372_early_devices,
 			    ARRAY_SIZE(sh7372_early_devices));
+
+	platform_add_devices(sh7372_late_devices,
+			    ARRAY_SIZE(sh7372_late_devices));
 }
 
 void __init sh7372_add_early_devices(void)
#1 lore raw
Quoted 7 lines · Magnus Damm

This patch introduces sh7372_late_devices which should include all regular processor specific platform devices.

Early platform devices for console and timers should be put on the sh7372_early_devices list, all other devices should be on sh7372_late_devices.

Quoted 3 lines · Magnus Damm

Move SH-Mobile ARM systems over from the legacy "clk" member of struct sh_timer_config to using the device name and clkdev for clock matching.

Quoted 1 line · Magnus Damm

Just use MMCIF as name to match the sh7372 data sheet.

These are all applied to the genesis tree now, thanks.