soc/nvidia/tegra210: Fix flushing SPI fifo
This will avoid clearing the other bits in fifo_status. Change-Id: I7917b3f8d9af6056ed872b7e48cef9c3deba5119 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70137 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
parent
e29dcdcdd8
commit
759448893c
|
@ -331,7 +331,7 @@ static void flush_fifos(struct tegra_spi_channel *spi)
|
||||||
|
|
||||||
uint32_t fifo_status = read32(&spi->regs->fifo_status);
|
uint32_t fifo_status = read32(&spi->regs->fifo_status);
|
||||||
fifo_status |= flush_mask;
|
fifo_status |= flush_mask;
|
||||||
write32(&spi->regs->fifo_status, flush_mask);
|
write32(&spi->regs->fifo_status, fifo_status);
|
||||||
|
|
||||||
while (read32(&spi->regs->fifo_status) & flush_mask)
|
while (read32(&spi->regs->fifo_status) & flush_mask)
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in New Issue