]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
DTT: Issue one-shot command on AD7414 (LM75 code) to read temp
authorStefan Roese <sr@denx.de>
Fri, 16 May 2008 09:06:06 +0000 (11:06 +0200)
committerWolfgang Denk <wd@denx.de>
Tue, 3 Jun 2008 19:00:00 +0000 (21:00 +0200)
commit4d91d1df2f16b511ab80dec50c80e050ba0d841e
treed7040f5a79233d62fda446d60bcb6fa427b1e415
parent8c66497e06bf803489c589df58ee591d71033274
DTT: Issue one-shot command on AD7414 (LM75 code) to read temp

On AD7414 the first value upon bootup is not read correctly.
This is most likely because of the 800ms update time of the
temp register in normal update mode. To get current values
each time we issue the "dtt" command including upon powerup
we switch into one-short mode.

This patch fixes the problem on AD7414 equipped boards (Sequoia,
Canyonlands etc), that temp value printed in the bootup log was
incorrect.

Signed-off-by: Stefan Roese <sr@denx.de>
drivers/hwmon/lm75.c