STRUCT ROCKCHIP_DRV(9)
π NAME
struct rockchip_drv β bestie, this is the pinctrl struct that tells the Rockchip driver how strong a pin should drive and where in the register map it should go looking for that setting π
β¨ SYNOPSIS
struct rockchip_drv {
enum rockchip_pin_drv_type drv_type;
int offset;
};
literally the whole thing, no cap β two members and a dream π
πΈ Members πΈ
drv_typeβ this is the drive strength variant, and it's typed asenum rockchip_pin_drv_type(the per-pin flavour, iykyk). So it's saying which drive strength config we're working with π₯offsetβ okay so this one's the main character π if you initialize it to-1it gets autocalculated for you, no manual labour required. But if you pass in an initial offset value instead, the relevant source offset can be reset to a new value, and then it autocalculates the following drive strength registers from there. One tiny caveat tho: if the chip has its owncal_drvfunc that calculates the register offsets itself, this whole variant could just be ignored entirely π
fr fr, that -1 detail matters β set it and let the kernel do the math π§
π SEE ALSO
- Kernel file
./drivers/pinctrl/pinctrl-rockchip.hstructrockchip_gpio_regs(9) struct rockchip_iomux(9)struct rockchip_pin_bank(9)struct rockchip_mux_recalced_data(9)struct rockchip_pin_group(9)struct rockchip_pmx_func(9)
go read the whole little friend group, they all live in the same header and they're all iconic π¦
okay that's the whole page bestie, slay π
this lil baddie lives in the Kernel API Manual, comes to you from ./drivers/pinctrl, and it's dated October 2026 β 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