Lines Matching full:dp83867

12 #include <dt-bindings/net/ti-dp83867.h>
15 /* TI DP83867 */
187 struct dp83867_private *dp83867 = in dp83867_config_port_mirroring() local
194 if (dp83867->port_mirroring == DP83867_PORT_MIRRORING_EN) in dp83867_config_port_mirroring()
213 struct dp83867_private *dp83867 = phydev->priv; in dp83867_of_init() local
224 dp83867->clk_output_sel = in dp83867_of_init()
233 dp83867->io_impedance = DP83867_IO_MUX_CFG_IO_IMPEDANCE_MAX; in dp83867_of_init()
235 dp83867->io_impedance = DP83867_IO_MUX_CFG_IO_IMPEDANCE_MIN; in dp83867_of_init()
237 dp83867->io_impedance = -EINVAL; in dp83867_of_init()
239 if (ofnode_read_bool(node, "ti,dp83867-rxctrl-strap-quirk")) in dp83867_of_init()
240 dp83867->rxctrl_strap_quirk = true; in dp83867_of_init()
241 dp83867->rx_id_delay = ofnode_read_u32_default(node, in dp83867_of_init()
245 dp83867->tx_id_delay = ofnode_read_u32_default(node, in dp83867_of_init()
249 dp83867->fifo_depth = ofnode_read_u32_default(node, "ti,fifo-depth", in dp83867_of_init()
252 dp83867->port_mirroring = DP83867_PORT_MIRRORING_EN; in dp83867_of_init()
255 dp83867->port_mirroring = DP83867_PORT_MIRRORING_DIS; in dp83867_of_init()
259 if (dp83867->clk_output_sel != DP83867_CLK_O_SEL_REF_CLK) { in dp83867_of_init()
263 val |= (dp83867->clk_output_sel << in dp83867_of_init()
274 struct dp83867_private *dp83867 = phydev->priv; in dp83867_of_init() local
276 dp83867->rx_id_delay = DEFAULT_RX_ID_DELAY; in dp83867_of_init()
277 dp83867->tx_id_delay = DEFAULT_TX_ID_DELAY; in dp83867_of_init()
278 dp83867->fifo_depth = DEFAULT_FIFO_DEPTH; in dp83867_of_init()
279 dp83867->io_impedance = -EINVAL; in dp83867_of_init()
287 struct dp83867_private *dp83867; in dp83867_config() local
292 dp83867 = kzalloc(sizeof(*dp83867), GFP_KERNEL); in dp83867_config()
293 if (!dp83867) in dp83867_config()
296 phydev->priv = dp83867; in dp83867_config()
301 dp83867 = (struct dp83867_private *)phydev->priv; in dp83867_config()
310 if (dp83867->rxctrl_strap_quirk) { in dp83867_config()
321 (dp83867->fifo_depth << DP83867_PHYCR_FIFO_DEPTH_SHIFT)); in dp83867_config()
364 (dp83867->fifo_depth << DP83867_PHYCTRL_RXFIFO_SHIFT) | in dp83867_config()
365 (dp83867->fifo_depth << DP83867_PHYCTRL_TXFIFO_SHIFT)); in dp83867_config()
386 delay = (dp83867->rx_id_delay | in dp83867_config()
387 (dp83867->tx_id_delay << DP83867_RGMII_TX_CLK_DELAY_SHIFT)); in dp83867_config()
392 if (dp83867->io_impedance >= 0) { in dp83867_config()
398 val |= dp83867->io_impedance & in dp83867_config()
406 if (dp83867->port_mirroring != DP83867_PORT_MIRRORING_KEEP) in dp83867_config()
413 kfree(dp83867); in dp83867_config()
418 .name = "TI DP83867",