summaryrefslogtreecommitdiff
path: root/include/linux/mv643xx_eth.h
diff options
context:
space:
mode:
authorDavid Yang <mmyangfl@gmail.com>2022-10-28 05:01:01 +0300
committerDavid S. Miller <davem@davemloft.net>2022-11-07 11:42:19 +0300
commitd08cb25556773c65efb21761b75f92c804ad0975 (patch)
treea1c358e443bc866f49c3fb156502ddc4b1fd6523 /include/linux/mv643xx_eth.h
parent63d9e12914840400e9f96c2ae9a51cd9702c2daf (diff)
downloadlinux-d08cb25556773c65efb21761b75f92c804ad0975.tar.xz
net: mv643xx_eth: support MII/GMII/RGMII modes for Kirkwood
Support mode switch properly, which is not available before. If SoC has two Ethernet controllers, by setting both of them into MII mode, the first controller enters GMII mode, while the second controller is effectively disabled. This requires configuring (and maybe enabling) the second controller in the device tree, even though it cannot be used. Signed-off-by: David Yang <mmyangfl@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mv643xx_eth.h')
-rw-r--r--include/linux/mv643xx_eth.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mv643xx_eth.h b/include/linux/mv643xx_eth.h
index 3682ae75c7aa..145169be2ed8 100644
--- a/include/linux/mv643xx_eth.h
+++ b/include/linux/mv643xx_eth.h
@@ -8,6 +8,7 @@
#include <linux/mbus.h>
#include <linux/if_ether.h>
+#include <linux/phy.h>
#define MV643XX_ETH_SHARED_NAME "mv643xx_eth"
#define MV643XX_ETH_NAME "mv643xx_eth_port"
@@ -59,6 +60,7 @@ struct mv643xx_eth_platform_data {
*/
int speed;
int duplex;
+ phy_interface_t interface;
/*
* How many RX/TX queues to use.