• A
    Nomadik: fix reset_timer() · 4b894a97
    Alessandro Rubini 提交于
    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: NAlessandro Rubini <rubini@unipv.it>
    Acked-by: NAndrea Gallo <andrea.gallo@stericsson.com>
    4b894a97
timer.c 2.3 KB