diff options
| author | Greg Ungerer | 2015-06-26 07:27:15 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi | 2015-07-27 15:12:04 +0200 |
| commit | 299f7bec5a109db7563e1286cedf1f4d84e69e6d (patch) | |
| tree | 49f58e746d8bc2a992098761ffbdaa06235a7fb0 /include/hw/net | |
| parent | hw/net: add ANLPAR bit definitions to generic mii (diff) | |
| download | qemu-299f7bec5a109db7563e1286cedf1f4d84e69e6d.tar.gz qemu-299f7bec5a109db7563e1286cedf1f4d84e69e6d.tar.xz qemu-299f7bec5a109db7563e1286cedf1f4d84e69e6d.zip | |
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 <gerg@uclinux.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1435296436-12152-4-git-send-email-gerg@uclinux.org
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/hw/net')
| -rw-r--r-- | include/hw/net/mii.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hw/net/mii.h b/include/hw/net/mii.h index cd2a4e2f3e..9fdd7bbe75 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 */ |
