STRUCT ROCKCHIP_USB2PHY_CFG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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’s port_cfgs[USB2PHY_NUM_PORTS], a const struct rockchip_usb2phy_port_cfg situation. πŸ”Œ
  • chg_det β€” charger detection registers. it’s const 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