/* Flush spi tx, rx fifos and reset the SPI controller */
static void spi_flush_fifo(struct exynos_spi *regs)
/* Flush spi tx, rx fifos and reset the SPI controller */
static void spi_flush_fifo(struct exynos_spi *regs)
{
	clrsetbits_le32(&regs->ch_cfg, SPI_CH_HS_EN, SPI_CH_RST);
	clrbits_le32(&regs->ch_cfg, SPI_CH_RST);
	setbits_le32(&regs->ch_cfg, SPI_TX_CH_ON | SPI_RX_CH_ON);
}