net: macb: add support for mii on rgmii
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Fri, 17 Sep 2021 13:26:14 +0000 (16:26 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Sep 2021 13:14:39 +0000 (14:14 +0100)
commit1a9b5a26daf606868220f24b9783c0f37085454d
tree76ecaa01745a60b9b6110fcb5d2a700d4436085e
parentd7b3485f1c2b917328890ba28f4e7cac4b98ca1e
net: macb: add support for mii on rgmii

Cadence IP has option to enable MII support on RGMII interface. This
could be selected though bit 28 of network control register. This option
is not enabled on all the IP versions thus add a software capability to
be selected by the proper implementation of this IP.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.h
drivers/net/ethernet/cadence/macb_main.c