Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e509ac4bbc661052dc73a2e8138800ba77d4ecb9
Commit:     e509ac4bbc661052dc73a2e8138800ba77d4ecb9
Parent:     075fc19bdea9120989142fa2179abd958b3a5c72
Author:     Kristoffer Ericson <[EMAIL PROTECTED]>
AuthorDate: Mon Jul 16 09:51:39 2007 +0900
Committer:  Paul Mundt <[EMAIL PROTECTED]>
CommitDate: Mon Jul 16 09:51:39 2007 +0900

    sh: sh-rtc support for SH7709.
    
    Signed-off-by: Kristoffer Ericson <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mundt <[EMAIL PROTECTED]>
---
 arch/sh/kernel/cpu/sh3/setup-sh7709.c |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/arch/sh/kernel/cpu/sh3/setup-sh7709.c 
b/arch/sh/kernel/cpu/sh3/setup-sh7709.c
index c0265a9..d79ec0c 100644
--- a/arch/sh/kernel/cpu/sh3/setup-sh7709.c
+++ b/arch/sh/kernel/cpu/sh3/setup-sh7709.c
@@ -12,6 +12,26 @@
 #include <linux/serial.h>
 #include <asm/sci.h>
 
+static struct resource rtc_resources[] = {
+       [0] =   {
+               .start  = 0xfffffec0,
+               .end    = 0xfffffec0 + 0x1e,
+               .flags  = IORESOURCE_IO,
+       },
+       [1] =   {
+               .start  = 20,
+               .flags  = IORESOURCE_IRQ,
+       },
+       [2] =   {
+               .start  = 21,
+               .flags  = IORESOURCE_IRQ,
+       },
+       [3] =   {
+               .start  = 22,
+               .flags  = IORESOURCE_IRQ,
+       },
+};
+
 static struct plat_sci_port sci_platform_data[] = {
        {
                .mapbase        = 0xfffffe80,
@@ -41,8 +61,16 @@ static struct platform_device sci_device = {
        },
 };
 
+static struct platform_device rtc_device = {
+       .name           = "sh-rtc",
+       .id             = -1,
+       .num_resources  = ARRAY_SIZE(rtc_resources),
+       .resource       = rtc_resources,
+};
+
 static struct platform_device *sh7709_devices[] __initdata = {
        &sci_device,
+       &rtc_device,
 };
 
 static int __init sh7709_devices_setup(void)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to