spi: meson_spifc_a1: Use define for time interval

Use USEC_PER_MSEC define for timeout to sync code with Linux version.

Signed-off-by: Igor Prusov <ivprusov@salutedevices.com>
This commit is contained in:
Igor Prusov 2023-11-09 20:10:03 +03:00 committed by Tom Rini
parent d7ce04c7f4
commit 35425507b3

View file

@ -16,6 +16,7 @@
#include <spi-mem.h> #include <spi-mem.h>
#include <asm/io.h> #include <asm/io.h>
#include <linux/log2.h> #include <linux/log2.h>
#include <linux/time.h>
#include <linux/iopoll.h> #include <linux/iopoll.h>
#include <linux/bitfield.h> #include <linux/bitfield.h>
@ -117,7 +118,7 @@ static int amlogic_spifc_a1_request(struct amlogic_spifc_a1 *spifc, bool read)
return readl_poll_timeout(spifc->base + SPIFC_A1_USER_CTRL0_REG, return readl_poll_timeout(spifc->base + SPIFC_A1_USER_CTRL0_REG,
val, (val & mask) == mask, val, (val & mask) == mask,
200 * 1000); 200 * USEC_PER_MSEC);
} }
static void amlogic_spifc_a1_drain_buffer(struct amlogic_spifc_a1 *spifc, static void amlogic_spifc_a1_drain_buffer(struct amlogic_spifc_a1 *spifc,