summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/microchip/lan937x_reg.h
diff options
context:
space:
mode:
authorArun Ramadoss <arun.ramadoss@microchip.com>2022-07-24 12:28:16 +0300
committerDavid S. Miller <davem@davemloft.net>2022-07-27 11:39:17 +0300
commitaa5b8b73d4bd34618508165bc0e5b7eb4b7c2c20 (patch)
tree33e4bf8185606148c612a1a23bad0c815d9bf38a /drivers/net/dsa/microchip/lan937x_reg.h
parent46f80fa8981bcbb0ab522b34c919d0186a0cff02 (diff)
downloadlinux-aa5b8b73d4bd34618508165bc0e5b7eb4b7c2c20.tar.xz
net: dsa: microchip: add common ksz port xmii speed selection function
This patch adds the function for configuring the 100/10Mbps speed selection for the ksz switches. KSZ8795 switch uses Global control 4 register 0x06 bit 4 for choosing 100/10Mpbs. Other switches uses xMII control 1 0xN300 for it. For KSZ8795, if the bit is set then 10Mbps is chosen and if bit is clear then 100Mbps chosen. For all other switches it is other way around, if the bit is set then 100Mbps is chosen. So, this patch add the generic function for ksz switch to select the 100/10Mbps speed selection. While configuring, first it disables the gigabit functionality and then configure the respective speed. Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/microchip/lan937x_reg.h')
-rw-r--r--drivers/net/dsa/microchip/lan937x_reg.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/dsa/microchip/lan937x_reg.h b/drivers/net/dsa/microchip/lan937x_reg.h
index 747295d34411..b9364f6a4f8f 100644
--- a/drivers/net/dsa/microchip/lan937x_reg.h
+++ b/drivers/net/dsa/microchip/lan937x_reg.h
@@ -135,7 +135,6 @@
#define PORT_SGMII_SEL BIT(7)
#define PORT_MII_FULL_DUPLEX BIT(6)
#define PORT_MII_TX_FLOW_CTRL BIT(5)
-#define PORT_MII_100MBIT BIT(4)
#define PORT_MII_RX_FLOW_CTRL BIT(3)
#define PORT_GRXC_ENABLE BIT(0)