[U-Boot-Users] [PATCH][FOR 1.3.4] fsl_i2c: Use timebase timer functions instead of get_timer()
Wolfgang Denk
wd at denx.de
Wed Jul 30 01:25:44 CEST 2008
In message <Pine.LNX.4.64.0807291223010.31355 at blarg.am.freescale.net> 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 <galak at kernel.crashing.org>
> ---
>
> 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 ($).
More information about the U-Boot
mailing list