mpc5xxx_fwno...us_frequency(9)
π mpc5xxx_fwnode_get_bus_frequency(9) β from the Kernel API Manual, bestie π
okay so picture this: you're deep in the kernel, you've got a firmware node in your hands, and you just need to know how fast the bus is running. that's literally this function. no cap. she's the one who knows the clock tea β¨
πΈ NAME πΈ
mpc5xxx_fwnode_get_bus_frequency β find the bus frequency for a firmware node π¦
like, the whole entire job. one node in, one frequency out. iconic behavior honestly π
β¨ SYNOPSIS β¨
unsigned long mpc5xxx_fwnode_get_bus_frequency (struct fwnode_handle *fwnode );
she takes one (1) argument and returns an unsigned long. that's it. that's the vibe. π«Ά
π ARGUMENTS π
fwnodeβ firmware node π«
that's the one and only thing you hand her. the firmware node. give her the node and she'll do the rest, periodt.
π DESCRIPTION π
Returns the bus frequency β that's IPS on MPC512x and IPB on MPC52xx, just so we're clear on which name goes with which chip, iykyk π
β or 0 if the bus frequency cannot be found. π
so like, two outcomes bestie: you get a real frequency back, or you get a big fat zero meaning "nope, couldn't find it". no in-between, no drama, no guessing. 0 is the "she said she doesn't know" answer and you just have to respect it π
ngl, always check for that 0, because a zero frequency is not a frequency, it's a cry for help π
π SEE ALSO π
Kernel file ./arch/powerpc/sysdev/mpc5xxx_clocks.c β go read the source, she's right there, slay π₯
that's the whole page, bestie β short, sweet, and every bit as useful as the original π
kisses, and remember: the source lives in ./arch/powerpc/sysdev, dated October 2026, brought to you by the fine folks in ./arch/powerpc/sysdev β mwah ππ§ββοΈ
π¦ 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