Lines Matching refs:qspi
896 struct fsl_qspi *qspi; in spi_setup_slave() local
906 qspi = spi_alloc_slave(struct fsl_qspi, bus, cs); in spi_setup_slave()
907 if (!qspi) in spi_setup_slave()
911 qspi->priv.flags |= QSPI_FLAG_REGMAP_ENDIAN_BIG; in spi_setup_slave()
915 qspi->priv.regs = regs; in spi_setup_slave()
923 qspi->priv.cur_amba_base = amba_bases[bus] + cs * FSL_QSPI_FLASH_SIZE; in spi_setup_slave()
925 qspi->slave.max_write_size = TX_BUFFER_SIZE; in spi_setup_slave()
927 mcr_val = qspi_read32(qspi->priv.flags, ®s->mcr); in spi_setup_slave()
933 qspi_write32(qspi->priv.flags, ®s->mcr, in spi_setup_slave()
937 qspi_cfg_smpr(&qspi->priv, in spi_setup_slave()
952 qspi_write32(qspi->priv.flags, ®s->sfa1ad, in spi_setup_slave()
954 qspi_write32(qspi->priv.flags, ®s->sfa2ad, in spi_setup_slave()
956 qspi_write32(qspi->priv.flags, ®s->sfb1ad, in spi_setup_slave()
958 qspi_write32(qspi->priv.flags, ®s->sfb2ad, in spi_setup_slave()
961 qspi_set_lut(&qspi->priv); in spi_setup_slave()
964 qspi_init_ahb_read(&qspi->priv); in spi_setup_slave()
967 qspi_module_disable(&qspi->priv, 0); in spi_setup_slave()
969 return &qspi->slave; in spi_setup_slave()
974 struct fsl_qspi *qspi = to_qspi_spi(slave); in spi_free_slave() local
976 free(qspi); in spi_free_slave()
992 struct fsl_qspi *qspi = to_qspi_spi(slave); in spi_xfer() local
994 return qspi_xfer(&qspi->priv, bitlen, dout, din, flags); in spi_xfer()