mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-10-04 21:32:12 +00:00
4b894a97d3
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> |
||
---|---|---|
.. | ||
gpio.c | ||
Makefile | ||
reset.S | ||
timer.c |