summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c
Commit message (Collapse)AuthorAgeFilesLines
* net: stmmac: dwmac-mediatek: disable rx watchdogBiao Huang2019-06-061-0/+1
| | | | | | | | | disable rx watchdog for dwmac-mediatek, then the hw will issue a rx interrupt once receiving a packet, so the responding time for rx path will be reduced. Signed-off-by: Biao Huang <biao.huang@mediatek.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* net: stmmac: dwmac-mediatek: enable Ethernet power domainBiao Huang2019-06-061-0/+7
| | | | | | | add Ethernet power on/off operations in init/exit flow. Signed-off-by: Biao Huang <biao.huang@mediatek.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* net: stmmac: dwmac-mediatek: modify csr_clk value to fix mdio read/write failBiao Huang2019-05-251-2/+0Star
| | | | | | | | | | 1. the frequency of csr clock is 66.5MHz, so the csr_clk value should be 0 other than 5. 2. the csr_clk can be got from device tree, so remove initialization here. Fixes: 9992f37e346b ("stmmac: dwmac-mediatek: add support for mt2712") Signed-off-by: Biao Huang <biao.huang@mediatek.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* net-next: stmmac: dwmac-mediatek: remove fine-tune propertyBiao Huang2018-12-201-47/+24Star
| | | | | | | | | | 1. remove fine-tune property and related setting to simplify the timing adjustment flow. 2. set timing value according to the value from device tree, and will not care whether PHY insert internal delay. Signed-off-by: Biao Huang <biao.huang@mediatek.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* net-next: stmmac: dwmac-mediatek: add module license infoBiao Huang2018-12-131-0/+5
| | | | | | | | Add MODULE_LICENSE info to fix this: WARNING: modpost: missing MODULE_LICENSE() in drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.o Signed-off-by: Biao Huang <biao.huang@mediatek.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* stmmac: dwmac-mediatek: add support for mt2712Biao Huang2018-12-131-0/+408
Add Ethernet support for MediaTek SoCs from the mt2712 family Signed-off-by: Biao Huang <biao.huang@mediatek.com> Signed-off-by: David S. Miller <davem@davemloft.net>