diff options
author | Alessandro Rubini <rubini@unipv.it> | 2009-11-25 23:41:51 +0100 |
---|---|---|
committer | trix <trix@windriver.com> | 2010-04-03 15:24:27 -0500 |
commit | 4b894a97d307c3207af40031d9e820e2960de57f (patch) | |
tree | 45deb796599283759f8ec3b5d0a426f55fb6a037 /cpu/arm926ejs/at91/at91sam9m10g45_devices.c | |
parent | f936aa0528fe4f5d86168575528e0c52b485c642 (diff) | |
download | u-boot-imx-4b894a97d307c3207af40031d9e820e2960de57f.zip u-boot-imx-4b894a97d307c3207af40031d9e820e2960de57f.tar.gz u-boot-imx-4b894a97d307c3207af40031d9e820e2960de57f.tar.bz2 |
Nomadik: fix reset_timer()
Previous code was failing when reading back the timer less than
400us after resetting it. This lead nand operations to incorrectly
timeout any now and then. Moreover, writing the load register isn't
immediately reflected in the value register. We must wait for a clock
edge, so read_timer now waits for the value to change at least once,
otherwise nand operation would timeout anyways (though less frequently).
Signed-off-by: Alessandro Rubini <rubini@unipv.it>
Acked-by: Andrea Gallo <andrea.gallo@stericsson.com>
Diffstat (limited to 'cpu/arm926ejs/at91/at91sam9m10g45_devices.c')
0 files changed, 0 insertions, 0 deletions