Skip to content

Commit

Permalink
mtd: spi: renesas: Configure DRDRENR register
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Marek Vasut committed Sep 8, 2024
1 parent 3fba388 commit c907950
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/spi/renesas_rpc_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c907950

Please sign in to comment.