STRUCT ROCKCHIP_USB2PHY_CFG(9)
πΈ NAME πΈ
struct rockchip_usb2phy_cfg(9) β straight outta the Kernel API Manual β is literally the usb-phy configuration struct, and sheβs serving main-character energy. π
β¨
π SYNOPSIS π
okay so hereβs the exact struct, bestie, no edits, no cap:
struct rockchip_usb2phy_cfg {
unsigned int reg;
unsigned int num_ports;
int (*phy_tuning)(struct rockchip_usb2phy *rphy);
struct usb2phy_reg clkout_ctl;
struct usb2phy_reg clkout_ctl_phy;
const struct rockchip_usb2phy_port_cfg
port_cfgs[USB2PHY_NUM_PORTS];
const struct rockchip_chg_det_reg chg_det;
};
π Members π
regβ the address offset of grf for usb-phy config. yes, literally the little address coordinate for this config in GRF. πnum_portsβ specify how many ports that the phy has. count βem, bestie. π’phy_tuningβ phy default parameters tuning. her tuning hook, signature and all:int (*phy_tuning)(struct rockchip_usb2phy *rphy). π οΈclkout_ctlβ register to enable output clk of phy, when set in GRF. note the βwhen set in GRFβ part, iykyk. β°clkout_ctl_phyβ register to enable output clk of phy, when set inside phy. same clock-output goal, different setting spot. π«Άport_cfgsβ usb-phy port configurations. itβsport_cfgs[USB2PHY_NUM_PORTS], aconst struct rockchip_usb2phy_port_cfgsituation. πchg_detβ charger detection registers. itβsconst struct rockchip_chg_det_reg, and yes, charger detection said hi. π
π SEE ALSO π
bestie, go peek at Kernel file ./drivers/phy/rockchip/phy-rockchip-inno-usb2.c, plus enum usb_chg_state(9), struct rockchip_chg_det_reg(9), struct rockchip_usb2phy_port_cfg(9), struct rockchip_usb2phy_port(9), and struct rockchip_usb2phy(9). thatβs the whole squad. π
mwah π β this lil page came from ./drivers/phy/rockchip, dated October 2026, and itβs all about struct rockchip_usb2phy_cfg(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