Searched refs:new_ctrl_reg (Results 1 – 1 of 1) sorted by relevance
214 u32 ctrl_reg, new_ctrl_reg; in cdns_spi_config_clock_mode() local216 new_ctrl_reg = cdns_spi_read(xspi, CDNS_SPI_CR); in cdns_spi_config_clock_mode()217 ctrl_reg = new_ctrl_reg; in cdns_spi_config_clock_mode()220 new_ctrl_reg &= ~(CDNS_SPI_CR_CPHA | CDNS_SPI_CR_CPOL); in cdns_spi_config_clock_mode()222 new_ctrl_reg |= CDNS_SPI_CR_CPHA; in cdns_spi_config_clock_mode()224 new_ctrl_reg |= CDNS_SPI_CR_CPOL; in cdns_spi_config_clock_mode()226 if (new_ctrl_reg != ctrl_reg) { in cdns_spi_config_clock_mode()234 cdns_spi_write(xspi, CDNS_SPI_CR, new_ctrl_reg); in cdns_spi_config_clock_mode()