]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mtd: spi: renesas: Configure DRDRENR register
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 31 Aug 2024 20:31:46 +0000 (22:31 +0200)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 8 Sep 2024 23:10:33 +0000 (01:10 +0200)
Make sure DRDRENR register is configured before performing external
address space read. This register might have been configured by a
prior stage bootloader and leaving it unconfigured would interfere
with U-Boot operation. Since U-Boot RPC SPI driver does not support
DDR data transfer mode yet, set this register unconditionally to 0.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/spi/renesas_rpc_spi.c

index a2ac5525b90dc3883ea5a51ab61db1d7094f6c76..50890981149b878f34b1fee5820d7b1abce962f8 100644 (file)
@@ -294,6 +294,7 @@ static int rpc_spi_mem_exec_op(struct spi_slave *spi,
 
                writel(8 * op->dummy.nbytes - 1, priv->regs + RPC_DRDMCR);
                writel(0, priv->regs + RPC_DROPR);
+               writel(0, priv->regs + RPC_DRDRENR);
                writel(smenr, priv->regs + RPC_DRENR);
 
                memcpy_fromio(din, (void *)(priv->extr + offset), op->data.nbytes);