/drivers/spi/ |
D | spi-bcm-qspi.c | 255 static inline bool has_bspi(struct bcm_qspi *qspi) in has_bspi() argument 257 return qspi->bspi_mode; in has_bspi() 261 static inline bool bcm_qspi_has_fastbr(struct bcm_qspi *qspi) in bcm_qspi_has_fastbr() argument 263 if (!has_bspi(qspi) && in bcm_qspi_has_fastbr() 264 ((qspi->mspi_maj_rev >= 1) && in bcm_qspi_has_fastbr() 265 (qspi->mspi_min_rev >= 5))) in bcm_qspi_has_fastbr() 272 static inline bool bcm_qspi_has_sysclk_108(struct bcm_qspi *qspi) in bcm_qspi_has_sysclk_108() argument 274 if (!has_bspi(qspi) && (qspi->mspi_spcr3_sysclk || in bcm_qspi_has_sysclk_108() 275 ((qspi->mspi_maj_rev >= 1) && in bcm_qspi_has_sysclk_108() 276 (qspi->mspi_min_rev >= 6)))) in bcm_qspi_has_sysclk_108() [all …]
|
D | spi-stm32-qspi.c | 132 struct stm32_qspi *qspi = (struct stm32_qspi *)dev_id; in stm32_qspi_irq() local 135 cr = readl_relaxed(qspi->io_base + QSPI_CR); in stm32_qspi_irq() 136 sr = readl_relaxed(qspi->io_base + QSPI_SR); in stm32_qspi_irq() 141 writel_relaxed(cr, qspi->io_base + QSPI_CR); in stm32_qspi_irq() 142 complete(&qspi->match_completion); in stm32_qspi_irq() 150 writel_relaxed(cr, qspi->io_base + QSPI_CR); in stm32_qspi_irq() 151 complete(&qspi->data_completion); in stm32_qspi_irq() 167 static int stm32_qspi_tx_poll(struct stm32_qspi *qspi, in stm32_qspi_tx_poll() argument 185 ret = readl_relaxed_poll_timeout_atomic(qspi->io_base + QSPI_SR, in stm32_qspi_tx_poll() 189 dev_err(qspi->dev, "fifo timeout (len:%d stat:%#x)\n", in stm32_qspi_tx_poll() [all …]
|
D | spi-ti-qspi.c | 127 static inline unsigned long ti_qspi_read(struct ti_qspi *qspi, in ti_qspi_read() argument 130 return readl(qspi->base + reg); in ti_qspi_read() 133 static inline void ti_qspi_write(struct ti_qspi *qspi, in ti_qspi_write() argument 136 writel(val, qspi->base + reg); in ti_qspi_write() 141 struct ti_qspi *qspi = spi_master_get_devdata(spi->master); in ti_qspi_setup() local 145 dev_dbg(qspi->dev, "master busy doing other transfers\n"); in ti_qspi_setup() 149 if (!qspi->master->max_speed_hz) { in ti_qspi_setup() 150 dev_err(qspi->dev, "spi max frequency not defined\n"); in ti_qspi_setup() 154 spi->max_speed_hz = min(spi->max_speed_hz, qspi->master->max_speed_hz); in ti_qspi_setup() 156 ret = pm_runtime_resume_and_get(qspi->dev); in ti_qspi_setup() [all …]
|
D | spi-microchip-core-qspi.c | 126 static int mchp_coreqspi_set_mode(struct mchp_coreqspi *qspi, const struct spi_mem_op *op) in mchp_coreqspi_set_mode() argument 128 u32 control = readl_relaxed(qspi->regs + REG_CONTROL); in mchp_coreqspi_set_mode() 156 writel_relaxed(control, qspi->regs + REG_CONTROL); in mchp_coreqspi_set_mode() 161 static inline void mchp_coreqspi_read_op(struct mchp_coreqspi *qspi) in mchp_coreqspi_read_op() argument 165 if (!qspi->rx_len) in mchp_coreqspi_read_op() 168 control = readl_relaxed(qspi->regs + REG_CONTROL); in mchp_coreqspi_read_op() 175 writel_relaxed(control, qspi->regs + REG_CONTROL); in mchp_coreqspi_read_op() 177 while (qspi->rx_len >= 4) { in mchp_coreqspi_read_op() 178 while (readl_relaxed(qspi->regs + REG_STATUS) & STATUS_RXFIFOEMPTY) in mchp_coreqspi_read_op() 180 data = readl_relaxed(qspi->regs + REG_X4_RX_DATA); in mchp_coreqspi_read_op() [all …]
|
D | Makefile | 33 obj-$(CONFIG_SPI_BCM_QSPI) += spi-iproc-qspi.o spi-brcmstb-qspi.o spi-bcm-qspi.o 40 obj-$(CONFIG_SPI_COLDFIRE_QSPI) += spi-coldfire-qspi.o 57 obj-$(CONFIG_SPI_FSL_QUADSPI) += spi-fsl-qspi.o 76 obj-$(CONFIG_SPI_MICROCHIP_CORE_QSPI) += spi-microchip-core-qspi.o 95 obj-$(CONFIG_SPI_TI_QSPI) += spi-ti-qspi.o 105 obj-$(CONFIG_SPI_QCOM_QSPI) += spi-qcom-qspi.o 126 obj-$(CONFIG_SPI_STM32_QSPI) += spi-stm32-qspi.o 145 obj-$(CONFIG_SPI_ZYNQ_QSPI) += spi-zynq-qspi.o
|
D | spi-zynqmp-gqspi.c | 359 static void zynqmp_qspi_chipselect(struct spi_device *qspi, bool is_high) in zynqmp_qspi_chipselect() argument 361 struct zynqmp_qspi *xqspi = spi_master_get_devdata(qspi->master); in zynqmp_qspi_chipselect() 368 if (!qspi->chip_select) { in zynqmp_qspi_chipselect() 455 struct spi_device *qspi) in zynqmp_qspi_config_op() argument 466 (GQSPI_BAUD_DIV_SHIFT << baud_rate_val)) > qspi->max_speed_hz) in zynqmp_qspi_config_op() 474 if (qspi->mode & SPI_CPHA) in zynqmp_qspi_config_op() 476 if (qspi->mode & SPI_CPOL) in zynqmp_qspi_config_op() 494 static int zynqmp_qspi_setup_op(struct spi_device *qspi) in zynqmp_qspi_setup_op() argument 496 struct spi_controller *ctlr = qspi->master; in zynqmp_qspi_setup_op()
|
D | spi-zynq-qspi.c | 381 struct zynq_qspi *qspi = spi_controller_get_devdata(ctlr); in zynq_qspi_setup_op() local 386 clk_enable(qspi->refclk); in zynq_qspi_setup_op() 387 clk_enable(qspi->pclk); in zynq_qspi_setup_op() 388 zynq_qspi_write(qspi, ZYNQ_QSPI_ENABLE_OFFSET, in zynq_qspi_setup_op()
|
D | spi-tegra210-quad.c | 698 static int tegra_qspi_start_cpu_based_transfer(struct tegra_qspi *qspi, struct spi_transfer *t) in tegra_qspi_start_cpu_based_transfer() argument 703 if (qspi->cur_direction & DATA_DIR_TX) in tegra_qspi_start_cpu_based_transfer() 704 cur_words = tegra_qspi_fill_tx_fifo_from_client_txbuf(qspi, t); in tegra_qspi_start_cpu_based_transfer() 706 cur_words = qspi->curr_dma_words; in tegra_qspi_start_cpu_based_transfer() 709 tegra_qspi_writel(qspi, val, QSPI_DMA_BLK); in tegra_qspi_start_cpu_based_transfer() 711 tegra_qspi_unmask_irq(qspi); in tegra_qspi_start_cpu_based_transfer() 713 qspi->is_curr_dma_xfer = false; in tegra_qspi_start_cpu_based_transfer() 714 val = qspi->command1_reg; in tegra_qspi_start_cpu_based_transfer() 716 tegra_qspi_writel(qspi, val, QSPI_COMMAND1); in tegra_qspi_start_cpu_based_transfer()
|
D | Kconfig | 600 If built as a module, it will be called spi-microchip-core-qspi.
|
/drivers/pinctrl/qcom/ |
D | pinctrl-sc8280xp.c | 1592 FUNCTION(qspi), 1724 [76] = PINGROUP(76, qspi, sdc40, atest_usb, _, _, _, _), 1726 [78] = PINGROUP(78, qspi, sdc42, atest_usb, _, _, _, _), 1727 [79] = PINGROUP(79, qspi, sdc43, atest_usb, ddr_pxi6, _, _, _),
|
/drivers/pinctrl/bcm/ |
D | pinctrl-cygnus-mux.c | 681 CYGNUS_PIN_FUNCTION(qspi),
|
/drivers/pinctrl/tegra/ |
D | pinctrl-tegra210.c | 1234 FUNCTION(qspi),
|
D | pinctrl-tegra194.c | 1292 TEGRA_PIN_FUNCTION(qspi),
|
/drivers/pinctrl/renesas/ |
D | pfc-r8a7792.c | 1953 SH_PFC_FUNCTION(qspi),
|
D | pfc-r8a7794.c | 4601 SH_PFC_FUNCTION(qspi),
|
D | pfc-r8a7790.c | 4887 SH_PFC_FUNCTION(qspi),
|
D | pfc-r8a7791.c | 5379 SH_PFC_FUNCTION(qspi),
|