linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: hvaibhav@ti.com (Vaibhav Hiremath)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] arm:omap2:board-generic: Add DT support for AM33xx devices
Date: Wed, 18 Jan 2012 12:43:58 +0530	[thread overview]
Message-ID: <1326870839-19951-1-git-send-email-hvaibhav@ti.com> (raw)

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@ti.com>
CC: Benoit Cousson <b-cousson@ti.com>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Tony Lindgren <tony@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",
+	NULL,
+};
+
+DT_MACHINE_START(AM33XX_DT, "Generic AM33XX (Flattened Device Tree)")
+	.atag_offset	= 0x100,
+	.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

             reply	other threads:[~2012-01-18  7:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-18  7:13 Vaibhav Hiremath [this message]
2012-01-18  7:13 ` [PATCH 2/2] arm/dts: Add support for TI AM335x EVM board Vaibhav Hiremath
2012-02-03  6:42   ` Hiremath, Vaibhav
2012-01-18 20:58 ` [PATCH 1/2] arm:omap2:board-generic: Add DT support for AM33xx devices Grant Likely
2012-01-19  8:10   ` Hiremath, Vaibhav
2012-01-23  8:11   ` Hiremath, Vaibhav

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1326870839-19951-1-git-send-email-hvaibhav@ti.com \
    --to=hvaibhav@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).