diff options
author | Chen Minqiang <ptpt52@gmail.com> | 2018-08-04 01:14:07 +0800 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2018-08-06 09:15:09 +0200 |
commit | b40316c21a960d332bc9b04ee1791b8aafcf8786 (patch) | |
tree | cc0a677bf54d9c7a7de22e0cf82abdd9b42d6f72 /target/linux/mxs | |
parent | f63463591b9f664353b4375f5dfdba980c7bdc07 (diff) | |
download | upstream-b40316c21a960d332bc9b04ee1791b8aafcf8786.tar.gz upstream-b40316c21a960d332bc9b04ee1791b8aafcf8786.tar.bz2 upstream-b40316c21a960d332bc9b04ee1791b8aafcf8786.zip |
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>
(cherry picked from commit f6d81e2fa1f110d8025eaa434d67d0014aca1d42)
Diffstat (limited to 'target/linux/mxs')
0 files changed, 0 insertions, 0 deletions