diff options
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 | ||