]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: scratch registers and external MDIO pins
authorAndrew Lunn <andrew@lunn.ch>
Thu, 22 Feb 2018 00:51:49 +0000 (01:51 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Feb 2018 19:46:32 +0000 (14:46 -0500)
commitad5d57b02eef06dc18422011f05f1ef60e823a92
tree86d64f044a21f905ea5c34ab7ea6a4d7d5a71139
parent919d9d5430e3589a81b0a29122ef5e48e116097c
net: dsa: mv88e6xxx: scratch registers and external MDIO pins

MV88E6352 and later switches support GPIO control through the "Scratch
& Misc" global2 register. Two of the pins controlled this way on the
mv88e6390 family are the external MDIO pins. They can either by used
as part of the MII interface for port 0, GPIOs, or MDIO. Add a
function to configure them for MDIO, if possible, and call it when
registering the external MDIO bus.

Suggested-by: Russell King <rmk@armlinux.org.uk>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/global2.h
drivers/net/dsa/mv88e6xxx/global2_scratch.c