]> git.proxmox.com Git - mirror_qemu.git/commit
ftgmac100: implement the new MDIO interface on Aspeed SoC
authorCédric Le Goater <clg@kaod.org>
Mon, 21 Jan 2019 10:23:11 +0000 (10:23 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 21 Jan 2019 10:23:11 +0000 (10:23 +0000)
commitf16c845ade38444db62dc14eb5e267cc0c79876b
tree056255a6b9fbae70677f1de0a0382855f85f73e7
parent2d2a4549cc29850aab891495685a7b31f5254b12
ftgmac100: implement the new MDIO interface on Aspeed SoC

The PHY behind the MAC of an Aspeed SoC can be controlled using two
different MDC/MDIO interfaces. The same registers PHYCR (MAC60) and
PHYDATA (MAC64) are involved but they have a different layout.

BIT31 of the Feature Register (MAC40) controls which MDC/MDIO
interface is active.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Message-id: 20190111125759.31577-1-clg@kaod.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/net/ftgmac100.c