1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/dsa/microchip
Arun Ramadoss aa5b8b73d4 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>
2022-07-27 09:39:17 +01:00
..
Kconfig net: dsa: microchip: add DSA support for microchip LAN937x 2022-07-02 16:34:05 +01:00
ksz8.h net: dsa: microchip: remove the struct ksz8 2022-06-29 13:47:59 +01:00
ksz8795.c net: dsa: microchip: add P_STP_CTRL to ksz_chip_reg 2022-06-29 13:47:59 +01:00
ksz8795_reg.h net: dsa: microchip: add P_STP_CTRL to ksz_chip_reg 2022-06-29 13:47:59 +01:00
ksz8863_smi.c net: dsa: microchip: remove the struct ksz8 2022-06-29 13:47:59 +01:00
ksz9477.c net: dsa: microchip: add common gigabit set and get function 2022-07-27 09:39:16 +01:00
ksz9477.h net: dsa: microchip: move ksz_dev_ops to ksz_common.c 2022-06-24 11:31:44 +01:00
ksz9477_i2c.c net: dsa: microchip: remove the ksz8/ksz9477_switch_register 2022-06-24 11:31:44 +01:00
ksz9477_reg.h net: dsa: microchip: add common ksz port xmii speed selection function 2022-07-27 09:39:17 +01:00
ksz_common.c net: dsa: microchip: add common ksz port xmii speed selection function 2022-07-27 09:39:17 +01:00
ksz_common.h net: dsa: microchip: add common ksz port xmii speed selection function 2022-07-27 09:39:17 +01:00
ksz_spi.c net: dsa: microchip: fix Clang -Wunused-const-variable warning on 'ksz_dt_ids' 2022-07-18 11:29:30 +01:00
lan937x.h net: dsa: microchip: lan937x: add phylink_mac_config support 2022-07-02 16:34:05 +01:00
lan937x_main.c net: dsa: microchip: add common ksz port xmii speed selection function 2022-07-27 09:39:17 +01:00
lan937x_reg.h net: dsa: microchip: add common ksz port xmii speed selection function 2022-07-27 09:39:17 +01:00
Makefile net: dsa: microchip: add DSA support for microchip LAN937x 2022-07-02 16:34:05 +01:00