diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-11-27 16:24:32 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-11-27 16:24:32 +0000 |
commit | ca2d0c15cc9984515e4e262f8af331e7b38ce015 (patch) | |
tree | c07833c807d4366dab8c1cc596918f83addc5c97 /target/linux/cns3xxx/patches-3.18/200-broadcom_phy_reinit.patch | |
parent | a03b522bd68734098574b8585e4d45a1b470f26d (diff) | |
download | upstream-ca2d0c15cc9984515e4e262f8af331e7b38ce015.tar.gz upstream-ca2d0c15cc9984515e4e262f8af331e7b38ce015.tar.bz2 upstream-ca2d0c15cc9984515e4e262f8af331e7b38ce015.zip |
cns3xxx: add experimental 3.18 support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43406
Diffstat (limited to 'target/linux/cns3xxx/patches-3.18/200-broadcom_phy_reinit.patch')
-rw-r--r-- | target/linux/cns3xxx/patches-3.18/200-broadcom_phy_reinit.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/cns3xxx/patches-3.18/200-broadcom_phy_reinit.patch b/target/linux/cns3xxx/patches-3.18/200-broadcom_phy_reinit.patch new file mode 100644 index 0000000000..e4cc27829e --- /dev/null +++ b/target/linux/cns3xxx/patches-3.18/200-broadcom_phy_reinit.patch @@ -0,0 +1,14 @@ +--- a/drivers/net/phy/broadcom.c ++++ b/drivers/net/phy/broadcom.c +@@ -393,6 +393,11 @@ static int bcm5481_config_aneg(struct ph + /* Write bits 14:0. */ + reg |= (1 << 15); + phy_write(phydev, 0x18, reg); ++ } else { ++ phy_write(phydev, 0x18, 0xf1e7); ++ phy_write(phydev, 0x1c, 0x8e00); ++ ++ phy_write(phydev, 0x1c, 0xa41f); + } + + return ret; |