Writing new driver for FM3104 on Cirrus 9301 processor
bennyc at rtunet.com
Wed Apr 13 05:48:18 CEST 2005
I have gone through much of the doco and really need your help. I am about
to embark on writing a driver for the RTC and Watch Dog timer for our
system. I have some questions and hopefully you can help.
In our system, the FM3104 chip’s SCL and SDA line are connected to the EECLK
and EESDA (like GPIO) line on the processor. Hence, I would need to use
some bit bang algo to talk to the chip. But I would want to maximise the
use of existing code in the i2c directory but don’t know what I should be
1. For both the RTC and Watch dog drivers, do I need to write both the
adapter driver and Driver driver or just a driver like the ds1307.c?
2. Which existing src would be a good template for me?
3. The DS1307. c code, it do not have an i2c_adapter structure defined,
Hence, how do it knows what algo it would use to talk to the DS1307 chip?
Thank you so much for your help.
R & D Firmware Engineer
RTUnet Pty Ltd
90 Sippy Downs Drive
Sippy Downs Qld
Phone +61 7 54594560
Fax +61 7 54594563
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.7 - Release Date: 12/04/2005
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lm-sensors