Skip to contentSkip to conversation

RTC class drivers and powerpc arch

DISCUSSION Gerhard Pircher 2 participants 2 messages Sep 14, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

Since todc was removed from arch/powerpc I wonder how to use the rtc-cmos RTC class driver for my AmigaOne with its VIA southbridge. Do I have to define a platform device and the get/set_rtc_time hook functions or can the driver probe for and access the hardware automatically, if there's a device node for the RTC in the device tree?

Thanks!

regards,

Gerhard

Signature · 2 lines
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
#1 lore raw
Quoted 7 lines · Gerhard Pircher

Hi,

Since todc was removed from arch/powerpc I wonder how to use the rtc-cmos RTC class driver for my AmigaOne with its VIA southbridge. Do I have to define a platform device and the get/set_rtc_time hook functions or can the driver probe for and access the hardware automatically, if there's a device node for the RTC in the device tree?

Take a look at the RTC nodes that exist in arch/powerpc/boot/dts/mpc8544ds.dts for an example related to rtc-cmos.

- k