Home
last modified time | relevance | path

Searched refs:mdio_cfg (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc_mdio.c62 u32 mdio_ctl, mdio_cfg; in enetc_mdio_write_c22() local
66 mdio_cfg = ENETC_EMDIO_CFG; in enetc_mdio_write_c22()
68 mdio_cfg &= ~MDIO_CFG_ENC45; in enetc_mdio_write_c22()
70 enetc_mdio_wr(mdio_priv, ENETC_MDIO_CFG, mdio_cfg); in enetc_mdio_write_c22()
95 u32 mdio_ctl, mdio_cfg; in enetc_mdio_write_c45() local
98 mdio_cfg = ENETC_EMDIO_CFG; in enetc_mdio_write_c45()
99 mdio_cfg |= MDIO_CFG_ENC45; in enetc_mdio_write_c45()
101 enetc_mdio_wr(mdio_priv, ENETC_MDIO_CFG, mdio_cfg); in enetc_mdio_write_c45()
132 u32 mdio_ctl, mdio_cfg; in enetc_mdio_read_c22() local
136 mdio_cfg = ENETC_EMDIO_CFG; in enetc_mdio_read_c22()
[all …]
/linux/drivers/net/ethernet/tehuti/
H A Dtn40_mdio.c20 int mdio_cfg; in tn40_mdio_set_speed() local
23 mdio_cfg = (0x7d << 7) | 0x08; /* 1MHz */ in tn40_mdio_set_speed()
25 mdio_cfg = 0xA08; /* 6MHz */ in tn40_mdio_set_speed()
26 mdio_cfg |= (1 << 6); in tn40_mdio_set_speed()
27 writel(mdio_cfg, regs + TN40_REG_MDIO_CMD_STAT); in tn40_mdio_set_speed()