Lines Matching refs:spcr
593 u32 spcr, spbr = 0; in bcm_qspi_hw_set_parms() local
597 spcr = MSPI_MASTER_BIT; in bcm_qspi_hw_set_parms()
599 spcr = 0; in bcm_qspi_hw_set_parms()
609 spcr |= xp->bits_per_word << MSPI_SPCR0_MSB_BITS_SHIFT; in bcm_qspi_hw_set_parms()
611 spcr |= xp->mode & (MSPI_SPCR0_MSB_CPHA | MSPI_SPCR0_MSB_CPOL); in bcm_qspi_hw_set_parms()
612 bcm_qspi_write(qspi, MSPI, MSPI_SPCR0_MSB, spcr); in bcm_qspi_hw_set_parms()
615 spcr = 0; in bcm_qspi_hw_set_parms()
618 spcr |= MSPI_SPCR3_FASTBR; in bcm_qspi_hw_set_parms()
621 spcr |= MSPI_SPCR3_HALFDUPLEX | MSPI_SPCR3_HDOUTTYPE; in bcm_qspi_hw_set_parms()
625 spcr |= MSPI_SPCR3_SYSCLKSEL_108; in bcm_qspi_hw_set_parms()
631 spcr |= MSPI_SPCR3_DATA_REG_SZ; in bcm_qspi_hw_set_parms()
633 spcr |= MSPI_SPCR3_DAM_32BYTE | MSPI_SPCR3_FASTDT; in bcm_qspi_hw_set_parms()
641 spcr &= ~(MSPI_SPCR3_DATA_REG_SZ); in bcm_qspi_hw_set_parms()
647 spcr &= ~(MSPI_SPCR3_DAM_32BYTE); in bcm_qspi_hw_set_parms()
649 bcm_qspi_write(qspi, MSPI, MSPI_SPCR3, spcr); in bcm_qspi_hw_set_parms()