net-next: mediatek: add support for MediaTek MT7622 SoC
authorSean Wang <sean.wang@mediatek.com>
Mon, 31 Jul 2017 10:05:10 +0000 (18:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Aug 2017 22:51:48 +0000 (15:51 -0700)
commit42c03844e93d564cf6c44dcb7d91c5dc602c4857
tree3cf98f500ae99e3805ada1602d84b903f7307403
parent2ec50f574e8198b7d8ba677d1edcab566fa9e84f
net-next: mediatek: add support for MediaTek MT7622 SoC

This patch adds the driver for ethernet controller on MT7622 SoC. It has
the similar handling logic as the previously MT7623 does, but there are
additions against with MT7623 SoC, the shared SGMII given for the dual
GMACs and including 5-ports 10/100 embedded switch support (ESW) as the
GMAC1 option, thus more clocks consumers for the extra feature are
introduced here. So for ease portability and maintenance, those
differences all are being kept inside the platform data as other drivers
usually do. Currently testing successfully is done with those patches for
the conditions such as GMAC2 with IP1001 PHY via RGMII and GMAC1/2 with
RTL8211F PHY via SGMII.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/mediatek/mtk_eth_soc.h