sppctl_gmx_set(9)
hey bestie π welcome to sppctl_gmx_set(9) from the Kernel API Manual β aka the little kernel function whose whole job is setting a pin of a group-pinmux. Itβs giving βsmall function, very specific taskβ energy and we respect it π
β¨ NAME β¨
sppctl_gmx_set β Set pin of group-pinmux. Thatβs literally the name, no cap π
πΈ SYNOPSIS πΈ
void sppctl_gmx_set (struct sppctl_pdata *pctl , u8 reg_off , u8 bit_off
, u8 bit_sz , u8 val );
It returns void, so thereβs no return value to obsess over β it just does the thing π
π ARGUMENTS π
The manpage is so real for this: every single argument is marked -- undescribed --. No lore, no extra details, just vibes π
pctlβ-- undescribed --reg_offβ-- undescribed --bit_offβ-- undescribed --bit_szβ-- undescribed --valβ-- undescribed --
π¦ DESCRIPTION π¦
okay so the mask-fields and control-fields of the group-pinmux function of SP7021 are arranged as shown below. The columns are register, mask-fields, and control-fields:
base[0]β mask-fields(31 : 16), control-fields(15 : 0)base[1]β mask-fields(31 : 24), control-fields(15 : 0)base[2]β mask-fields(31 : 24), control-fields(15 : 0):β mask-fields:, control-fields:
where mask-fields are used to protect control-fields from write-in accidentally π‘οΈ β yes, thatβs the pageβs words, and honestly it ate. Set the corresponding bits in the mask-field before you write a value into a control-field. No skipping the shield step, bestie π
Control-fields are used to set where the function pin is going to be routed to π. A control-field consists of one or more bits β tiny field, big routing decisions, periodt.
π SEE ALSO π
- Kernel file
./drivers/pinctrl/sunplus/sppctl.c sppctl_func_set(9)sppctl_first_get(9)sppctl_master_get(9)sppctl_fully_pinmux_conv(9)
mwah π this cutie lives in the Kernel API Manual, source/version path ./drivers/pinctrl/sunplus, dated October 2026, and the page is literally sppctl_gmx_set(9) β periodt πβ¨
π¦ 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