Lines Matching refs:hw_mode
97 if (cs->hw_mode == mpc8xxx_spi_read_reg(mode)) in fsl_spi_change_mode()
104 mpc8xxx_spi_write_reg(mode, cs->hw_mode & ~SPMODE_ENABLE); in fsl_spi_change_mode()
110 mpc8xxx_spi_write_reg(mode, cs->hw_mode); in fsl_spi_change_mode()
209 cs->hw_mode &= ~(SPMODE_LEN(0xF) | SPMODE_DIV16 in fsl_spi_setup_transfer()
212 cs->hw_mode |= SPMODE_LEN(bits_per_word); in fsl_spi_setup_transfer()
215 cs->hw_mode |= SPMODE_DIV16; in fsl_spi_setup_transfer()
228 cs->hw_mode |= SPMODE_PM(pm); in fsl_spi_setup_transfer()
374 u32 hw_mode; in fsl_spi_setup() local
391 hw_mode = cs->hw_mode; /* Save original settings */ in fsl_spi_setup()
392 cs->hw_mode = mpc8xxx_spi_read_reg(®_base->mode); in fsl_spi_setup()
394 cs->hw_mode &= ~(SPMODE_CP_BEGIN_EDGECLK | SPMODE_CI_INACTIVEHIGH in fsl_spi_setup()
398 cs->hw_mode |= SPMODE_CP_BEGIN_EDGECLK; in fsl_spi_setup()
400 cs->hw_mode |= SPMODE_CI_INACTIVEHIGH; in fsl_spi_setup()
402 cs->hw_mode |= SPMODE_REV; in fsl_spi_setup()
404 cs->hw_mode |= SPMODE_LOOP; in fsl_spi_setup()
408 cs->hw_mode = hw_mode; /* Restore settings */ in fsl_spi_setup()