<pre><tt><tt>Dear Wolfgang,<br><br><br>&gt;No, this is NOT correct. You must  not  define  the  same  things  in<br>&gt;several place, and differently. Use a single definition in your board<br>&gt;config file, and make sure it is correct.<br><br>    Now I've taken reference of the TQM866M.h for the I2C RTC and<br>changed the the "include/configs/BOARD.h" as below:<br><br><br>/* enable I2C and select the hardware/software driver */<br><br>#undef  CONFIG_HARD_I2C                 /* I2C with hardware support    <br>*/<br>#define CONFIG_SOFT_I2C         1       /* I2C bit-banged               <br>*/<br>#define  CONFIG_RTC_DS1307      1<br>#define CFG_I2C_SPEED           93000   /* 93 kHz is supposed to work   <br>*/<br>#define CFG_I2C_SLAVE           0xFE<br>#ifdef CONFIG_SOFT_I2C<br>  /*<br> *  * Software (bit-bang) I2C driver configuration<br> *   */<br>#define PB_SCL          0x00000020      /* PB 26 */<br>#define PB_SDA          0x00000010      /* PB 27 */<br>#define
 I2C_INIT        (immr-&gt;im_cpm.cp_pbdir |=  PB_SCL)<br>#define I2C_ACTIVE      (immr-&gt;im_cpm.cp_pbdir |=  PB_SDA)<br>#define I2C_TRISTATE    (immr-&gt;im_cpm.cp_pbdir &amp;= ~PB_SDA)<br>#define I2C_READ        ((immr-&gt;im_cpm.cp_pbdat &amp; PB_SDA) != 0)<br>#define I2C_SDA(bit)    if(bit) immr-&gt;im_cpm.cp_pbdat |=  PB_SDA; \<br>                        else    immr-&gt;im_cpm.cp_pbdat &amp;= ~PB_SDA<br>#define I2C_SCL(bit)    if(bit) immr-&gt;im_cpm.cp_pbdat |=  PB_SCL; \<br>                        else    immr-&gt;im_cpm.cp_pbdat &amp;= ~PB_SCL<br>#define I2C_DELAY       udelay(2)       /* 1/4 I2C clock duration */<br>#endif  /* CONFIG_SOFT_I2C */<br><br><br>All other definitions I've reverted back. But now after the changes <br>done<br>following is what I get:<br><br><br>[ICM] $date<br>i2c_read: chip 68 addr 00 alen 1 buffer 00f3dbf8 len 1<br>i2c_read, no chip responded 68<br>i2c_read: chip 68 addr 01 alen 1 buffer 00f3dbf8 len 1<br>i2c_read, no chip responded
 68<br>i2c_read: chip 68 addr 02 alen 1 buffer 00f3dbf8 len 1<br>i2c_read, no chip responded 68<br>i2c_read: chip 68 addr 03 alen 1 buffer 00f3dbf8 len 1<br>i2c_read, no chip responded 68<br>i2c_read: chip 68 addr 04 alen 1 buffer 00f3dbf8 len 1<br>i2c_read, no chip responded 68<br>i2c_read: chip 68 addr 05 alen 1 buffer 00f3dbf8 len 1<br>i2c_read, no chip responded 68<br>i2c_read: chip 68 addr 06 alen 1 buffer 00f3dbf8 len 1<br>i2c_read, no chip responded 68<br>Get RTC year: 00 mon: 00 mday: 00 wday: 00 hr: 00 min: 00 sec: 00<br>Get DATE: 2000-00-00 (wday=7)  TIME:  0:00:00<br>Date: 2000-00-00 (unknown day)    Time:  0:00:00<br>[ICM] $<br><br>Is there anything still I'm missing, Please do help me in this regard.<br><br>Thanks in Advance!<br><br>--Ganesh<br><br></tt></tt></pre> <br><br><p>
                <hr size=1>Blab-away for as little as 1¢/min. Make <a href="http://us.rd.yahoo.com/mail_us/taglines/postman2/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com"> PC-to-Phone Calls</a> using Yahoo! Messenger with Voice.