diff options
| author | Kristoffer Ericson <kristoffer.ericson@gmail.com> | 2007-07-15 20:51:39 -0400 |
|---|---|---|
| committer | Paul Mundt <lethal@linux-sh.org> | 2007-07-15 20:51:39 -0400 |
| commit | e509ac4bbc661052dc73a2e8138800ba77d4ecb9 (patch) | |
| tree | 82ad16f0762118392cfbe99bc93dc1ef1e7770a3 | |
| parent | 075fc19bdea9120989142fa2179abd958b3a5c72 (diff) | |
sh: sh-rtc support for SH7709.
Signed-off-by: Kristoffer Ericson <kristoffer.ericson@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| -rw-r--r-- | 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 c0265a96e7d3..d79ec0c0522f 100644 --- a/arch/sh/kernel/cpu/sh3/setup-sh7709.c +++ b/arch/sh/kernel/cpu/sh3/setup-sh7709.c | |||
| @@ -12,6 +12,26 @@ | |||
| 12 | #include <linux/serial.h> | 12 | #include <linux/serial.h> |
| 13 | #include <asm/sci.h> | 13 | #include <asm/sci.h> |
| 14 | 14 | ||
| 15 | static struct resource rtc_resources[] = { | ||
| 16 | [0] = { | ||
| 17 | .start = 0xfffffec0, | ||
| 18 | .end = 0xfffffec0 + 0x1e, | ||
| 19 | .flags = IORESOURCE_IO, | ||
| 20 | }, | ||
| 21 | [1] = { | ||
| 22 | .start = 20, | ||
| 23 | .flags = IORESOURCE_IRQ, | ||
| 24 | }, | ||
| 25 | [2] = { | ||
| 26 | .start = 21, | ||
| 27 | .flags = IORESOURCE_IRQ, | ||
| 28 | }, | ||
| 29 | [3] = { | ||
| 30 | .start = 22, | ||
| 31 | .flags = IORESOURCE_IRQ, | ||
| 32 | }, | ||
| 33 | }; | ||
| 34 | |||
| 15 | static struct plat_sci_port sci_platform_data[] = { | 35 | static struct plat_sci_port sci_platform_data[] = { |
| 16 | { | 36 | { |
| 17 | .mapbase = 0xfffffe80, | 37 | .mapbase = 0xfffffe80, |
| @@ -41,8 +61,16 @@ static struct platform_device sci_device = { | |||
| 41 | }, | 61 | }, |
| 42 | }; | 62 | }; |
| 43 | 63 | ||
| 64 | static struct platform_device rtc_device = { | ||
| 65 | .name = "sh-rtc", | ||
| 66 | .id = -1, | ||
| 67 | .num_resources = ARRAY_SIZE(rtc_resources), | ||
| 68 | .resource = rtc_resources, | ||
| 69 | }; | ||
| 70 | |||
| 44 | static struct platform_device *sh7709_devices[] __initdata = { | 71 | static struct platform_device *sh7709_devices[] __initdata = { |
| 45 | &sci_device, | 72 | &sci_device, |
| 73 | &rtc_device, | ||
| 46 | }; | 74 | }; |
| 47 | 75 | ||
| 48 | static int __init sh7709_devices_setup(void) | 76 | static int __init sh7709_devices_setup(void) |
