Re: mcf5307, i2c rtc
2011-08-31 23:16:19 GMT
Hi all, i found an error in my resources struct, and i finally have the driver set loaded, Still seems i cannot get valid bytes from RTC ds1338. I probably have some HW issue. i2c i2c-0: master_xfer[0] W, addr=0x68, len=1 i2c i2c-0: master_xfer[1] R, addr=0x68, len=7 rtc-ds1307 0-0068: read: 00 00 00 00 00 00 00 rtc-ds1307 0-0068: read secs=0, mins=0, hours=0, mday=0, mon=-1, year=100, wday=-1 rtc-ds1307 0-0068: hctosys: unable to read the hardware clock many thanks to Steven for the driver, and many thanks to all for the help until now, regards, angelo On 25/08/2011 18:37, Viet Nguyen wrote: > On Wed, Aug 24, 2011 at 11:24 PM, angelo <angelo70 <at> gmail.com > <mailto:angelo70 <at> gmail.com>> wrote: > > > 1- The device rtc0 must be created from genromfs ? I see some boards > that have CONFIG_RTC_HCTOSYS_DEVICE="rtc0" but create a "rtc" > instade, with any number. > > 2 - Do i hae to add some static structure in my board.c to enable > rtc ds1307 driver ? Do you have a sample ? > >(Continue reading)
--
Quiliro Ordóñez
09 821 8696
02 340 1517
"No se puede sacrificar la libertad por ningún bien, por ninguna promesa
de pan o de paz o de justicia, porque ese pan tendría amargura de
veneno, esa paz sería de muerte, y esa justicia no sería justicia humana
ni tendría sentido." Alfredo Pérez Guerrero
"Não se pode sacrificar a liberdade por nenhum bem, por nenhuma promessa
de pan ou de paz ou de justiça, porque esse pan teria amargura de
veneno, essa paz seria de morte, e essa justiça não seria justiça humana
nem faria sentido." Alfredo Pérez Guerrero
_______________________________________________
uClinux-dev mailing list
uClinux-dev <at> uclinux.org
RSS Feed