Handle rtc chip on i2c bus

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Handle rtc chip on i2c bus

2,649 Views
Dietrich
Contributor II
This message contains an entire topic ported from the WildRice - Coldfire forum.  Freescale has received the approval from the WildRice administrator on seeding the Freescale forum with messages.  The original message and all replies are in this single message. We have seeded this new forum with selected information that we expect will be of value as you search for answers to your questions.  Freescale assumes no responsibility whatsoever with respect to Posted Material.  For additional information, please see the Terms of Use - Message Boards and Community Forums.  Thank You and Enjoy the Forum!
 


Dec 6, 2005, 3:30 PM
Post #1 of 2 (42 views)
Copy Shortcut
 [ColdFire] Handle rtc chip on i2c bus  Can't Post 
--------------------------------------------------------------------------------
 
Hi:
For 5475 EVB board, there is a rv5c387 rtc chip. In rv5c387-rtc.c, the
"init" function calls "i2c_add_driver" to add an i2c driver and
"misc_register" to add a misc driver.
When I open the misc driver to read/write to the rtc chip, the read/write
functions returns error. I am confused here because there are 2 drivers for
1 rtc chip. Which driver should I open to access the chip?

Thanks,
Shiyuan
--------------------------------------------------------------------
Dec 6, 2005, 5:15 PM
Post #2 of 2 (42 views)
Copy Shortcut
 Re: [ColdFire] Handle rtc chip on i2c bus [In reply to]  Can't Post 
--------------------------------------------------------------------------------
 
 
>Hi:
>For 5475 EVB board, there is a rv5c387 rtc chip. In rv5c387-rtc.c, the
>"init" function calls "i2c_add_driver" to add an i2c driver and
>"misc_register" to add a misc driver.
>
>When I open the misc driver to read/write to the rtc chip, the read/write
>functions returns error. I am confused here because there are 2 drivers for
>1 rtc chip. Which driver should I open to access the chip?
Logic's BSP already has support for the RTC on the eval board, using
the I2C driver. It supplies a /dev/rtc driver for other
utilities(such as hwclock) to access the rtc.
--
Peter Barada 

 
 
 

Message Edited by Dietrich on 04-03-2006 10:56 AM

Message Edited by Dietrich on 04-04-2006 09:13 PM

Labels (1)
0 Kudos
0 Replies