]> git.karo-electronics.de Git - karo-tx-linux.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)
commit572de608e36279f249c9a6350f142e69f23dacab
tree9a8a0ad9bddd8d919e0d07ffdd21e719db6548af
parent60cd6e63ec89deaa5abe39c903a6e6f70c94e799
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