STRUCT MTK_MFG_OPP_ENTRY(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ‘‘ struct mtk_mfg_opp_entry ๐Ÿ‘‘

okay so bestie, welcome to the Kernel API Manual page for struct mtk_mfg_opp_entry โ€” yes that's the whole title, she's long but she's worth it ๐Ÿ’…


๐ŸŒธ NAME ๐ŸŒธ

struct mtk_mfg_opp_entry โ€” an OPP table entry that came straight from the firmware, no cap ๐Ÿซถ


โœจ SYNOPSIS โœจ

here's the whole glow-up, look at her:

struct mtk_mfg_opp_entry {
    __le32 freq_khz;
    __le32 voltage_core;
    __le32 voltage_sram;
    __le32 posdiv;
    __le32 voltage_margin;
    __le32 power_mw;
 };

๐ŸŽ€ Members ๐ŸŽ€

every field is literally iconic in her own way, let's go through them one by one ๐Ÿ’–

  • freq_khz โ€” the operating point's frequency, in kilohertz. that's the speed vibe of this OPP, iykyk โšก
  • voltage_core โ€” the operating point's core voltage, measured in tens of microvolts. tens!! of microvolts!! tiny units, big energy ๐Ÿ”ฅ
  • voltage_sram โ€” the operating point's SRAM voltage, also in tens of microvolts. same units, different lane, she's matching but not twinning ๐Ÿฆ‹
  • posdiv โ€” the exponent of base 2 for the PLL frequency divisor that's used for this OPP. it's giving math girlie and honestly? we love her ๐Ÿงฎโœจ
  • voltage_margin โ€” how many tens of microvolts the voltage is allowed to be undershot by. a little wiggle room, a little grace ๐Ÿ™ˆ
  • power_mw โ€” an estimate of power usage at this operating point, in milliwatts. the budget bestie, the budget ๐ŸŒˆ

๐Ÿ’€ Description ๐Ÿ’€

okay this is the part where you actually listen ๐Ÿ‘€ โ€” this struct is part of the ABI with the EB firmware. Do not change it. like, do not. not a single field, not a single padding byte. she is load-bearing. she is the moment. she is untouchable ๐Ÿ‘‘๐Ÿ”ฅ

fr fr, this is a firmware ABI contract โ€” changing it is undefined-behaviour-adjacent chaos and the kernel will absolutely not be slaying after that ๐Ÿ’€

๐Ÿ”— SEE ALSO ๐Ÿ”—


and that's the page bestie, go forth and respect the ABI ๐Ÿซถ๐ŸŒธ

kisses from the kernel tree โ€” this one's from ./drivers/pmdomain/mediatek, dated October 2026, filed under struct mtk_mfg_opp_entry(9) โœจ

๐Ÿ“ฆ where this page comes from