Lines Matching defs:phy
15 #include <linux/phy/phy.h>
31 static inline void p2u_writel(struct tegra_p2u *phy, const u32 value,
34 writel_relaxed(value, phy->base + reg);
37 static inline u32 p2u_readl(struct tegra_p2u *phy, const u32 reg)
39 return readl_relaxed(phy->base + reg);
42 static int tegra_p2u_power_on(struct phy *x)
44 struct tegra_p2u *phy = phy_get_drvdata(x);
47 val = p2u_readl(phy, P2U_PERIODIC_EQ_CTRL_GEN3);
50 p2u_writel(phy, val, P2U_PERIODIC_EQ_CTRL_GEN3);
52 val = p2u_readl(phy, P2U_PERIODIC_EQ_CTRL_GEN4);
54 p2u_writel(phy, val, P2U_PERIODIC_EQ_CTRL_GEN4);
56 val = p2u_readl(phy, P2U_RX_DEBOUNCE_TIME);
59 p2u_writel(phy, val, P2U_RX_DEBOUNCE_TIME);
73 struct phy *generic_phy;
74 struct tegra_p2u *phy;
77 phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL);
78 if (!phy)
82 phy->base = devm_ioremap_resource(dev, res);
83 if (IS_ERR(phy->base))
84 return PTR_ERR(phy->base);
86 platform_set_drvdata(pdev, phy);
92 phy_set_drvdata(generic_phy, phy);