All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bastian Hecht <hechtb@gmail.com>
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 7/7] ARM: mach-shmobile: r8a7740: Setup the timer CMT10 using DT
Date: Thu, 11 Apr 2013 11:24:03 +0000	[thread overview]
Message-ID: <1365679443-25456-7-git-send-email-hechtb+renesas@gmail.com> (raw)
In-Reply-To: <1365679443-25456-1-git-send-email-hechtb+renesas@gmail.com>

We can now use the Device Tree for bringing up our timer device CMT10 on
the SoC r8a7740.

Signed-off-by: Bastian Hecht <hechtb+renesas@gmail.com>
---
v4: same. only patch 2 and 3 changed

 arch/arm/mach-shmobile/setup-r8a7740.c |   33 --------------------------------
 1 file changed, 33 deletions(-)

diff --git a/arch/arm/mach-shmobile/setup-r8a7740.c b/arch/arm/mach-shmobile/setup-r8a7740.c
index c2ac4aa..e88b50d 100644
--- a/arch/arm/mach-shmobile/setup-r8a7740.c
+++ b/arch/arm/mach-shmobile/setup-r8a7740.c
@@ -363,38 +363,6 @@ static struct platform_device scifb_device = {
 	},
 };
 
-/* CMT */
-static struct sh_timer_config cmt10_platform_data = {
-	.name = "CMT10",
-	.channel_offset = 0x10,
-	.timer_bit = 0,
-	.clockevent_rating = 125,
-	.clocksource_rating = 125,
-};
-
-static struct resource cmt10_resources[] = {
-	[0] = {
-		.name	= "CMT10",
-		.start	= 0xe6138010,
-		.end	= 0xe613801b,
-		.flags	= IORESOURCE_MEM,
-	},
-	[1] = {
-		.start	= gic_spi(58),
-		.flags	= IORESOURCE_IRQ,
-	},
-};
-
-static struct platform_device cmt10_device = {
-	.name		= "sh_cmt",
-	.id		= 10,
-	.dev = {
-		.platform_data	= &cmt10_platform_data,
-	},
-	.resource	= cmt10_resources,
-	.num_resources	= ARRAY_SIZE(cmt10_resources),
-};
-
 /* TMU */
 static struct sh_timer_config tmu00_platform_data = {
 	.name = "TMU00",
@@ -531,7 +499,6 @@ static struct platform_device *r8a7740_early_devices[] __initdata = {
 	&scif6_device,
 	&scif7_device,
 	&scifb_device,
-	&cmt10_device,
 	&tmu00_device,
 	&tmu01_device,
 	&tmu02_device,
-- 
1.7.9.5


WARNING: multiple messages have this Message-ID (diff)
From: hechtb@gmail.com (Bastian Hecht)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 7/7] ARM: mach-shmobile: r8a7740: Setup the timer CMT10 using DT
Date: Thu, 11 Apr 2013 13:24:03 +0200	[thread overview]
Message-ID: <1365679443-25456-7-git-send-email-hechtb+renesas@gmail.com> (raw)
In-Reply-To: <1365679443-25456-1-git-send-email-hechtb+renesas@gmail.com>

We can now use the Device Tree for bringing up our timer device CMT10 on
the SoC r8a7740.

Signed-off-by: Bastian Hecht <hechtb+renesas@gmail.com>
---
v4: same. only patch 2 and 3 changed

 arch/arm/mach-shmobile/setup-r8a7740.c |   33 --------------------------------
 1 file changed, 33 deletions(-)

diff --git a/arch/arm/mach-shmobile/setup-r8a7740.c b/arch/arm/mach-shmobile/setup-r8a7740.c
index c2ac4aa..e88b50d 100644
--- a/arch/arm/mach-shmobile/setup-r8a7740.c
+++ b/arch/arm/mach-shmobile/setup-r8a7740.c
@@ -363,38 +363,6 @@ static struct platform_device scifb_device = {
 	},
 };
 
