Lines Matching refs:qspi_writel

332 static void qspi_writel(struct fsl_qspi *q, u32 val, void __iomem *addr)  in qspi_writel()  function
461 qspi_writel(q, QUADSPI_LUTKEY_VALUE, q->iobase + QUADSPI_LUTKEY); in fsl_qspi_prepare_lut()
462 qspi_writel(q, QUADSPI_LCKER_UNLOCK, q->iobase + QUADSPI_LCKCR); in fsl_qspi_prepare_lut()
469 qspi_writel(q, lutval[i], base + QUADSPI_LUT_REG(i)); in fsl_qspi_prepare_lut()
475 qspi_writel(q, lutval[i], base + QUADSPI_AHB_LUT_REG(i)); in fsl_qspi_prepare_lut()
480 qspi_writel(q, QUADSPI_LUTKEY_VALUE, q->iobase + QUADSPI_LUTKEY); in fsl_qspi_prepare_lut()
481 qspi_writel(q, QUADSPI_LCKER_LOCK, q->iobase + QUADSPI_LCKCR); in fsl_qspi_prepare_lut()
497 qspi_writel(q, reg, q->iobase + QUADSPI_MCR); in fsl_qspi_invalidate()
506 qspi_writel(q, reg, q->iobase + QUADSPI_MCR); in fsl_qspi_invalidate()
557 qspi_writel(q, val, base + QUADSPI_TBDR); in fsl_qspi_fill_txfifo()
563 qspi_writel(q, val, base + QUADSPI_TBDR); in fsl_qspi_fill_txfifo()
568 qspi_writel(q, 0, base + QUADSPI_TBDR); in fsl_qspi_fill_txfifo()
614 qspi_writel(q, op->data.nbytes | QUADSPI_IPCR_SEQID(SEQID_LUT), in fsl_qspi_do_op()
651 qspi_writel(q, in fsl_qspi_exec_op()
655 qspi_writel(q, qspi_readl(q, base + QUADSPI_MCR) | in fsl_qspi_exec_op()
659 qspi_writel(q, QUADSPI_SPTRCLR_BFPTRC | QUADSPI_SPTRCLR_IPPTRC, in fsl_qspi_exec_op()
673 qspi_writel(q, QUADSPI_RBCT_WMRK_MASK | in fsl_qspi_exec_op()
712 qspi_writel(q, QUADSPI_MCR_SWRSTSD_MASK | QUADSPI_MCR_SWRSTHD_MASK, in fsl_qspi_default_setup()
717 qspi_writel(q, QUADSPI_MCR_MDIS_MASK | QUADSPI_MCR_RESERVED_MASK, in fsl_qspi_default_setup()
726 qspi_writel(q, qspi_readl(q, base + QUADSPI_FLSHCR) & in fsl_qspi_default_setup()
731 qspi_writel(q, reg & ~(QUADSPI_SMPR_FSDLY_MASK in fsl_qspi_default_setup()
737 qspi_writel(q, 0, base + QUADSPI_BUF0IND); in fsl_qspi_default_setup()
738 qspi_writel(q, 0, base + QUADSPI_BUF1IND); in fsl_qspi_default_setup()
739 qspi_writel(q, 0, base + QUADSPI_BUF2IND); in fsl_qspi_default_setup()
742 qspi_writel(q, QUADSPI_BFGENCR_SEQID(SEQID_LUT_AHB), in fsl_qspi_default_setup()
745 qspi_writel(q, QUADSPI_BFGENCR_SEQID(SEQID_LUT), in fsl_qspi_default_setup()
748 qspi_writel(q, QUADSPI_RBCT_WMRK_MASK, base + QUADSPI_RBCT); in fsl_qspi_default_setup()
749 qspi_writel(q, QUADSPI_BUF3CR_ALLMST_MASK | in fsl_qspi_default_setup()
764 qspi_writel(q, memsize_cs + addr_offset, in fsl_qspi_default_setup()
766 qspi_writel(q, memsize_cs * 2 + addr_offset, in fsl_qspi_default_setup()
769 qspi_writel(q, memsize_cs * 3 + addr_offset, in fsl_qspi_default_setup()
771 qspi_writel(q, memsize_cs * 4 + addr_offset, in fsl_qspi_default_setup()
778 qspi_writel(q, QUADSPI_MCR_RESERVED_MASK | QUADSPI_MCR_END_CFG_MASK, in fsl_qspi_default_setup()