From: Wolfgang Denk Date: Thu, 05 Jun 2008 00:06:32 +0200 Subject: [U-Boot-Users] [PATCH] DTT: Issue one-shot command on AD7414 (LM75 code) to read temp In-Reply-To: Your message of "Fri, 16 May 2008 11:06:06 +0200." <1210928766-31604-1-git-send-email-sr@denx.de> Message-ID: <20080604220632.99B5E247CC@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <1210928766-31604-1-git-send-email-sr@denx.de> you wrote: > 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 > --- > drivers/hwmon/lm75.c | 13 +++++++++++++ > 1 files changed, 13 insertions(+), 0 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Real computer scientists don't comment their code. The identifiers are so long they can't afford the disk space.