diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-05-08 02:39:25 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-05-08 02:39:25 -0400 |
commit | c2ecb4c4a7da16288062a057b693b7b1e16aaf88 (patch) | |
tree | 3c9a339738a9ad6d244a37aab0f42b69e1c39c49 /arch/sh/kernel/cpu/sh5 | |
parent | 4fa48e1774992fd03a4cd83a0f2adecb288c46f8 (diff) |
sh: Move out rtc-sh registration from time_64.c to setup-sh5.c
Now that the onchip_remap() mess is sorted out, the rtc-sh support code
for SH-5 can follow the same approach as the other CPUs.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/sh5')
-rw-r--r-- | arch/sh/kernel/cpu/sh5/setup-sh5.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/sh5/setup-sh5.c b/arch/sh/kernel/cpu/sh5/setup-sh5.c index d8d59fea1082..9a362c8f3fe9 100644 --- a/arch/sh/kernel/cpu/sh5/setup-sh5.c +++ b/arch/sh/kernel/cpu/sh5/setup-sh5.c | |||
@@ -34,8 +34,39 @@ static struct platform_device sci_device = { | |||
34 | }, | 34 | }, |
35 | }; | 35 | }; |
36 | 36 | ||
37 | static struct resource rtc_resources[] = { | ||
38 | [0] = { | ||
39 | .start = PHYS_PERIPHERAL_BLOCK + 0x01040000, | ||
40 | .end = PHYS_PERIPHERAL_BLOCK + 0x01040000 + 0x58 - 1, | ||
41 | .flags = IORESOURCE_IO, | ||
42 | }, | ||
43 | [1] = { | ||
44 | /* Period IRQ */ | ||
45 | .start = IRQ_PRI, | ||
46 | .flags = IORESOURCE_IRQ, | ||
47 | }, | ||
48 | [2] = { | ||
49 | /* Carry IRQ */ | ||
50 | .start = IRQ_CUI, | ||
51 | .flags = IORESOURCE_IRQ, | ||
52 | }, | ||
53 | [3] = { | ||
54 | /* Alarm IRQ */ | ||
55 | .start = IRQ_ATI, | ||
56 | .flags = IORESOURCE_IRQ, | ||
57 | }, | ||
58 | }; | ||
59 | |||
60 | static struct platform_device rtc_device = { | ||
61 | .name = "sh-rtc", | ||
62 | .id = -1, | ||
63 | .num_resources = ARRAY_SIZE(rtc_resources), | ||
64 | .resource = rtc_resources, | ||
65 | }; | ||
66 | |||
37 | static struct platform_device *sh5_devices[] __initdata = { | 67 | static struct platform_device *sh5_devices[] __initdata = { |
38 | &sci_device, | 68 | &sci_device, |
69 | &rtc_device, | ||
39 | }; | 70 | }; |
40 | 71 | ||
41 | static int __init sh5_devices_setup(void) | 72 | static int __init sh5_devices_setup(void) |