Home
last modified time | relevance | path

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

/third_party/uboot/u-boot-2020.01/drivers/net/
Dat91_emac.c89 void at91emac_EnableMDIO(at91_emac_t *at91mac) in at91emac_EnableMDIO() argument
92 writel(readl(&at91mac->ctl) | AT91_EMAC_CTL_MPE, &at91mac->ctl); in at91emac_EnableMDIO()
95 void at91emac_DisableMDIO(at91_emac_t *at91mac) in at91emac_DisableMDIO() argument
98 writel(readl(&at91mac->ctl) & ~AT91_EMAC_CTL_MPE, &at91mac->ctl); in at91emac_DisableMDIO()
101 int at91emac_read(at91_emac_t *at91mac, unsigned char addr, in at91emac_read() argument
105 at91emac_EnableMDIO(at91mac); in at91emac_read()
110 &at91mac->man); in at91emac_read()
113 netstat = readl(&at91mac->sr); in at91emac_read()
117 *value = readl(&at91mac->man) & AT91_EMAC_MAN_DATA_MASK; in at91emac_read()
119 at91emac_DisableMDIO(at91mac); in at91emac_read()
[all …]