STRUCT MVEBU_MPP_CTRL(9)
π NAME π
struct mvebu_mpp_ctrl β describe a mpp control. okay so this is the struct mvebu_mpp_ctrl(9) page from the Kernel API Manual, bestie π
β¨.
β¨ SYNOPSIS β¨
hereβs the exact struct shape, no edits, no vibes-based rewrites π«Ά:
struct mvebu_mpp_ctrl {
const char *name;
u8 pid;
u8 npins;
unsigned *pins;
int (*mpp_get)(struct mvebu_mpp_ctrl_data *data, unsigned pid,
unsigned long *config);
int (*mpp_set)(struct mvebu_mpp_ctrl_data *data, unsigned pid,
unsigned long config);
int (*mpp_gpio_req)(struct mvebu_mpp_ctrl_data *data, unsigned pid);
int (*mpp_gpio_dir)(struct mvebu_mpp_ctrl_data *data, unsigned pid,
bool input);
};
π«Ά Members π«Ά
nameβ name of the control group πpidβ first pin id handled by this control πnpinsβ number of pins controlled by this control π’mpp_getβ (optional) special function to get mpp setting π«Άmpp_setβ (optional) special function to set mpp setting β¨mpp_gpio_reqβ (optional) special function to request gpio π¦mpp_gpio_dirβ (optional) special function to set gpio direction π
πΈ Description πΈ
okay so picture a muxable unit inside the SoC β could be a pin, a group of pins, or an internal function. thatβs what a mpp_ctrl describes, periodt π
. Each muxable unit can be switched between two or more different settings, like assigning mpp pin 13 to uart1 or sata π.
The mpp_get/_set functions are mandatory β no cap, theyβre the ones used to get/set a specific mode π₯. The optional mpp_gpio_req/_dir functions can be used to allow pin settings with varying gpio pins π¦. slay β¨.
π₯ SEE ALSO π₯
Kernel file ./drivers/pinctrl/mvebu/pinctrl-mvebu.h struct mvebu_mpp_ctrl_data(9), struct mvebu_mpp_ctrl_setting(9), struct mvebu_mpp_mode(9), struct mvebu_pinctrl_soc_info(9) π«Ά
and thatβs the whole page, bestie! π source/version: ./drivers/pinctrl/mvebu Β· date: October 2026 Β· manual page: struct mvebu_mpp_ctrl(9). 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