Home
last modified time | relevance | path

Searched refs:xqspi (Results 1 – 2 of 2) sorted by relevance

/drivers/spi/
Dspi-zynqmp-gqspi.c186 static u32 zynqmp_gqspi_read(struct zynqmp_qspi *xqspi, u32 offset) in zynqmp_gqspi_read() argument
188 return readl_relaxed(xqspi->regs + offset); in zynqmp_gqspi_read()
197 static inline void zynqmp_gqspi_write(struct zynqmp_qspi *xqspi, u32 offset, in zynqmp_gqspi_write() argument
200 writel_relaxed(val, (xqspi->regs + offset)); in zynqmp_gqspi_write()
268 static void zynqmp_qspi_init_hw(struct zynqmp_qspi *xqspi) in zynqmp_qspi_init_hw() argument
273 zynqmp_gqspi_write(xqspi, GQSPI_SEL_OFST, GQSPI_SEL_MASK); in zynqmp_qspi_init_hw()
275 zynqmp_gqspi_write(xqspi, GQSPI_ISR_OFST, in zynqmp_qspi_init_hw()
276 zynqmp_gqspi_read(xqspi, GQSPI_ISR_OFST) | in zynqmp_qspi_init_hw()
279 zynqmp_gqspi_write(xqspi, GQSPI_QSPIDMA_DST_I_STS_OFST, in zynqmp_qspi_init_hw()
280 zynqmp_gqspi_read(xqspi, in zynqmp_qspi_init_hw()
[all …]
Dspi-zynq-qspi.c149 static inline u32 zynq_qspi_read(struct zynq_qspi *xqspi, u32 offset) in zynq_qspi_read() argument
151 return readl_relaxed(xqspi->regs + offset); in zynq_qspi_read()
154 static inline void zynq_qspi_write(struct zynq_qspi *xqspi, u32 offset, in zynq_qspi_write() argument
157 writel_relaxed(val, xqspi->regs + offset); in zynq_qspi_write()
181 static void zynq_qspi_init_hw(struct zynq_qspi *xqspi, unsigned int num_cs) in zynq_qspi_init_hw() argument
185 zynq_qspi_write(xqspi, ZYNQ_QSPI_ENABLE_OFFSET, 0); in zynq_qspi_init_hw()
186 zynq_qspi_write(xqspi, ZYNQ_QSPI_IDIS_OFFSET, ZYNQ_QSPI_IXR_ALL_MASK); in zynq_qspi_init_hw()
194 zynq_qspi_write(xqspi, ZYNQ_QSPI_LINEAR_CFG_OFFSET, config_reg); in zynq_qspi_init_hw()
197 while (zynq_qspi_read(xqspi, ZYNQ_QSPI_STATUS_OFFSET) & in zynq_qspi_init_hw()
199 zynq_qspi_read(xqspi, ZYNQ_QSPI_RXD_OFFSET); in zynq_qspi_init_hw()
[all …]