-/* CMT */
-static struct sh_timer_config cmt10_platform_data = {
-	.name = "CMT10",
-	.channel_offset = 0x10,
-	.timer_bit = 0,
-	.clockevent_rating = 125,
-	.clocksource_rating = 125,
-};
-
-static struct resource cmt10_resources[] = {
-	[0] = {
-		.name	= "CMT10",
-		.start	= 0xe6138010,
-		.end	= 0xe613801b,
-		.flags	= IORESOURCE_MEM,
-	},
-	[1] = {
-		.start	= gic_spi(58),
-		.flags	= IORESOURCE_IRQ,
-	},
-};
-
-static struct platform_device cmt10_device = {
-	.name		= "sh_cmt",
-	.id		= 10,
-	.dev = {
-		.platform_data	= &cmt10_platform_data,
-	},
-	.resource	= cmt10_resources,
-	.num_resources	= ARRAY_SIZE(cmt10_resources),
-};
-
 /* TMU */
 static struct sh_timer_config tmu00_platform_data = {
 	.name = "TMU00",
@@ -531,7 +499,6 @@ static struct platform_device *r8a7740_early_devices[] __initdata = {
 	&scif6_device,
 	&scif7_device,
 	&scifb_device,
-	&cmt10_device,
 	&tmu00_device,
 	&tmu01_device,
 	&tmu02_device,
-- 
1.7.9.5

  parent reply	other threads:[~2013-04-11 11:24 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-11 11:23 [PATCH v4 1/7] ARM: shmobile: Define DT bindings for timer devices Bastian Hecht
2013-04-11 11:23 ` Bastian Hecht
2013-04-11 11:23 ` [PATCH v4 2/7] clocksource: sh_cmt: Add OF support Bastian Hecht
2013-04-11 11:23   ` Bastian Hecht
2013-05-23  1:39   ` Simon Horman
2013-05-23  1:39     ` Simon Horman
2013-04-11 11:23 ` [PATCH v4 3/7] clocksource: sh_tmu: " Bastian Hecht
2013-04-11 11:23   ` Bastian Hecht
2013-05-23  1:39   ` Simon Horman
2013-05-23  1:39     ` Simon Horman
2013-04-11 11:24 ` [PATCH v4 4/7] ARM: shmobile: sh73a0: Add timer DT names to clock list Bastian Hecht
2013-04-11 11:24   ` Bastian Hecht
2013-05-23  1:39   ` Simon Horman
2013-05-23  1:39     ` Simon Horman
2013-04-11 11:24 ` [PATCH v4 5/7] ARM: mach-shmobile: sh73a0: Setup the timer CMT10 using DT Bastian Hecht
2013-04-11 11:24   ` Bastian Hecht
2013-05-22 11:16   ` Simon Horman
2013-05-22 11:16     ` Simon Horman
2013-04-11 11:24 ` [PATCH v4 6/7] ARM: shmobile: r8a7740: Add DT name to clock list for CMT10 Bastian Hecht
2013-04-11 11:24   ` Bastian Hecht
2013-04-11 11:24 ` Bastian Hecht [this message]
2013-04-11 11:24   ` [PATCH v4 7/7] ARM: mach-shmobile: r8a7740: Setup the timer CMT10 using DT Bastian Hecht
2013-04-12  1:23   ` Simon Horman
2013-04-12  1:23     ` Simon Horman
2013-04-12 12:46     ` Bastian Hecht
2013-04-12 12:46       ` Bastian Hecht
2013-04-15  3:58       ` Simon Horman
2013-04-15  3:58         ` Simon Horman
2013-04-17  2:15         ` Simon Horman
2013-04-17  2:15           ` Simon Horman
2013-05-23  1:39 ` [PATCH v4 1/7] ARM: shmobile: Define DT bindings for timer devices Simon Horman
2013-05-23  1:39   ` Simon Horman

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=1365679443-25456-7-git-send-email-hechtb+renesas@gmail.com \
    --to=hechtb@gmail.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 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.