From 299f7bec5a109db7563e1286cedf1f4d84e69e6d Mon Sep 17 00:00:00 2001 From: Greg Ungerer Date: Fri, 26 Jun 2015 15:27:15 +1000 Subject: hw/net: add simple phy support to mcf_fec driver The Linux fec driver needs at least basic phy support to probe and work. The current qemu mcf_fec emulation has no support for the reading or writing of the MDIO lines to access an attached phy. This code adds a very simple set of register results for a fixed phy setup - very similar to that used on an m5208evb board. This is enough to probe and identify an emulated attached phy. Signed-off-by: Greg Ungerer Reviewed-by: Stefan Hajnoczi Message-id: 1435296436-12152-4-git-send-email-gerg@uclinux.org Signed-off-by: Stefan Hajnoczi --- include/hw/net/mii.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/hw/net/mii.h b/include/hw/net/mii.h index cd2a4e2..9fdd7bb 100644 --- a/include/hw/net/mii.h +++ b/include/hw/net/mii.h @@ -65,7 +65,12 @@ #define MII_ANLPAR_CSMACD (1 << 0) /* List of vendor identifiers */ +/* RealTek 8201 */ #define RTL8201CP_PHYID1 0x0000 #define RTL8201CP_PHYID2 0x8201 +/* National Semiconductor DP83848 */ +#define DP83848_PHYID1 0x2000 +#define DP83848_PHYID2 0x5c90 + #endif /* MII_H */ -- cgit v1.1