Hi, I have a follow up series using multiples PHY on the MDIO bus based on this series.
Regards, Phil. Grant's previous work: http://lists.nongnu.org/archive/html/qemu-devel/2013-02/msg00257.html "There is more work to be done, particularly in moving to the common GPIO api, but that work can be done as a follow on patch series." Grant Likely (7): hw/mdio: Generalize etraxfs MDIO bitbanging emulation hw/mdio: Add PHY register definition hw/mdio: Generalize phy initialization routine hw/mdio: Mask out read-only bits. hw/mdio: Refactor bitbanging state machine hw/mdio: Add VMState support hw/mdio: Use bitbang core for smc91c111 network device include/hw/net/mdio.h | 124 +++++++++++++++++++++ hw/net/etraxfs_eth.c | 291 +----------------------------------------------- hw/net/mdio.c | 280 ++++++++++++++++++++++++++++++++++++++++++++++ hw/net/smc91c111.c | 27 ++++- hw/net/xilinx_axienet.c | 189 +------------------------------ hw/net/Makefile.objs | 2 + 6 files changed, 438 insertions(+), 475 deletions(-) create mode 100644 include/hw/net/mdio.h create mode 100644 hw/net/mdio.c -- 2.14.1