]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: mediatek: add extension of phy-mode for TRGMII
authorSean Wang <sean.wang@mediatek.com>
Thu, 22 Sep 2016 02:33:54 +0000 (10:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Sep 2016 12:21:21 +0000 (08:21 -0400)
commita09b978e80de4c8cf315f2dc4986b7d09702411e
tree9a8a0ad9bddd8d919e0d07ffdd21e719db6548af
parent2748dcaf27ab1c36d3fbcd03e2473d7293762e04
net: ethernet: mediatek: add extension of phy-mode for TRGMII

adds PHY-mode "trgmii" as an extension for the operation
mode of the PHY interface for PHY_INTERFACE_MODE_TRGMII.
and adds a variable trgmii inside mtk_mac as the indication
to make the difference between the MAC connected to internal
switch or connected to external PHY by the given configuration
on the board and then to perform the corresponding setup on
TRGMII hardware module.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Cc: Florian Fainelli <f.fainelli@gmail.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
include/linux/phy.h