From: Wolfgang Denk Date: Sun, 05 Apr 2009 01:34:19 +0200 Subject: [U-Boot] [PATCH] mpc5200: reduce delays in i2c In-Reply-To: <20090404214451.3615.21311.stgit@terra> References: <20090404214451.3615.21311.stgit@terra> Message-ID: <20090404233419.4858B83797DC@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 Dear Jon Smirl, In message <20090404214451.3615.21311.stgit@terra> you wrote: > The previous code waited 1000us before checking i2c > status. Measurement shows i2c is usually ready in > under 50us. Change the polling interval to 15us, > loop 6,667 times to keep the polling timeout constant > at 100ms. > --- > cpu/mpc5xxx/i2c.c | 6 +++--- > 1 files changed, 3 insertions(+), 3 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 God made machine language; all the rest is the work of man.