aboutsummaryrefslogtreecommitdiff
path: root/drivers/platform/surface/aggregator
diff options
context:
space:
mode:
authorArun Ramadoss <[email protected]>2022-07-24 14:58:16 +0530
committerDavid S. Miller <[email protected]>2022-07-27 09:39:17 +0100
commitaa5b8b73d4bd34618508165bc0e5b7eb4b7c2c20 (patch)
tree33e4bf8185606148c612a1a23bad0c815d9bf38a /drivers/platform/surface/aggregator
parent46f80fa8981bcbb0ab522b34c919d0186a0cff02 (diff)
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/platform/surface/aggregator')
0 files changed, 0 insertions, 0 deletions