diff options
author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-06-06 10:17:00 +0200 |
---|---|---|
committer | Scott Wood <oss@buserror.net> | 2016-06-19 19:12:01 -0500 |
commit | bb9783b66bf56a27b4db8dc444dda6c380816e99 (patch) | |
tree | b1a6319dd76982d623dac1ef63d0007831385195 /board/Barix | |
parent | fa3011587887ba222bc9337d9ac17f3000db63b2 (diff) | |
download | blackbird-obmc-uboot-bb9783b66bf56a27b4db8dc444dda6c380816e99.tar.gz blackbird-obmc-uboot-bb9783b66bf56a27b4db8dc444dda6c380816e99.zip |
spl: nand: sunxi: rework status polling loop
check_value_xxx() helpers are using a 1ms delay between each test, which
can be quite long for some operations (like a page read on an SLC NAND).
Since we don't have anything to do but to poll this register, reduce the
delay between each test to 1us.
While we're at it, rename the max_number_of_retries parameters and the
MAX_RETRIES macro into timeout_us and DEFAULT_TIMEOUT_US to reflect that
we're actually waiting a given amount of time and not only a number of
retries.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'board/Barix')
0 files changed, 0 insertions, 0 deletions