STRUCT MTK_PIN_SPEC_PUPD_SET_SAMEREG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

struct mtk_pin_spec_pupd_set_samereg β€” okay so this is a Kernel API Manual situation (section 9, iykyk), and this struct is literally the blueprint for special pins' pull up/down settings that all live in the same register πŸŽ€


✨ SYNOPSIS ✨

struct mtk_pin_spec_pupd_set_samereg {
    unsigned short pin;
    unsigned short offset;
    unsigned char pupd_bit;
    unsigned char r1_bit;
    unsigned char r0_bit;
 };

That's the whole glow-up, bestie β€” five fields, zero drama πŸ¦‹


🌸 Members 🌸

  • pin β€” the pin number, periodt. It's giving "which pin are we even talking about" energy πŸ’…
  • offset β€” the offset of the special pull up/down setting register. Lowkey the map coordinate to the register you actually care about πŸ—ΊοΈ
  • pupd_bit β€” the pull up/down bit in this register. This is the main character bit, ngl ✨
  • r1_bit β€” the r1 bit of the pull resistor πŸ”₯
  • r0_bit β€” the r0 bit of the pull resistor. r1 and r0 are literally a duo, they come as a set 🫢

πŸ’– Description πŸ’–

  • for special pins' pull up/down setting which resides in same register πŸ‘‘

So yeah β€” when a special pin's pull up/down config is chillin' in the same register as everything else, this struct is the one holding all the receipts: which pin, which register offset, and which bits do the pulling πŸ’€βœ¨


🌈 SEE ALSO 🌈

  • Kernel file ./drivers/pinctrl/mediatek/pinctrl-mtk-common.h
  • struct mtk_drv_group_desc(9)
  • struct mtk_pin_drv_grp(9)
  • struct mtk_pinctrl_devdata(9)

Go read the whole squad, fr fr πŸ“šπŸ’œ


okay that's the whole page bestie, mwah πŸ’‹ β€” this lil icon of a manpage comes to you from ./drivers/pinctrl/mediatek, dated October 2026, and it's still answering to the name struct mtk_pin_spec_pupd_set_samereg(9) β­πŸŽ€

πŸ“¦ where this page comes from