STRUCT PWM_MEDIATEK_CHIP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ struct pwm_mediatek_chip(9) πŸ¦‹

okay bestie, welcome to the Kernel API Manual page for struct pwm_mediatek_chip(9) β€” it’s giving β€œlittle struct that represents a PWM chip” and we are gonna go through every single field, no skips, periodt. πŸ’–


🌸 NAME 🌸

struct pwm_mediatek_chip β€” struct representing PWM chip. That’s the whole vibe. ✨

✨ SYNOPSIS ✨

       struct pwm_mediatek_chip {
           void __iomem *regs;
           struct clk *clk_top;
           struct clk *clk_main;
           const struct pwm_mediatek_of_data *soc;
           struct {
             struct clk *clk;
             unsigned long rate;
           } clk_pwms[];
        };

πŸ’… Members πŸ’…

  • regs β€” base address of PWM chip. literally the base address, bestie, that’s the whole assignment. πŸ’…
  • clk_top β€” the top clock generator. yes, the top one, main character clock energy. πŸ‘‘
  • clk_main β€” the clock used by PWM core. this one’s doing the core work. πŸ”₯
  • soc β€” pointer to chip’s platform data. it’s pointing at the chip’s platform tea. 🍡
  • clk_pwms β€” the clock and clkrate used by each PWM channel. one lil’ struct clk *clk; + unsigned long rate; situation for every channel, slay. πŸŽ€

πŸ”Ž SEE ALSO πŸ”Ž

  • Kernel file ./drivers/pwm/pwm-mediatek.c β€” go read the source, iykyk. πŸ’œ

mwah πŸ’‹ that’s the whole page, bestie β€” source/version is ./drivers/pwm, dated October 2026, and it’s literally struct pwm_mediatek_chip(9). byeee 🫢✨

πŸ“¦ where this page comes from