X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=drivers%2Fhwmon%2Flm75.c;fp=drivers%2Fhwmon%2Flm75.c;h=c34851725ef75095bee305298124c3ecaf5f5eb3;hb=4d91d1df2f16b511ab80dec50c80e050ba0d841e;hp=e29b29440f237aa537321bc388abce9c86014822;hpb=8c66497e06bf803489c589df58ee591d71033274;p=u-boot diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c index e29b29440f..c34851725e 100644 --- a/drivers/hwmon/lm75.c +++ b/drivers/hwmon/lm75.c @@ -47,6 +47,19 @@ int dtt_read(int sensor, int reg) int dlen; uchar data[2]; +#ifdef CONFIG_DTT_AD7414 + /* + * 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. + * + * Issue one-shot mode command + */ + dtt_write(sensor, DTT_CONFIG, 0x64); +#endif + /* * Validate 'reg' param */