[PATCH 1/2] arm:omap2:board-generic: Add DT support for AM33xx devices
Hiremath, Vaibhav
hvaibhav at ti.com
Mon Jan 23 03:11:40 EST 2012
On Thu, Jan 19, 2012 at 02:28:28, Grant Likely wrote:
> On Wed, Jan 18, 2012 at 12:43:58PM +0530, Vaibhav Hiremath wrote:
> > Although we consider am33xx device under omap34xx family of devices,
> > there is indeed difference between them, for example,
> >
> > - Initial required mapping (->map_io)
> > - Early init (->init_early)
> > Here, the whole sequence/data is different than omap3,
> > For example, clock/hwmod/power/voltage data.
> > - clock event/source timer (name and instances)
> >
> > So, this patch adds seperate machine descriptor for AM33XX family
> > of devices in board-generic.c file.
> >
> > Signed-off-by: Vaibhav Hiremath <hvaibhav at ti.com>
> > CC: Benoit Cousson <b-cousson at ti.com>
> > Cc: Grant Likely <grant.likely at secretlab.ca>
> > Cc: Tony Lindgren <tony at atomide.com>
> > ---
> > Tested it on AM335x-EVM, AM37xEVM and AM3517EVM.
> >
> > arch/arm/mach-omap2/board-generic.c | 19 +++++++++++++++++++
> > 1 files changed, 19 insertions(+), 0 deletions(-)
> >
> > diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c
> > index f7b4b24..2faecc8 100644
> > --- a/arch/arm/mach-omap2/board-generic.c
> > +++ b/arch/arm/mach-omap2/board-generic.c
> > @@ -106,6 +106,25 @@ DT_MACHINE_START(OMAP3_DT, "Generic OMAP3 (Flattened Device Tree)")
> > MACHINE_END
> > #endif
> >
> > +#if defined(CONFIG_SOC_OMAPAM33XX)
> > +static const char *am33xx_boards_compat[] __initdata = {
> > + "ti,am33xx",
>
> Don't forget to add the new compatible values to
> Documentation/device-tree/bindings.
>
> > + NULL,
> > +};
> > +
> > +DT_MACHINE_START(AM33XX_DT, "Generic AM33XX (Flattened Device Tree)")
> > + .atag_offset = 0x100,
>
> Unneeded for DT booting.
>
> Otherwise, you can add:
>
> Acked-by: Grant Likely <grant.likely at secretlab.ca>
>
Benoit,
Can you please merge this patch-series for next pull request?
Thanks,
Vaibhav
> > + .reserve = omap_reserve,
> > + .map_io = am33xx_map_io,
> > + .init_early = am33xx_init_early,
> > + .init_irq = omap_init_irq,
> > + .handle_irq = omap3_intc_handle_irq,
> > + .init_machine = omap_generic_init,
> > + .timer = &omap3_am33xx_timer,
> > + .dt_compat = am33xx_boards_compat,
> > +MACHINE_END
> > +#endif
> > +
> > #if defined(CONFIG_ARCH_OMAP4)
> > static const char *omap4_boards_compat[] __initdata = {
> > "ti,omap4",
> > --
> > 1.7.0.4
> >
>
More information about the linux-arm-kernel
mailing list