• Home
  • Raw
  • Download

Lines Matching full:qspi

2  * Xilinx Zynq UltraScale+ MPSoC Quad-SPI (QSPI) controller driver
28 /* Generic QSPI register offsets */
143 * struct zynqmp_qspi - Defines qspi driver instance
144 * @regs: Virtual address of the QSPI controller registers
158 * @mode: Defines the mode in which QSPI is operating
251 * The default settings of the QSPI controller's configurable parameters on
263 * - Enable the QSPI controller
385 * @qspi: Pointer to the spi_device structure
388 static void zynqmp_qspi_chipselect(struct spi_device *qspi, bool is_high) in zynqmp_qspi_chipselect() argument
390 struct zynqmp_qspi *xqspi = spi_master_get_devdata(qspi->master); in zynqmp_qspi_chipselect()
429 * zynqmp_qspi_setup_transfer: Configure QSPI controller for specified
431 * @qspi: Pointer to the spi_device structure
435 * Sets the operational mode of QSPI controller for the next QSPI transfer and
447 * by the QSPI controller the driver will set the highest or lowest
450 static int zynqmp_qspi_setup_transfer(struct spi_device *qspi, in zynqmp_qspi_setup_transfer() argument
453 struct zynqmp_qspi *xqspi = spi_master_get_devdata(qspi->master); in zynqmp_qspi_setup_transfer()
460 req_hz = qspi->max_speed_hz; in zynqmp_qspi_setup_transfer()
473 /* Set the QSPI clock phase and clock polarity */ in zynqmp_qspi_setup_transfer()
476 if (qspi->mode & SPI_CPHA) in zynqmp_qspi_setup_transfer()
478 if (qspi->mode & SPI_CPOL) in zynqmp_qspi_setup_transfer()
488 * zynqmp_qspi_setup: Configure the QSPI controller
489 * @qspi: Pointer to the spi_device structure
491 * Sets the operational mode of QSPI controller for the next QSPI transfer,
492 * baud rate and divisor value to setup the requested qspi clock.
496 static int zynqmp_qspi_setup(struct spi_device *qspi) in zynqmp_qspi_setup() argument
498 if (qspi->master->busy) in zynqmp_qspi_setup()
558 * zynqmp_process_dma_irq: Handler for DMA done interrupt of QSPI
606 * zynqmp_qspi_irq: Interrupt service routine of the QSPI controller
789 * zynqmp_qspi_start_transfer: Initiates the QSPI transfer
792 * @qspi: Pointer to the spi_device structure
796 * This function fills the TX FIFO, starts the QSPI transfer, and waits for the
802 struct spi_device *qspi, in zynqmp_qspi_start_transfer() argument
811 zynqmp_qspi_setup_transfer(qspi, transfer); in zynqmp_qspi_start_transfer()
897 * zynqmp_qspi_suspend: Suspend method for the QSPI driver
900 * This function stops the QSPI driver queue and disables the QSPI controller
916 * zynqmp_qspi_resume: Resume method for the QSPI driver
919 * The function starts the QSPI driver queue and initializes the QSPI
1008 * zynqmp_qspi_probe: Probe method for the QSPI driver
1069 /* QSPI controller initializations */ in zynqmp_qspi_probe()
1123 * zynqmp_qspi_remove: Remove method for the QSPI driver
1149 { .compatible = "xlnx,zynqmp-qspi-1.0", },
1159 .name = "zynqmp-qspi",
1168 MODULE_DESCRIPTION("Xilinx Zynqmp QSPI driver");