summaryrefslogtreecommitdiffstats
path: root/include/hw/net
diff options
context:
space:
mode:
authorJean-Christophe Dubois2020-07-03 17:59:41 +0200
committerPeter Maydell2020-07-03 17:59:41 +0200
commit461c51ad4275f199d4b6ff400f39701541529e39 (patch)
tree7ad8277951405336bda88c61ff8d2e6b77038430 /include/hw/net
parentMerge remote-tracking branch 'remotes/maxreitz/tags/pull-block-2020-06-24' in... (diff)
downloadqemu-461c51ad4275f199d4b6ff400f39701541529e39.tar.gz
qemu-461c51ad4275f199d4b6ff400f39701541529e39.tar.xz
qemu-461c51ad4275f199d4b6ff400f39701541529e39.zip
Add a phy-num property to the i.MX FEC emulator
We need a solution to use an Ethernet PHY that is not the first device on the MDIO bus (device 0 on MDIO bus). As an example with the i.MX6UL the NXP SOC has 2 Ethernet devices but only one MDIO bus on which the 2 related PHY are connected but at unique addresses. Signed-off-by: Jean-Christophe Dubois <jcd@tribudubois.net> Message-id: a1a5c0e139d1c763194b8020573dcb6025daeefa.1593296112.git.jcd@tribudubois.net Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw/net')
-rw-r--r--include/hw/net/imx_fec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/net/imx_fec.h b/include/hw/net/imx_fec.h
index 7b3faa4019..9f03034b89 100644
--- a/include/hw/net/imx_fec.h
+++ b/include/hw/net/imx_fec.h
@@ -268,6 +268,7 @@ typedef struct IMXFECState {
uint32_t phy_advertise;
uint32_t phy_int;
uint32_t phy_int_mask;
+ uint32_t phy_num;
bool is_fec;