From: Wolfgang Denk Date: Wed, 30 Jul 2008 01:25:44 +0200 Subject: [U-Boot-Users] [PATCH][FOR 1.3.4] fsl_i2c: Use timebase timer functions instead of get_timer() In-Reply-To: Your message of "Tue, 29 Jul 2008 12:23:49 CDT." Message-ID: <20080729232544.AC51D248C1@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 you wrote: > The current implementation of get_timer() is only really useful after we > have relocated u-boot to memory. The i2c code is used before that as part > of the SPD DDR setup. > > We actually have a bug when using the get_timer() code before relocation > because the .bss hasn't been setup and thus we could be reading/writing > a random location (probably in flash). > > Signed-off-by: Kumar Gala > --- > > This is a fix for 1.3.4. > > - k > > drivers/i2c/fsl_i2c.c | 9 ++++----- > 1 files changed, 4 insertions(+), 5 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 Extended Epstein-Heisenberg Principle: In an R & D orbit, only 2 of the existing 3 parameters can be defined simultaneously. The parame- ters are: task, time and resources ($).