Lines Matching refs:mspi_hw
38 priv->mspi_hw = QSPI_MSPI_MODE_REG_BASE; in iproc_qspi_setup()
47 mmio_write_32(priv->mspi_hw + MSPI_SPCR1_LSB_REG, 0); in iproc_qspi_setup()
48 mmio_write_32(priv->mspi_hw + MSPI_SPCR1_MSB_REG, 0); in iproc_qspi_setup()
49 mmio_write_32(priv->mspi_hw + MSPI_NEWQP_REG, 0); in iproc_qspi_setup()
50 mmio_write_32(priv->mspi_hw + MSPI_ENDQP_REG, 0); in iproc_qspi_setup()
51 mmio_write_32(priv->mspi_hw + MSPI_SPCR2_REG, 0); in iproc_qspi_setup()
57 mmio_write_32(priv->mspi_hw + MSPI_SPCR0_LSB_REG, spbr); in iproc_qspi_setup()
61 mmio_write_32(priv->mspi_hw + MSPI_SPCR0_MSB_REG, in iproc_qspi_setup()
68 mmio_read_32(priv->mspi_hw + MSPI_SPCR0_LSB_REG)); in iproc_qspi_setup()
70 mmio_read_32(priv->mspi_hw + MSPI_SPCR0_MSB_REG)); in iproc_qspi_setup()
72 mmio_read_32(priv->mspi_hw + MSPI_SPCR1_LSB_REG)); in iproc_qspi_setup()
74 mmio_read_32(priv->mspi_hw + MSPI_SPCR1_MSB_REG)); in iproc_qspi_setup()
76 mmio_read_32(priv->mspi_hw + MSPI_SPCR2_REG)); in iproc_qspi_setup()
187 mmio_write_32(priv->mspi_hw + MSPI_CDRAM_REG + in mspi_xfer()
193 mmio_write_32(priv->mspi_hw + in mspi_xfer()
205 mmio_write_32(priv->mspi_hw + MSPI_CDRAM_REG + in mspi_xfer()
208 mmio_write_32(priv->mspi_hw + in mspi_xfer()
219 mmio_write_32(priv->mspi_hw + MSPI_NEWQP_REG, 0); in mspi_xfer()
220 mmio_write_32(priv->mspi_hw + MSPI_ENDQP_REG, queues - 1); in mspi_xfer()
224 mmio_write_32(priv->mspi_hw + MSPI_CDRAM_REG + in mspi_xfer()
228 mmio_write_32(priv->mspi_hw + MSPI_STATUS_REG, 0); in mspi_xfer()
230 mmio_write_32(priv->mspi_hw + MSPI_SPCR2_REG, MSPI_SPE); in mspi_xfer()
232 mmio_write_32(priv->mspi_hw + MSPI_SPCR2_REG, in mspi_xfer()
238 if (mmio_read_32(priv->mspi_hw + MSPI_STATUS_REG) & in mspi_xfer()
244 if ((mmio_read_32(priv->mspi_hw + MSPI_STATUS_REG) & in mspi_xfer()
254 rx[i] = mmio_read_32(priv->mspi_hw + in mspi_xfer()
261 rx[i] = mmio_read_32(priv->mspi_hw + in mspi_xfer()
305 mmio_write_32(priv->mspi_hw + MSPI_WRITE_LOCK_REG, 1); in iproc_qspi_xfer()
314 mmio_write_32(priv->mspi_hw + MSPI_WRITE_LOCK_REG, 0); in iproc_qspi_xfer()