diff options
author | Arun Ramadoss <arun.ramadoss@microchip.com> | 2022-07-24 11:28:17 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-07-27 10:39:17 +0200 |
commit | 8560664fd32aa055b3c128337356e32e8fc25b5a (patch) | |
tree | 72b84dcb58503632a3ae514b040a53133f00216e /drivers/net/dsa/microchip/lan937x_reg.h | |
parent | net: dsa: microchip: add common ksz port xmii speed selection function (diff) | |
download | linux-8560664fd32aa055b3c128337356e32e8fc25b5a.tar.xz linux-8560664fd32aa055b3c128337356e32e8fc25b5a.zip |
net: dsa: microchip: add common duplex and flow control function
This patch add common function for configuring the Full/Half duplex and
transmit/receive flow control. KSZ8795 uses the Global control register
4 for configuring the duplex and flow control, whereas all other KSZ9477
based switch uses the xMII Control 0 register.
Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/dsa/microchip/lan937x_reg.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/dsa/microchip/lan937x_reg.h b/drivers/net/dsa/microchip/lan937x_reg.h index b9364f6a4f8f..d5eb6dc3a739 100644 --- a/drivers/net/dsa/microchip/lan937x_reg.h +++ b/drivers/net/dsa/microchip/lan937x_reg.h @@ -133,9 +133,6 @@ /* 3 - xMII */ #define REG_PORT_XMII_CTRL_0 0x0300 #define PORT_SGMII_SEL BIT(7) -#define PORT_MII_FULL_DUPLEX BIT(6) -#define PORT_MII_TX_FLOW_CTRL BIT(5) -#define PORT_MII_RX_FLOW_CTRL BIT(3) #define PORT_GRXC_ENABLE BIT(0) #define REG_PORT_XMII_CTRL_1 0x0301 |