aemif_calc_rate(9)
π aemif_calc_rate(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this one's a lil function called aemif_calc_rate, and honestly? it's giving "math fairy does your timing homework" π§π
πΈ NAME πΈ
aemif_calc_rate β calculate timing data. no cap, that's the whole job π
β¨ SYNOPSIS β¨
u32 aemif_calc_rate (struct platform_device *pdev , int wanted ,
unsigned long clk );
look at her. three lil args, one u32 coming back. iconic π
π¦ ARGUMENTS π¦
pdevβ the platform device you're calculating for, bestie. this is your main character π«Άwantedβ the cycle time you need, in nanoseconds. yes, nanoseconds. she's precise like that β±οΈclkβ the input clock rate, in kHz. don't mix up your units or it's giving π
π RETURN π
the calculated timing value minus 1, so it's easy to program straight into the AEMIF timing registers β¨ β like, that -1 is lowkey doing you a solid, iykyk π
π₯ SEE ALSO π₯
- Kernel file
./drivers/memory/ti-aemif.c struct aemif_cs_data(9)struct aemif_device(9)aemif_check_cs_timings(9)aemif_set_cs_timings(9)aemif_config_abus(9)aemif_get_hw_params(9)of_aemif_parse_abus_config(9)
go read the whole squad fr fr, they're all linked up and they all ate ππ
vibe check reminder:wantedis nanoseconds,clkis kHz. that's literally it, don't come for me π
mwah, that's the page! π this lil drop came from ./drivers/memory, dated October 2026 β stan a kernel doc that stays fresh β¨ππ¦
π¦ 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