* [PATCH] ARM: OMAP2+: am33xx: Add AM335XEVM machine support
@ 2012-05-10 19:08 Vaibhav Hiremath
2012-05-29 6:12 ` Hiremath, Vaibhav
0 siblings, 1 reply; 5+ messages in thread
From: Vaibhav Hiremath @ 2012-05-10 19:08 UTC (permalink / raw)
To: linux-omap
Cc: linux-arm-kernel, Afzal Mohammed, Vaibhav Hiremath, Tony Lindgren,
Benoit Cousson, Paul Walmsley
From: Afzal Mohammed <afzal@ti.com>
This patch adds minimal support for AM335X machine init.
During last merge window, two separate patches supporting am33xx
machine init had been submitted,
1. Link to earlier Baseport patch submission (Legacy):
http://www.mail-archive.com/linux-omap@vger.kernel.org/msg59325.html
2. Link to earlier DT based machine init support patch submission:
http://www.mail-archive.com/linux-omap@vger.kernel.org/msg61398.html
And both had got accepted at that time, but got missed during
merge window.
But now, since we have taken decision to make am33xx as a separate
class and not to follow omap3 family, these patches needs to changes
accordingly (only changes),
- Combine both the patches, since early init and timer init
used in board-generic.c file requires them.
- Remove dependency on AM3517EVM, and only use DT approach
for machine init.
- Change the config option (as changed recently)
CONFIG_SOC_OMAPAM33XX --> CONFIG_SOC_AM33XX
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Benoit Cousson <b-cousson@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
---
arch/arm/mach-omap2/board-generic.c | 18 ++++++++++++++++++
arch/arm/mach-omap2/common.h | 2 ++
arch/arm/mach-omap2/io.c | 10 ++++++++++
arch/arm/mach-omap2/irq.c | 2 +-
arch/arm/mach-omap2/timer.c | 5 +++++
5 files changed, 36 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c
index 098d183..7dcd342 100644
--- a/arch/arm/mach-omap2/board-generic.c
+++ b/arch/arm/mach-omap2/board-generic.c
@@ -129,6 +129,24 @@ DT_MACHINE_START(OMAP3_DT, "Generic OMAP3 (Flattened Device Tree)")
MACHINE_END
#endif
+#ifdef CONFIG_SOC_AM33XX
+static const char *am33xx_boards_compat[] __initdata = {
+ "ti,am33xx",
+ NULL,
+};
+
+DT_MACHINE_START(AM33XX_DT, "Generic AM33XX (Flattened Device Tree)")
+ .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
+
#ifdef CONFIG_ARCH_OMAP4
static struct twl4030_platform_data sdp4430_twldata = {
.irq_base = TWL6030_IRQ_BASE,
diff --git a/arch/arm/mach-omap2/common.h b/arch/arm/mach-omap2/common.h
index 267540b..aaab1d5 100644
--- a/arch/arm/mach-omap2/common.h
+++ b/arch/arm/mach-omap2/common.h
@@ -83,6 +83,7 @@ extern void omap2_init_common_infrastructure(void);
extern struct sys_timer omap2_timer;
extern struct sys_timer omap3_timer;
extern struct sys_timer omap3_secure_timer;
+extern struct sys_timer omap3_am33xx_timer;
extern struct sys_timer omap4_timer;
void omap2420_init_early(void);
@@ -93,6 +94,7 @@ void omap3630_init_early(void);
void omap3_init_early(void); /* Do not use this one */
void am35xx_init_early(void);
void ti81xx_init_early(void);
+void am33xx_init_early(void);
void omap4430_init_early(void);
void omap_prcm_restart(char, const char *);
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c
index bafa592..df4d119 100644
--- a/arch/arm/mach-omap2/io.c
+++ b/arch/arm/mach-omap2/io.c
@@ -438,6 +438,16 @@ void __init ti81xx_init_early(void)
}
#endif
+#ifdef CONFIG_SOC_AM33XX
+void __init am33xx_init_early(void)
+{
+ omap2_set_globals_am33xx();
+ omap3xxx_check_revision();
+ ti81xx_check_features();
+ omap_common_init_early();
+}
+#endif
+
#ifdef CONFIG_ARCH_OMAP4
void __init omap4430_init_early(void)
{
diff --git a/arch/arm/mach-omap2/irq.c b/arch/arm/mach-omap2/irq.c
index 34496fe..3ce9312 100644
--- a/arch/arm/mach-omap2/irq.c
+++ b/arch/arm/mach-omap2/irq.c
@@ -278,7 +278,7 @@ int __init omap_intc_of_init(struct device_node *node,
return 0;
}
-#ifdef CONFIG_ARCH_OMAP3
+#if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_SOC_AM33XX)
static struct omap3_intc_regs intc_context[ARRAY_SIZE(irq_banks)];
void omap_intc_save_context(void)
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c
index ecec873..61dbe41 100644
--- a/arch/arm/mach-omap2/timer.c
+++ b/arch/arm/mach-omap2/timer.c
@@ -332,6 +332,11 @@ OMAP_SYS_TIMER_INIT(3_secure, OMAP3_SECURE_TIMER, OMAP3_CLKEV_SOURCE,
OMAP_SYS_TIMER(3_secure)
#endif
+#ifdef CONFIG_SOC_AM33XX
+OMAP_SYS_TIMER_INIT(3_am33xx, 1, OMAP4_MPU_SOURCE, 2, OMAP4_MPU_SOURCE)
+OMAP_SYS_TIMER(3_am33xx)
+#endif
+
#ifdef CONFIG_ARCH_OMAP4
#ifdef CONFIG_LOCAL_TIMERS
static DEFINE_TWD_LOCAL_TIMER(twd_local_timer,
--
1.7.0.4
^ permalink raw reply related [flat|nested] 5+ messages in thread* RE: [PATCH] ARM: OMAP2+: am33xx: Add AM335XEVM machine support
2012-05-10 19:08 [PATCH] ARM: OMAP2+: am33xx: Add AM335XEVM machine support Vaibhav Hiremath
@ 2012-05-29 6:12 ` Hiremath, Vaibhav
2012-06-05 7:53 ` Tony Lindgren
0 siblings, 1 reply; 5+ messages in thread
From: Hiremath, Vaibhav @ 2012-05-29 6:12 UTC (permalink / raw)
To: Hiremath, Vaibhav, linux-omap@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org, Mohammed, Afzal,
Tony Lindgren, Cousson, Benoit, Paul Walmsley
On Fri, May 11, 2012 at 00:38:49, Hiremath, Vaibhav wrote:
> From: Afzal Mohammed <afzal@ti.com>
>
> This patch adds minimal support for AM335X machine init.
>
> During last merge window, two separate patches supporting am33xx
> machine init had been submitted,
>
> 1. Link to earlier Baseport patch submission (Legacy):
> http://www.mail-archive.com/linux-omap@vger.kernel.org/msg59325.html
> 2. Link to earlier DT based machine init support patch submission:
> http://www.mail-archive.com/linux-omap@vger.kernel.org/msg61398.html
>
> And both had got accepted at that time, but got missed during
> merge window.
>
> But now, since we have taken decision to make am33xx as a separate
> class and not to follow omap3 family, these patches needs to changes
> accordingly (only changes),
>
> - Combine both the patches, since early init and timer init
> used in board-generic.c file requires them.
> - Remove dependency on AM3517EVM, and only use DT approach
> for machine init.
> - Change the config option (as changed recently)
> CONFIG_SOC_OMAPAM33XX --> CONFIG_SOC_AM33XX
>
> Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
> Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
> Cc: Tony Lindgren <tony@atomide.com>
> Cc: Benoit Cousson <b-cousson@ti.com>
> Cc: Paul Walmsley <paul@pwsan.com>
> ---
> arch/arm/mach-omap2/board-generic.c | 18 ++++++++++++++++++
> arch/arm/mach-omap2/common.h | 2 ++
> arch/arm/mach-omap2/io.c | 10 ++++++++++
> arch/arm/mach-omap2/irq.c | 2 +-
> arch/arm/mach-omap2/timer.c | 5 +++++
> 5 files changed, 36 insertions(+), 1 deletions(-)
>
Tony,
Can this be merged now???
Thanks,
Vaibhav
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: OMAP2+: am33xx: Add AM335XEVM machine support
2012-05-29 6:12 ` Hiremath, Vaibhav
@ 2012-06-05 7:53 ` Tony Lindgren
2012-06-05 8:00 ` Hiremath, Vaibhav
0 siblings, 1 reply; 5+ messages in thread
From: Tony Lindgren @ 2012-06-05 7:53 UTC (permalink / raw)
To: Hiremath, Vaibhav
Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
Mohammed, Afzal, Cousson, Benoit, Paul Walmsley
* Hiremath, Vaibhav <hvaibhav@ti.com> [120528 23:17]:
> On Fri, May 11, 2012 at 00:38:49, Hiremath, Vaibhav wrote:
> > From: Afzal Mohammed <afzal@ti.com>
> >
> > This patch adds minimal support for AM335X machine init.
> >
> > During last merge window, two separate patches supporting am33xx
> > machine init had been submitted,
> >
> > 1. Link to earlier Baseport patch submission (Legacy):
> > http://www.mail-archive.com/linux-omap@vger.kernel.org/msg59325.html
> > 2. Link to earlier DT based machine init support patch submission:
> > http://www.mail-archive.com/linux-omap@vger.kernel.org/msg61398.html
> >
> > And both had got accepted at that time, but got missed during
> > merge window.
> >
> > But now, since we have taken decision to make am33xx as a separate
> > class and not to follow omap3 family, these patches needs to changes
> > accordingly (only changes),
> >
> > - Combine both the patches, since early init and timer init
> > used in board-generic.c file requires them.
> > - Remove dependency on AM3517EVM, and only use DT approach
> > for machine init.
> > - Change the config option (as changed recently)
> > CONFIG_SOC_OMAPAM33XX --> CONFIG_SOC_AM33XX
> >
> > Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
> > Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
> > Cc: Tony Lindgren <tony@atomide.com>
> > Cc: Benoit Cousson <b-cousson@ti.com>
> > Cc: Paul Walmsley <paul@pwsan.com>
> > ---
> > arch/arm/mach-omap2/board-generic.c | 18 ++++++++++++++++++
> > arch/arm/mach-omap2/common.h | 2 ++
> > arch/arm/mach-omap2/io.c | 10 ++++++++++
> > arch/arm/mach-omap2/irq.c | 2 +-
> > arch/arm/mach-omap2/timer.c | 5 +++++
> > 5 files changed, 36 insertions(+), 1 deletions(-)
> >
>
> Tony,
>
> Can this be merged now???
Adding this too to devel-am33xx branch.
Tony
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH] ARM: OMAP2+: am33xx: Add AM335XEVM machine support
2012-06-05 7:53 ` Tony Lindgren
@ 2012-06-05 8:00 ` Hiremath, Vaibhav
2012-06-05 8:02 ` Tony Lindgren
0 siblings, 1 reply; 5+ messages in thread
From: Hiremath, Vaibhav @ 2012-06-05 8:00 UTC (permalink / raw)
To: Tony Lindgren
Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
Mohammed, Afzal, Cousson, Benoit, Paul Walmsley
On Tue, Jun 05, 2012 at 13:23:44, Tony Lindgren wrote:
> * Hiremath, Vaibhav <hvaibhav@ti.com> [120528 23:17]:
> > On Fri, May 11, 2012 at 00:38:49, Hiremath, Vaibhav wrote:
> > > From: Afzal Mohammed <afzal@ti.com>
> > >
> > > This patch adds minimal support for AM335X machine init.
> > >
> > > During last merge window, two separate patches supporting am33xx
> > > machine init had been submitted,
> > >
> > > 1. Link to earlier Baseport patch submission (Legacy):
> > > http://www.mail-archive.com/linux-omap@vger.kernel.org/msg59325.html
> > > 2. Link to earlier DT based machine init support patch submission:
> > > http://www.mail-archive.com/linux-omap@vger.kernel.org/msg61398.html
> > >
> > > And both had got accepted at that time, but got missed during
> > > merge window.
> > >
> > > But now, since we have taken decision to make am33xx as a separate
> > > class and not to follow omap3 family, these patches needs to changes
> > > accordingly (only changes),
> > >
> > > - Combine both the patches, since early init and timer init
> > > used in board-generic.c file requires them.
> > > - Remove dependency on AM3517EVM, and only use DT approach
> > > for machine init.
> > > - Change the config option (as changed recently)
> > > CONFIG_SOC_OMAPAM33XX --> CONFIG_SOC_AM33XX
> > >
> > > Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
> > > Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
> > > Cc: Tony Lindgren <tony@atomide.com>
> > > Cc: Benoit Cousson <b-cousson@ti.com>
> > > Cc: Paul Walmsley <paul@pwsan.com>
> > > ---
> > > arch/arm/mach-omap2/board-generic.c | 18 ++++++++++++++++++
> > > arch/arm/mach-omap2/common.h | 2 ++
> > > arch/arm/mach-omap2/io.c | 10 ++++++++++
> > > arch/arm/mach-omap2/irq.c | 2 +-
> > > arch/arm/mach-omap2/timer.c | 5 +++++
> > > 5 files changed, 36 insertions(+), 1 deletions(-)
> > >
> >
> > Tony,
> >
> > Can this be merged now???
>
> Adding this too to devel-am33xx branch.
>
Thanks Tony,
Also, request you to add it as part of next pull request to the linux-next,
at early rc cycle itself.
Paul,
Can you also send a pull request for AM33XX voltagedomain, cm, clockdomain,
prm, powerdomain patches?
Also request you to review clock-tree and hwmod changes, so that, they can
also be merged within time.
>From clocktree perspective, I believe now I have to migrate to Rajendr's
common-clock framework changes, so let me finish that and send new version.
Thanks,
Vaibhav
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: OMAP2+: am33xx: Add AM335XEVM machine support
2012-06-05 8:00 ` Hiremath, Vaibhav
@ 2012-06-05 8:02 ` Tony Lindgren
0 siblings, 0 replies; 5+ messages in thread
From: Tony Lindgren @ 2012-06-05 8:02 UTC (permalink / raw)
To: Hiremath, Vaibhav
Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
Mohammed, Afzal, Cousson, Benoit, Paul Walmsley
* Hiremath, Vaibhav <hvaibhav@ti.com> [120605 01:04]:
> On Tue, Jun 05, 2012 at 13:23:44, Tony Lindgren wrote:
> >
> > Adding this too to devel-am33xx branch.
> >
>
> Thanks Tony,
> Also, request you to add it as part of next pull request to the linux-next,
> at early rc cycle itself.
Yes it should hit arm-soc and linux-next after -rc2 or so.
> Paul,
>
> Can you also send a pull request for AM33XX voltagedomain, cm, clockdomain,
> prm, powerdomain patches?
> Also request you to review clock-tree and hwmod changes, so that, they can
> also be merged within time.
>
> From clocktree perspective, I believe now I have to migrate to Rajendr's
> common-clock framework changes, so let me finish that and send new version.
>
>
> Thanks,
> Vaibhav
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-06-05 8:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-10 19:08 [PATCH] ARM: OMAP2+: am33xx: Add AM335XEVM machine support Vaibhav Hiremath
2012-05-29 6:12 ` Hiremath, Vaibhav
2012-06-05 7:53 ` Tony Lindgren
2012-06-05 8:00 ` Hiremath, Vaibhav
2012-06-05 8:02 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).