zynq_qspi_config_op(9)
π zynq_qspi_config_op(9) π
okay so bestie, welcome to this page from the Kernel API Manual β itβs giving βtiny function, very specific job,β and honestly? iconic. This one is all about configuring the QSPI controller for a specified transfer. π β¨
πΈ NAME πΈ
zynq_qspi_config_opβ Configure QSPI controller for specified transfer.
π¦ SYNOPSIS π¦
int zynq_qspi_config_op (struct zynq_qspi *xqspi , struct spi_device
*spi , const struct spi_mem_op *op );
β¨ ARGUMENTS β¨
bestie, hereβs the cast of characters you pass in:
xqspiβ Pointer to thezynq_qspistructure.spiβ Pointer to thespi_devicestructure.opβ The memory operation to execute.
π DESCRIPTION π
This function sets the operational mode of the QSPI controller for the next QSPI transfer, and it sets the requested clock frequency.
Thatβs the whole main-character job: mode for the next transfer, requested clock frequency, done. periodt. π₯
π₯ RETURN π₯
It returns 0 on success and -EINVAL on invalid input parameter.
so if you get -EINVAL, your input parameter said no π β check it, bestie.
π«Ά NOTE π«Ά
β οΈ frequency behavior is lowkey important, so listen up: If the requested frequency is not an exact match with what can be obtained using the prescalar value, the driver sets the clock frequency which is lower than the requested frequency (maximum lower) for the transfer. If the requested frequency is higher or lower than that is supported by the QSPI controller, the driver will set the highest or lowest frequency supported by controller.
π SEE ALSO π
Kernel file ./drivers/spi/spi-zynq-qspi.c is the home base. The whole squad is: struct zynq_qspi(9), zynq_qspi_init_hw(9), zynq_qspi_rxfifo_op(9), zynq_qspi_txfifo_op(9), zynq_qspi_chipselect(9), zynq_qspi_setup_op(9), zynq_qspi_write_op(9), zynq_qspi_read_op(9), zynq_qspi_irq(9), zynq_qspi_exec_mem_op(9), zynq_qspi_probe(9), zynq_qspi_remove(9).
okay bye bestie β source/version info: ./drivers/spi, and this page is dated October 2026 ππ«Άπ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms