[U-Boot] [PATCH] sntp: fix problems at setting RTC at multi-bus I2C systems

Mike Frysinger vapier at gentoo.org
Mon May 2 21:01:13 CEST 2011


On Monday, May 02, 2011 10:57:11 Trübenbach, Ralf wrote:
> Setting the RTC via SNTP did not work if the current I2C bus no. is
> different from the bus no. the RTC is connected to.
> 
> Signed-off-by: Ralf Trübenbach <ralf.truebenbach at men.de>
> ---
> I don't like that I have to include the I2C things into sntp.c.
> But changing the rtc_set() function in 20 RTC drivers I don't
> like, too.

that would probably be the correct answer though.  not all rtc devices are 
i2c, and binding i2c logic to the `date` command is wrong.

looks like when Stefan added this logic to cmd_date.c, he did it incorrectly
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110502/a9df14d8/attachment.pgp 


More information about the U-Boot mailing list