sdhci_versal...lk_set_phase(9)
πΈ NAME πΈ
sdhci_versal_sdcardclk_set_phase β okay so this is the one that sets the SD Output Clock Tap Delays, bestie π
This page lives in the Kernel API Manual, and honestly? It's giving "small function, big responsibilities" β¨
π SYNOPSIS π
int sdhci_versal_sdcardclk_set_phase (struct clk_hw *hw , int degrees );
π ARGUMENTS π
hwβ your pointer to the hardware clock structure π°οΈ literally just hand it over and it knows what to do.degreesβ the clock phase shift, and it's gotta be between0and359π (yes, degrees, like a circle, she's turning the clock, slay).
π¦ DESCRIPTION π¦
So what it actually does: it sets the SD Output Clock Tap Delays for the Output path π«Ά that's it, that's the whole vibe. Lowkey iconic that it's one line of a description and a whole lot of responsibility.
β¨ RETURN β¨
Returns 0 on success, and an error value on error π (ngl, classic β you'll know if it didn't eat).
π SEE ALSO π
The kernel file you're gonna wanna peek at is ./drivers/mmc/host/sdhci-of-arasan.c, and then all of these, fr fr:
struct sdhci_arasan_soc_ctl_field(9)struct sdhci_arasan_soc_ctl_map(9)struct sdhci_arasan_clk_ops(9)struct sdhci_arasan_clk_data(9)struct sdhci_arasan_data(9)sdhci_arasan_syscon_write(9)sdhci_arasan_suspend(9)sdhci_arasan_resume(9)sdhci_arasan_sdcardclk_recalc_rate(9)sdhci_arasan_sampleclk_recalc_rate(9)sdhci_zynqmp_sdcardclk_set_phase(9)sdhci_zynqmp_sampleclk_set_phase(9)sdhci_versal_sampleclk_set_phase(9)sdhci_arasan_update_clockmultiplier(9)sdhci_arasan_update_baseclkfreq(9)arasan_dt_parse_clk_phases(9)sdhci_arasan_register_sdcardclk(9)sdhci_arasan_register_sampleclk(9)sdhci_arasan_unregister_sdclk(9)sdhci_arasan_update_support64b(9)sdhci_arasan_register_sdclk(9)
bestie that's a whole friend group of functions, go say hi to all of them π§
and that's the page!! π written from the ./drivers/mmc/host corner of the world, dated October 2026, in the Kernel API Manual β mwah, go set some phases π
π¦ 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