diff options
author | Igor Prusov <ivprusov@salutedevices.com> | 2023-11-14 14:02:55 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-11-28 16:19:06 -0500 |
commit | d26db04db1731362ace35c13e6effdffd7f831b7 (patch) | |
tree | bbc666e434839442e0a2adb19d8676b4a6d4f1d3 | |
parent | fa34fbf9a149be9c4ed4d2258477be59057a0ef8 (diff) | |
download | u-boot-d26db04db1731362ace35c13e6effdffd7f831b7.zip u-boot-d26db04db1731362ace35c13e6effdffd7f831b7.tar.gz u-boot-d26db04db1731362ace35c13e6effdffd7f831b7.tar.bz2 |
spi: meson_spifc_a1: Switch to io{read,write}32_rep()
Use io{read,write}32_rep() functions to sync code with Linux version.
Signed-off-by: Igor Prusov <ivprusov@salutedevices.com>
-rw-r--r-- | drivers/spi/meson_spifc_a1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/meson_spifc_a1.c b/drivers/spi/meson_spifc_a1.c index 099c4c0..a33b1a3 100644 --- a/drivers/spi/meson_spifc_a1.c +++ b/drivers/spi/meson_spifc_a1.c @@ -129,7 +129,7 @@ static void amlogic_spifc_a1_drain_buffer(struct amlogic_spifc_a1 *spifc, writel(SPIFC_A1_DBUF_AUTO_UPDATE_ADDR, spifc->base + SPIFC_A1_DBUF_CTRL_REG); - readsl(spifc->base + SPIFC_A1_DBUF_DATA_REG, buf, count); + ioread32_rep(spifc->base + SPIFC_A1_DBUF_DATA_REG, buf, count); if (pad) { data = readl(spifc->base + SPIFC_A1_DBUF_DATA_REG); @@ -146,7 +146,7 @@ static void amlogic_spifc_a1_fill_buffer(struct amlogic_spifc_a1 *spifc, writel(SPIFC_A1_DBUF_DIR | SPIFC_A1_DBUF_AUTO_UPDATE_ADDR, spifc->base + SPIFC_A1_DBUF_CTRL_REG); - writesl(spifc->base + SPIFC_A1_DBUF_DATA_REG, buf, count); + iowrite32_rep(spifc->base + SPIFC_A1_DBUF_DATA_REG, buf, count); if (pad) { memcpy(&data, buf + len - pad, pad); |