Skip to contentSkip to conversation

RTC updates for Amiga

PATCH Geert Uytterhoeven 1 participant 1 message Mar 18, 2009 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi Kars,

Quoted 2 lines · Kars de Jong

I got tired of my Amiga locking up every time when hwclock got run (see
http://lists.linux-m68k.org/pipermail/linux-m68k/2002-January/000730.html for details) even with CONFIG_GEN_RTC_X=y in my .config, so I decided to look at the OKI website for the datasheet of the MSM6242RS clock (the one used in A2000 / A1200).

While looking into creating separate rtc-msm6242 (A2000 RTC') and rtc-rp5c01 (A3000 RTC') drivers, as per current RTC policy, I browsed through the various Amiga schematics to identify RTC chips.

Surprisingly, I discovered a Ricoh RP5C01 (not an Oki MSM6242) on the A1200 schematics:
http://www.symbolengine.com/index.php/2007/04/21/amiga-1200-schematics-in-pdf-format/
Hence does arch/m68k/amiga/config.c:amiga_identify() handle the A1200 incorrectly?

It also seems the CDTV has a builtin MSM6242, while the CD32 hasn't any RTC, like A1000/A500/A600. So ideally, we have to probe for RTC presence. I guess for the MSM6242 we can use the existing loop (timeout = no MSM6242). What about the RP5C01?

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds