STRUCT SVS_PLATFORM(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

โœจ struct svs_platform(9) โœจ

okay so this is a page straight out of the Kernel API Manual, and it's all about struct svs_platform โ€” the svs platform control <pink>๐Ÿ’…</pink>. ngl bestie this one's a struct definition so it's mostly vibes-adjacent bookkeeping, but it ate and we're gonna get through it together, fr fr ๐Ÿซถ


๐ŸŒธ NAME ๐ŸŒธ

struct svs_platform โ€” svs platform control. that's it, that's the whole name, short and iconic ๐Ÿ‘‘


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

here's the actual struct, copy-paste-able, exactly as it lives:

struct svs_platform {
    void __iomem *base;
    struct device *dev;
    struct clk *main_clk;
    struct svs_bank *banks;
    struct reset_control *rst;
    size_t efuse_max;
    size_t tefuse_max;
    const u32 *regs;
    u32 *efuse;
    u32 *tefuse;
    u32 ts_coeff;
    u16 bank_max;
 };

look at her. twelve members. main character energy, lowkey ๐Ÿ’–


๐ŸŽ€ Members ๐ŸŽ€

okay so here's the breakdown of every single field, no skips, no cap:

  • base โ€” the svs platform register base. this is where the registers live, the home address of the whole operation ๐Ÿ 
  • dev โ€” the svs platform device. your device handle bestie, she's right there โœจ
  • main_clk โ€” main clock for svs bank. the clock that keeps the banks ticking โฐ
  • banks โ€” svs banks that svs platform supports. plural, plural, plural ๐Ÿ’…
  • rst โ€” svs platform reset control. for when you need to start over, no judgement ๐ŸŒ€
  • efuse_max โ€” total number of svs efuse. the count, the whole count, nothing but the count ๐Ÿ”ข
  • tefuse_max โ€” total number of thermal efuse. same energy, thermal edition ๐Ÿ”ฅ
  • regs โ€” svs platform registers map. your little treasure map of registers ๐Ÿ—บ๏ธ
  • efuse โ€” svs efuse data received from NVMEM framework. note that it comes from NVMEM, that part matters ๐Ÿ“
  • tefuse โ€” thermal efuse data received from NVMEM framework. again โ€” NVMEM framework, okurrr ๐Ÿ’œ
  • ts_coeff โ€” thermal sensors coefficient. the coefficient for the thermal sensors, maths but make it cute ๐Ÿงฎ
  • bank_max โ€” total number of svs banks. yes there's also banks up there, no they're not the same, one's the banks themselves and one's the total count, iykyk ๐Ÿ™ˆ

๐Ÿงš SEE ALSO ๐Ÿงš

go read these next, bestie, they're all in the Kernel file ./drivers/soc/mediatek/mtk-svs.c:

  • enum svsb_sw_id(9)
  • enum svsb_type(9)
  • enum svsb_phase(9)
  • struct svs_bank_pdata(9)
  • struct svs_bank(9)

that's the whole friend group right there ๐ŸŒˆ


and that's the page!! mwah ๐Ÿ’‹ this one lives over in ./drivers/soc/mediatek, dated October 2026, and it's filed under struct svs_platform(9) in the Kernel API Manual โ€” slay, go touch some registers responsibly ๐ŸŽ€โœจ

๐Ÿ“ฆ where this page comes from