Re: TOD/RTC questions

2014-08-29 Thread Joel Sherrill
On 8/29/2014 10:38 AM, Alan Cudmore wrote: > I was able to get the ds1307 i2c part working on the Pi. The tod.c > driver shell was calling setRealTimeToRTEMS() but it was failing in > rtems_clock_set because my driver was not returning the correct > rtems_tod format. > Now when I boot the Pi, t

Re: TOD/RTC questions

2014-08-29 Thread Alan Cudmore
I was able to get the ds1307 i2c part working on the Pi. The tod.c driver shell was calling setRealTimeToRTEMS() but it was failing in rtems_clock_set because my driver was not returning the correct rtems_tod format. Now when I boot the Pi, the rtems time is synced to the battery backed RTC.

Re: TOD/RTC questions

2014-08-28 Thread Joel Sherrill
On 8/28/2014 12:16 PM, Alan Cudmore wrote: > I am testing out the Raspberry Pi I2C interface by implementing a > DS1307 RTC driver. > > I started with the libchip/rtc/ds1375.c driver, since it is very close > to the 1307. > > In the Raspberry Pi BSP, I added code to i2c_init.c to create a raw >

TOD/RTC questions

2014-08-28 Thread Alan Cudmore
I am testing out the Raspberry Pi I2C interface by implementing a DS1307 RTC driver. I started with the libchip/rtc/ds1375.c driver, since it is very close to the 1307. In the Raspberry Pi BSP, I added code to i2c_init.c to create a raw device node for the RTC device, then I added the tod/todcfg.