summaryrefslogtreecommitdiffstats
path: root/arch/m68k/amiga/platform.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2009-04-05 13:15:10 +0200
committerGeert Uytterhoeven <geert@linux-m68k.org>2010-05-26 19:51:10 +0200
commit0779c862e43e052c58a350a8bd2bf97e6908de04 (patch)
tree108eadd3625738e7ad0db1446a96ade7d8939cc5 /arch/m68k/amiga/platform.c
parent6f8221c26be5d80f749b1b6c2e7c8456fefb5250 (diff)
downloadblackbird-op-linux-0779c862e43e052c58a350a8bd2bf97e6908de04.tar.gz
blackbird-op-linux-0779c862e43e052c58a350a8bd2bf97e6908de04.zip
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.c17
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 = {
};
+static const struct resource amiga_rtc_resource __initconst = {
+ .start = 0x00dc0000,
+ .end = 0x00dcffff,
+ .flags = IORESOURCE_MEM,
+};
+
+
static int __init amiga_init_devices(void)
{
struct platform_device *pdev;
@@ -174,6 +181,16 @@ static int __init amiga_init_devices(void)
if (AMIGAHW_PRESENT(AMI_PARALLEL))
platform_device_register_simple("amiga-parallel", -1, NULL, 0);
+
+ /* real time clocks */
+ if (AMIGAHW_PRESENT(A2000_CLK))
+ platform_device_register_simple("rtc-msm6242", -1,
+ &amiga_rtc_resource, 1);
+
+ if (AMIGAHW_PRESENT(A3000_CLK))
+ platform_device_register_simple("rtc-rp5c01", -1,
+ &amiga_rtc_resource, 1);
+
return 0;
}
OpenPOWER on IntegriCloud