cdns_spi_config_clock_freq(9)
π cdns_spi_config_clock_freq(9) β Kernel API Manual π
πΈ NAME πΈ
cdns_spi_config_clock_freq β sets clock frequency π
β¨ SYNOPSIS β¨
void cdns_spi_config_clock_freq (struct spi_device *spi , struct
spi_transfer *transfer );
π ARGUMENTS π
spiβ a pointer to thespi_devicestructure, bestie π«Άtransferβ a pointer to thespi_transferstructure, and it's literally the one handing over the info about the next transfer's setup parameters β¨
π DESCRIPTION π
This function sets the requested clock frequency. That's the whole assignment. π
β οΈ NOTE β οΈ
okay, important note time π¨ if the requested frequency is not an exact match with what can be obtained using the prescalar value, the driver sets the clock frequency that's lower than the requested frequency β the maximum lower one β for the transfer. no cap.
and if the requested frequency is higher or lower than what the SPI controller supports? the driver sets the highest or lowest frequency supported by the controller. periodt. π
π¦ SEE ALSO π¦
go check these out, bestie π:
Kernel file ./drivers/spi/spi-cadence.c struct cdns_spi(9)cdns_spi_init_hw(9)cdns_spi_chipselect(9)cdns_spi_config_clock_mode(9)cdns_spi_setup_transfer(9)cdns_spi_process_fifo(9)cdns_spi_irq(9)cdns_transfer_one(9)cdns_prepare_transfer_hardware(9)cdns_unprepare_transfer_hardware(9)cdns_spi_detect_fifo_depth(9)cdns_target_abort(9)cdns_spi_probe(9)cdns_spi_remove(9)cdns_spi_suspend(9)cdns_spi_resume(9)cdns_spi_runtime_resume(9)cdns_spi_runtime_suspend(9)
okay that's the whole page! this one comes from ./drivers/spi, dated October 2026, and it's literally cdns_spi_config_clock_freq(9) β bye bestie! πβ¨
π¦ 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