This series extracts the MDIO bitbang code from the etraxfs driver and makes it usable on targets using the smc91111 Ethernet controller. I've tested this using u-boot on the versatile-pb model.
net/bitbang_mdio: Generalize etraxfs MDIO bitbanging emulation net/bitbang_mdio: Never set PHY RST and ANEG_RST bits on register write net/bitbang_mdio: Use bitbang core for smc91c111 network device hw/Makefile.objs | 2 +- hw/bitbang_mdio.c | 271 ++++++++++++++++++++++++++++++++++++++++++++++++ hw/bitbang_mdio.h | 72 +++++++++++++ hw/cris/Makefile.objs | 1 + hw/etraxfs_eth.c | 273 +------------------------------------------------ hw/smc91c111.c | 29 +++++- 6 files changed, 371 insertions(+), 277 deletions(-) create mode 100644 hw/bitbang_mdio.c create mode 100644 hw/bitbang_mdio.h