openwrtv4/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek
Chen Minqiang f6d81e2fa1 mt7620: gsw: make IntPHY and ExtPHY share mdio addr 4 possible
To share mdio addr for IntPHY and ExtPHY,
as described in the documentation (MT7620_ProgrammingGuide.pdf).
(refer: http://download.villagetelco.org/hardware/MT7620/MT7620_ProgrammingGuide.pdf)

when port4 setup to work as gmac mode, dts like:

&gsw {
    mediatek,port4 = "gmac";
};

we should set SYSCFG1.GE2_MODE==0x0 (RGMII).
but SYSCFG1.GE2_MODE may have been set to 3(RJ-45) by uboot/default
so we need to re-set it to 0x0

before this changes:
gsw: 4FE + 2GE may not work correctly and MDIO addr 4 cannot be used by ExtPHY

after this changes:
gsw: 4FE + 2GE works and MDIO addr 4 can be used by ExtPHY

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2018-08-06 07:12:31 +02:00
..
esw_rt3050.c ramips: rename ethernet driver folder to the same one that upstream uses 2018-06-13 12:54:25 +02:00
esw_rt3050.h ramips: rename ethernet driver folder to the same one that upstream uses 2018-06-13 12:54:25 +02:00
ethtool.c ramips: rename ethernet driver folder to the same one that upstream uses 2018-06-13 12:54:25 +02:00
ethtool.h ramips: rename ethernet driver folder to the same one that upstream uses 2018-06-13 12:54:25 +02:00
gsw_mt7620.c mt7620: gsw: make IntPHY and ExtPHY share mdio addr 4 possible 2018-08-06 07:12:31 +02:00
gsw_mt7620.h ramips: rename ethernet driver folder to the same one that upstream uses 2018-06-13 12:54:25 +02:00
gsw_mt7621.c ramips: rename ethernet driver folder to the same one that upstream uses 2018-06-13 12:54:25 +02:00
Kconfig ramips: rename ethernet driver folder to the same one that upstream uses 2018-06-13 12:54:25 +02:00
Makefile ramips: rename ethernet driver folder to the same one that upstream uses 2018-06-13 12:54:25 +02:00
mdio.c ramips: fix gigabit switch PHY access on MDIO 2018-08-06 07:05:37 +02:00
mdio.h ramips: rename ethernet driver folder to the same one that upstream uses 2018-06-13 12:54:25 +02:00
mdio_mt7620.c ramips: rename ethernet driver folder to the same one that upstream uses 2018-06-13 12:54:25 +02:00
mdio_rt2880.c ramips: rename ethernet driver folder to the same one that upstream uses 2018-06-13 12:54:25 +02:00
mdio_rt2880.h ramips: rename ethernet driver folder to the same one that upstream uses 2018-06-13 12:54:25 +02:00
mt7530.c ramips: rename ethernet driver folder to the same one that upstream uses 2018-06-13 12:54:25 +02:00
mt7530.h ramips: rename ethernet driver folder to the same one that upstream uses 2018-06-13 12:54:25 +02:00
mtk_debugfs.c ramips: rename ethernet driver folder to the same one that upstream uses 2018-06-13 12:54:25 +02:00
mtk_eth_soc.c ramips: ethernet: use own page_frag_cache 2018-07-12 18:43:53 +02:00
mtk_eth_soc.h ramips: ethernet: use own page_frag_cache 2018-07-12 18:43:53 +02:00
mtk_offload.c ramips: rename ethernet driver folder to the same one that upstream uses 2018-06-13 12:54:25 +02:00
mtk_offload.h ramips: rename ethernet driver folder to the same one that upstream uses 2018-06-13 12:54:25 +02:00
soc_mt7620.c ramips: rename ethernet driver folder to the same one that upstream uses 2018-06-13 12:54:25 +02:00
soc_mt7621.c ramips: ethernet: disable fraglist support 2018-07-14 08:32:39 +02:00
soc_rt2880.c ramips: rename ethernet driver folder to the same one that upstream uses 2018-06-13 12:54:25 +02:00
soc_rt3050.c ramips: rename ethernet driver folder to the same one that upstream uses 2018-06-13 12:54:25 +02:00
soc_rt3883.c ramips: rename ethernet driver folder to the same one that upstream uses 2018-06-13 12:54:25 +02:00