Skip to content
Snippets Groups Projects
Commit 09d318a8 authored by Kumar Gala's avatar Kumar Gala Committed by Wolfgang Denk
Browse files

fsl_i2c: Use timebase timer functions instead of get_timer()


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: default avatarKumar Gala <galak@kernel.crashing.org>
parent 1ca9950b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment