All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH] ARM: OMAP3630: Add generic machine descriptor
@ 2013-09-20 16:08 ` Nishanth Menon
  0 siblings, 0 replies; 51+ messages in thread
From: Nishanth Menon @ 2013-09-20 16:08 UTC (permalink / raw)
  To: Tony Lindgren, Benoît Cousson
  Cc: linux-arm-kernel, linux-omap, linux-kernel, Nishanth Menon

Add generic machine which can handle inits for omap3630.
Currently beagle-xm would matchup with ti,omap3 which invokes
omap3430_init_early instead of omap3630_init_early

This defeats the purpose of having SoC specific init_early handlers,
example: clock nodes are not the same between 3430 and 3630.

Signed-off-by: Nishanth Menon <nm@ti.com>
---

An alternative approach may be to (for all SoCs):
1. define every SoC entry - ti,omap3430 ti,omap3630...
2. have a generic omap3_init which uses "if (of_machine_is_compatible("ti,omap3630"))"
to invoke the appropriate omap3xxx_init_early.

 arch/arm/mach-omap2/board-generic.c |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c
index 39c7838..cd85b36 100644
--- a/arch/arm/mach-omap2/board-generic.c
+++ b/arch/arm/mach-omap2/board-generic.c
@@ -147,6 +147,24 @@ DT_MACHINE_START(OMAP3_GP_DT, "Generic OMAP3-GP (Flattened Device Tree)")
 	.dt_compat	= omap3_gp_boards_compat,
 	.restart	= omap3xxx_restart,
 MACHINE_END
+
+static const char *omap3630_gp_boards_compat[] __initdata = {
+	"ti,omap3-beagle-xm",
+	NULL,
+};
+
+DT_MACHINE_START(OMAP3630_GP_DT, "Generic OMAP3630-GP (Flattened Device Tree)")
+	.reserve	= omap_reserve,
+	.map_io		= omap3_map_io,
+	.init_early	= omap3630_init_early,
+	.init_irq	= omap_intc_of_init,
+	.handle_irq	= omap3_intc_handle_irq,
+	.init_machine	= omap_generic_init,
+	.init_late	= omap3_init_late,
+	.init_time	= omap3_secure_sync32k_timer_init,
+	.dt_compat	= omap3630_gp_boards_compat,
+	.restart	= omap3xxx_restart,
+MACHINE_END
 #endif
 
 #ifdef CONFIG_SOC_AM33XX
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 51+ messages in thread

end of thread, other threads:[~2013-10-08 18:01 UTC | newest]

Thread overview: 51+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-20 16:08 [RFC PATCH] ARM: OMAP3630: Add generic machine descriptor Nishanth Menon
2013-09-20 16:08 ` Nishanth Menon
2013-09-20 16:08 ` Nishanth Menon
2013-09-20 16:19 ` Olof Johansson
2013-09-20 16:19   ` Olof Johansson
2013-09-20 16:23   ` Felipe Balbi
2013-09-20 16:23     ` Felipe Balbi
2013-09-20 16:23     ` Felipe Balbi
2013-09-20 17:16     ` Olof Johansson
2013-09-20 17:16       ` Olof Johansson
2013-09-20 17:42       ` Felipe Balbi
2013-09-20 17:42         ` Felipe Balbi
2013-09-20 17:42         ` Felipe Balbi
2013-09-20 19:10         ` Nishanth Menon
2013-09-20 19:10           ` Nishanth Menon
2013-09-20 19:10           ` Nishanth Menon
2013-10-07 16:49           ` [PATCH 0/2] ARM: dts: OMAP: standardize SoC specific bindings Nishanth Menon
2013-10-07 16:49             ` Nishanth Menon
2013-10-07 16:49             ` Nishanth Menon
2013-10-07 16:49             ` [PATCH 1/2] Documentation: dt: OMAP: standardize SoC naming definition Nishanth Menon
2013-10-07 16:49               ` Nishanth Menon
2013-10-07 16:49               ` Nishanth Menon
2013-10-07 19:17               ` Tony Lindgren
2013-10-07 19:17                 ` Tony Lindgren
2013-10-07 16:49             ` [PATCH 2/2] ARM: dts: omap3-beagle: use 3630 definitions Nishanth Menon
2013-10-07 16:49               ` Nishanth Menon
2013-10-07 16:49               ` Nishanth Menon
2013-10-07 19:20               ` Tony Lindgren
2013-10-07 19:20                 ` Tony Lindgren
2013-10-07 20:30                 ` [PATCH V2] ARM: OMAP3: Fix hardware detection for omap3630 when booted with device tree Nishanth Menon
2013-10-07 20:30                   ` Nishanth Menon
2013-10-07 20:30                   ` Nishanth Menon
2013-10-07 20:32                   ` Nishanth Menon
2013-10-07 20:32                     ` Nishanth Menon
2013-10-07 20:32                     ` Nishanth Menon
2013-10-07 20:43                 ` [PATCH V3] " Nishanth Menon
2013-10-07 20:43                   ` Nishanth Menon
2013-10-07 20:43                   ` Nishanth Menon
2013-10-08  0:05                   ` Sebastian Reichel
2013-10-08  0:05                     ` Sebastian Reichel
2013-10-08 12:00                     ` Nishanth Menon
2013-10-08 12:00                       ` Nishanth Menon
2013-10-08 17:58                       ` Tony Lindgren
2013-10-08 17:58                         ` Tony Lindgren
2013-10-08 17:59                         ` Nishanth Menon
2013-10-08 17:59                           ` Nishanth Menon
2013-10-08 17:47                 ` [PATCH 2/2] ARM: dts: omap3-beagle: use 3630 definitions Felipe Balbi
2013-10-08 17:47                   ` Felipe Balbi
2013-10-08 18:01                   ` Nishanth Menon
2013-10-08 18:01                     ` Nishanth Menon
2013-10-08 18:01                     ` Nishanth Menon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.