sdhci_arasa..._baseclkfreq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 sdhci_arasa..._baseclkfreq(9) β€” Kernel API Manual ✨

okay bestie, welcome to the sdhci_arasa..._baseclkfreq page, straight out of the Kernel API Manual. yes the title is truncated with dots, no that's not a typo, that's just how the man girlies abbreviate. iykyk πŸ’…


✨ NAME ✨

sdhci_arasan_update_baseclkfreq β€” literally just here to set corecfg_baseclkfreq. that's the whole job. icon behavior, honestly πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

void sdhci_arasan_update_baseclkfreq (struct sdhci_host *host );

πŸ’– ARGUMENTS πŸ’–

  • host β€” the sdhci_host, bestie. the main character of this whole function, fr fr πŸ‘‘

🌈 DESCRIPTION 🌈

so like… corecfg_baseclkfreq is supposed to contain the MHz of clk_xin. that's the assignment. that's the vibe. and this function? this function is the one that can be used to make that happen. slay ✨


🫢 NOTES 🫢

  • many existing devices don't seem to do this and work fine. like, they're out here thriving without it, no cap 😭 so β€” to keep compatibility for old hardware where the device tree doesn't provide a register map β€” this function is a noop if a soc_ctl_map hasn't been provided for this platform. it just. does nothing. respectfully πŸ’€
  • it's assumed that clk_xin is not dynamic and that we use the SDHCI divider to achieve lower clock rates. which means (and this is the important bit πŸ‘€) this function is called once at probe time and never called again. one and done. no encore. periodt 🌟
bestie pls don't call it in a loop expecting new results, that's not the assignment πŸ₯Ί

🧚 SEE ALSO 🧚

Kernel file ./drivers/mmc/host/sdhci-of-arasan.c 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_sdcardclk_set_phase(9), sdhci_versal_sampleclk_set_phase(9), sdhci_arasan_update_clockmultiplier(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)

like, that's a lot of friends in the group chat, and they all ate πŸ’œ


and that's the whole page, bestie!! tysm for reading mwah πŸ“ this lil gem lives in ./drivers/mmc/host and was stamped October 2026 β€” go forth and set that baseclkfreq, ily, bye!! πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from