Skip to contentSkip to conversation

rtc access with i2c

DISCUSSION Kanchana Sethu 2 participants 2 messages Feb 25, 2004

lore
Share & tools
lore
#0 lore raw

I am developing a driver for an rtc chip on an embedded ppc platform that sits on the i2c bus. Can I use the generic i2c primitives to access it or is it not available on that point in the boot process?

Kanchana Sethu

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 4 lines · Kanchana Sethu

I am developing a driver for an rtc chip on an embedded ppc platform that sits on the i2c bus. Can I use the generic i2c primitives to access it or is it not available on that point in the boot process?

Yes, you can. Take a look at
http://www.gihyo.co.jp/book/2004/640402/download/linux-2.6.0-test10-obs266.diff
and the x1226-rtc.c code in there.

--
Tom Rini
http://gate.crashing.org/~trini/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/