gpmc_calc_divider(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… gpmc_calc_divider ✨

okay so bestie, we're deep in the Kernel API Manual and this page is all about gpmc_calc_divider β€” the function that does the GPMC_FCLK divider math for the sync_clk GPMC_CLK period. no cap, that's the whole vibe πŸ’–


🌸 NAME 🌸

gpmc_calc_divider β€” calculate GPMC_FCLK divider for sync_clk GPMC_CLK period.

✨ SYNOPSIS ✨

int gpmc_calc_divider (unsigned int sync_clk );

πŸŽ€ ARGUMENTS πŸŽ€

  • sync_clk β€” GPMC_CLK period in ps. literally the period value you hand over, in picoseconds 🫢

πŸ’… RETURN πŸ’…

Returns at least 1 if GPMC_FCLK can be divided to GPMC_CLK. Else, returns -1.

so if the divide works out you get >= 1, and if it doesn't, bestie it's -1 😭

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/memory/omap-gpmc.c, plus these icon functions β€” all with their (9) tags intact, periodt πŸ‘‘


okay bye bestie 🫢 β€” this page is sourced from ./drivers/memory, dated October 2026, and it's still gpmc_calc_divider(9) πŸ’–

πŸ“¦ where this page comes from