diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2009-04-05 07:15:10 -0400 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2010-05-26 13:51:10 -0400 |
commit | 0779c862e43e052c58a350a8bd2bf97e6908de04 (patch) | |
tree | 108eadd3625738e7ad0db1446a96ade7d8939cc5 /arch/m68k/amiga/platform.c | |
parent | 6f8221c26be5d80f749b1b6c2e7c8456fefb5250 (diff) |
m68k: amiga - RTC platform device conversion
The A2000 TOD is an Oki MSM6242B, while the A3000 TOD is a Ricoh RP5C01.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/amiga/platform.c')
-rw-r--r-- | arch/m68k/amiga/platform.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/m68k/amiga/platform.c b/arch/m68k/amiga/platform.c index c985db029503..7fd8b41723ea 100644 --- a/arch/m68k/amiga/platform.c +++ b/arch/m68k/amiga/platform.c | |||
@@ -116,6 +116,13 @@ static const struct gayle_ide_platform_data a4000_ide_pdata __initconst = { | |||
116 | }; | 116 | }; |
117 | 117 | ||
118 | 118 | ||
119 | static const struct resource amiga_rtc_resource __initconst = { | ||
120 | .start = 0x00dc0000, | ||
121 | .end = 0x00dcffff, | ||
122 | .flags = IORESOURCE_MEM, | ||
123 | }; | ||
124 | |||
125 | |||
119 | static int __init amiga_init_devices(void) | 126 | static int __init amiga_init_devices(void) |
120 | { | 127 | { |
121 | struct platform_device *pdev; | 128 | struct platform_device *pdev; |
@@ -174,6 +181,16 @@ static int __init amiga_init_devices(void) | |||
174 | if (AMIGAHW_PRESENT(AMI_PARALLEL)) | 181 | if (AMIGAHW_PRESENT(AMI_PARALLEL)) |
175 | platform_device_register_simple("amiga-parallel", -1, NULL, 0); | 182 | platform_device_register_simple("amiga-parallel", -1, NULL, 0); |
176 | 183 | ||
184 | |||
185 | /* real time clocks */ | ||
186 | if (AMIGAHW_PRESENT(A2000_CLK)) | ||
187 | platform_device_register_simple("rtc-msm6242", -1, | ||
188 | &amiga_rtc_resource, 1); | ||
189 | |||
190 | if (AMIGAHW_PRESENT(A3000_CLK)) | ||
191 | platform_device_register_simple("rtc-rp5c01", -1, | ||
192 | &amiga_rtc_resource, 1); | ||
193 | |||
177 | return 0; | 194 | return 0; |
178 | } | 195 | } |
179 | 196 | ||