Lines Matching refs:qspi_write32
152 static void qspi_write32(u32 flags, u32 *addr, u32 val) in qspi_write32() function
194 qspi_write32(priv->flags, ®s->lutkey, LUT_KEY_VALUE); in qspi_set_lut()
195 qspi_write32(priv->flags, ®s->lckcr, QSPI_LCKCR_UNLOCK); in qspi_set_lut()
199 qspi_write32(priv->flags, ®s->lut[lut_base], OPRND0(QSPI_CMD_WREN) | in qspi_set_lut()
201 qspi_write32(priv->flags, ®s->lut[lut_base + 1], 0); in qspi_set_lut()
202 qspi_write32(priv->flags, ®s->lut[lut_base + 2], 0); in qspi_set_lut()
203 qspi_write32(priv->flags, ®s->lut[lut_base + 3], 0); in qspi_set_lut()
208 qspi_write32(priv->flags, ®s->lut[lut_base], in qspi_set_lut()
214 qspi_write32(priv->flags, ®s->lut[lut_base], in qspi_set_lut()
219 qspi_write32(priv->flags, ®s->lut[lut_base], in qspi_set_lut()
225 qspi_write32(priv->flags, ®s->lut[lut_base + 1], in qspi_set_lut()
229 qspi_write32(priv->flags, ®s->lut[lut_base + 2], 0); in qspi_set_lut()
230 qspi_write32(priv->flags, ®s->lut[lut_base + 3], 0); in qspi_set_lut()
234 qspi_write32(priv->flags, ®s->lut[lut_base], OPRND0(QSPI_CMD_RDSR) | in qspi_set_lut()
237 qspi_write32(priv->flags, ®s->lut[lut_base + 1], 0); in qspi_set_lut()
238 qspi_write32(priv->flags, ®s->lut[lut_base + 2], 0); in qspi_set_lut()
239 qspi_write32(priv->flags, ®s->lut[lut_base + 3], 0); in qspi_set_lut()
244 qspi_write32(priv->flags, ®s->lut[lut_base], OPRND0(QSPI_CMD_SE) | in qspi_set_lut()
249 qspi_write32(priv->flags, ®s->lut[lut_base], in qspi_set_lut()
254 qspi_write32(priv->flags, ®s->lut[lut_base], in qspi_set_lut()
259 qspi_write32(priv->flags, ®s->lut[lut_base + 1], 0); in qspi_set_lut()
260 qspi_write32(priv->flags, ®s->lut[lut_base + 2], 0); in qspi_set_lut()
261 qspi_write32(priv->flags, ®s->lut[lut_base + 3], 0); in qspi_set_lut()
265 qspi_write32(priv->flags, ®s->lut[lut_base], in qspi_set_lut()
268 qspi_write32(priv->flags, ®s->lut[lut_base + 1], 0); in qspi_set_lut()
269 qspi_write32(priv->flags, ®s->lut[lut_base + 2], 0); in qspi_set_lut()
270 qspi_write32(priv->flags, ®s->lut[lut_base + 3], 0); in qspi_set_lut()
275 qspi_write32(priv->flags, ®s->lut[lut_base], OPRND0(QSPI_CMD_PP) | in qspi_set_lut()
280 qspi_write32(priv->flags, ®s->lut[lut_base], in qspi_set_lut()
285 qspi_write32(priv->flags, ®s->lut[lut_base], in qspi_set_lut()
296 qspi_write32(priv->flags, ®s->lut[lut_base + 1], OPRND0(0) | in qspi_set_lut()
299 qspi_write32(priv->flags, ®s->lut[lut_base + 1], in qspi_set_lut()
303 qspi_write32(priv->flags, ®s->lut[lut_base + 2], 0); in qspi_set_lut()
304 qspi_write32(priv->flags, ®s->lut[lut_base + 3], 0); in qspi_set_lut()
308 qspi_write32(priv->flags, ®s->lut[lut_base], OPRND0(QSPI_CMD_RDID) | in qspi_set_lut()
311 qspi_write32(priv->flags, ®s->lut[lut_base + 1], 0); in qspi_set_lut()
312 qspi_write32(priv->flags, ®s->lut[lut_base + 2], 0); in qspi_set_lut()
313 qspi_write32(priv->flags, ®s->lut[lut_base + 3], 0); in qspi_set_lut()
317 qspi_write32(priv->flags, ®s->lut[lut_base], OPRND0(QSPI_CMD_BE_4K) | in qspi_set_lut()
328 qspi_write32(priv->flags, ®s->lut[lut_base], OPRND0(QSPI_CMD_BRRD) | in qspi_set_lut()
333 qspi_write32(priv->flags, ®s->lut[lut_base], OPRND0(QSPI_CMD_BRWR) | in qspi_set_lut()
338 qspi_write32(priv->flags, ®s->lut[lut_base], OPRND0(QSPI_CMD_RDEAR) | in qspi_set_lut()
343 qspi_write32(priv->flags, ®s->lut[lut_base], OPRND0(QSPI_CMD_WREAR) | in qspi_set_lut()
353 qspi_write32(priv->flags, ®s->lut[lut_base], in qspi_set_lut()
357 qspi_write32(priv->flags, ®s->lut[lut_base + 1], in qspi_set_lut()
367 qspi_write32(priv->flags, ®s->lut[lut_base], in qspi_set_lut()
371 qspi_write32(priv->flags, ®s->lut[lut_base + 1], in qspi_set_lut()
375 qspi_write32(priv->flags, ®s->lutkey, LUT_KEY_VALUE); in qspi_set_lut()
376 qspi_write32(priv->flags, ®s->lckcr, QSPI_LCKCR_LOCK); in qspi_set_lut()
393 qspi_write32(priv->flags, ®s->mcr, reg); in qspi_ahb_invalid()
402 qspi_write32(priv->flags, ®s->mcr, reg); in qspi_ahb_invalid()
414 qspi_write32(priv->flags, ®s->mcr, in qspi_ahb_read()
422 qspi_write32(priv->flags, ®s->mcr, mcr_reg); in qspi_ahb_read()
432 qspi_write32(priv->flags, ®s->mcr, reg | QSPI_MCR_MDIS_MASK); in qspi_enable_ddr_mode()
438 qspi_write32(priv->flags, ®s->smpr, reg2); in qspi_enable_ddr_mode()
445 qspi_write32(priv->flags, ®s->mcr, reg); in qspi_enable_ddr_mode()
466 qspi_write32(priv->flags, ®s->buf0cr, QSPI_BUFXCR_INVALID_MSTRID); in qspi_init_ahb_read()
467 qspi_write32(priv->flags, ®s->buf1cr, QSPI_BUFXCR_INVALID_MSTRID); in qspi_init_ahb_read()
468 qspi_write32(priv->flags, ®s->buf2cr, QSPI_BUFXCR_INVALID_MSTRID); in qspi_init_ahb_read()
469 qspi_write32(priv->flags, ®s->buf3cr, QSPI_BUF3CR_ALLMST_MASK | in qspi_init_ahb_read()
473 qspi_write32(priv->flags, ®s->buf0ind, 0); in qspi_init_ahb_read()
474 qspi_write32(priv->flags, ®s->buf1ind, 0); in qspi_init_ahb_read()
475 qspi_write32(priv->flags, ®s->buf2ind, 0); in qspi_init_ahb_read()
481 qspi_write32(priv->flags, ®s->bfgencr, in qspi_init_ahb_read()
497 qspi_write32(priv->flags, ®s->mcr, in qspi_op_rdbank()
500 qspi_write32(priv->flags, ®s->rbct, QSPI_RBCT_RXBRD_USEIPS); in qspi_op_rdbank()
502 qspi_write32(priv->flags, ®s->sfar, priv->cur_amba_base); in qspi_op_rdbank()
509 qspi_write32(priv->flags, ®s->ipcr, in qspi_op_rdbank()
524 qspi_write32(priv->flags, ®s->mcr, in qspi_op_rdbank()
531 qspi_write32(priv->flags, ®s->mcr, mcr_reg); in qspi_op_rdbank()
542 qspi_write32(priv->flags, ®s->mcr, in qspi_op_rdid()
545 qspi_write32(priv->flags, ®s->rbct, QSPI_RBCT_RXBRD_USEIPS); in qspi_op_rdid()
547 qspi_write32(priv->flags, ®s->sfar, priv->cur_amba_base); in qspi_op_rdid()
549 qspi_write32(priv->flags, ®s->ipcr, in qspi_op_rdid()
570 qspi_write32(priv->flags, ®s->mcr, mcr_reg); in qspi_op_rdid()
588 qspi_write32(priv->flags, ®s->mcr, in qspi_op_read()
591 qspi_write32(priv->flags, ®s->rbct, QSPI_RBCT_RXBRD_USEIPS); in qspi_op_read()
598 qspi_write32(priv->flags, ®s->sfar, to_or_from); in qspi_op_read()
603 qspi_write32(priv->flags, ®s->ipcr, in qspi_op_read()
624 qspi_write32(priv->flags, ®s->mcr, in qspi_op_read()
629 qspi_write32(priv->flags, ®s->mcr, mcr_reg); in qspi_op_read()
640 qspi_write32(priv->flags, ®s->mcr, in qspi_op_write()
643 qspi_write32(priv->flags, ®s->rbct, QSPI_RBCT_RXBRD_USEIPS); in qspi_op_write()
649 qspi_write32(priv->flags, ®s->ipcr, in qspi_op_write()
654 qspi_write32(priv->flags, ®s->ipcr, in qspi_op_write()
664 qspi_write32(priv->flags, ®s->mcr, in qspi_op_write()
682 qspi_write32(priv->flags, ®s->sfar, to_or_from); in qspi_op_write()
697 qspi_write32(priv->flags, ®s->tbdr, data); in qspi_op_write()
701 qspi_write32(priv->flags, ®s->ipcr, in qspi_op_write()
706 qspi_write32(priv->flags, ®s->mcr, mcr_reg); in qspi_op_write()
715 qspi_write32(priv->flags, ®s->mcr, in qspi_op_rdsr()
718 qspi_write32(priv->flags, ®s->rbct, QSPI_RBCT_RXBRD_USEIPS); in qspi_op_rdsr()
720 qspi_write32(priv->flags, ®s->sfar, priv->cur_amba_base); in qspi_op_rdsr()
722 qspi_write32(priv->flags, ®s->ipcr, in qspi_op_rdsr()
735 qspi_write32(priv->flags, ®s->mcr, in qspi_op_rdsr()
742 qspi_write32(priv->flags, ®s->mcr, mcr_reg); in qspi_op_rdsr()
752 qspi_write32(priv->flags, ®s->mcr, in qspi_op_erase()
755 qspi_write32(priv->flags, ®s->rbct, QSPI_RBCT_RXBRD_USEIPS); in qspi_op_erase()
758 qspi_write32(priv->flags, ®s->sfar, to_or_from); in qspi_op_erase()
760 qspi_write32(priv->flags, ®s->ipcr, in qspi_op_erase()
766 qspi_write32(priv->flags, ®s->ipcr, in qspi_op_erase()
769 qspi_write32(priv->flags, ®s->ipcr, in qspi_op_erase()
775 qspi_write32(priv->flags, ®s->mcr, mcr_reg); in qspi_op_erase()
860 qspi_write32(priv->flags, &priv->regs->mcr, mcr_val); in qspi_module_disable()
870 qspi_write32(priv->flags, &priv->regs->smpr, smpr_val); in qspi_cfg_smpr()
933 qspi_write32(qspi->priv.flags, ®s->mcr, 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()
1052 qspi_write32(priv->flags, &priv->regs->mcr, in fsl_qspi_probe()
1085 qspi_write32(priv->flags, &priv->regs->sfa1ad, in fsl_qspi_probe()
1091 qspi_write32(priv->flags, &priv->regs->sfa2ad, in fsl_qspi_probe()
1093 qspi_write32(priv->flags, &priv->regs->sfb1ad, in fsl_qspi_probe()
1095 qspi_write32(priv->flags, &priv->regs->sfb2ad, in fsl_qspi_probe()
1099 qspi_write32(priv->flags, &priv->regs->sfa2ad, in fsl_qspi_probe()
1101 qspi_write32(priv->flags, &priv->regs->sfb1ad, in fsl_qspi_probe()
1103 qspi_write32(priv->flags, &priv->regs->sfb2ad, in fsl_qspi_probe()