aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorMantas Pucka <mantas@8devices.com>2019-03-06 10:24:33 +0200
committerChristian Lamparter <chunkeey@gmail.com>2019-03-06 22:02:56 +0100
commitfe591f2fe2e15adf6a9c263fd86bb6924a803eb1 (patch)
tree470751506c6cae6c9bfa9e1323a2ee9e7fba8d1d /target
parent4484ef587a6b29242f5bb1bec5b7762363b45175 (diff)
downloadupstream-fe591f2fe2e15adf6a9c263fd86bb6924a803eb1.tar.gz
upstream-fe591f2fe2e15adf6a9c263fd86bb6924a803eb1.tar.bz2
upstream-fe591f2fe2e15adf6a9c263fd86bb6924a803eb1.zip
ar71xx: enable QCA955x SGMII fixup on Rambutan
fixes intermittent loss of connectivity on 1Gbit port, with log message: 803x_aneg_done: SGMII link is not ok Signed-off-by: Mantas Pucka <mantas@8devices.com>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-rambutan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-rambutan.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-rambutan.c
index 36fde26c95..1730a29f33 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-rambutan.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rambutan.c
@@ -46,6 +46,7 @@ static struct mdio_board_info rambutan_mdio0_info[] = {
static struct at803x_platform_data rambutan_ar8033_data = {
.has_reset_gpio = 1,
+ .override_sgmii_aneg = 1,
.reset_gpio = 23,
};
@@ -80,6 +81,7 @@ static void __init rambutan_setup(void)
ath79_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_SGMII;
ath79_eth1_data.phy_mask = BIT(0);
ath79_eth1_data.mii_bus_dev = &ath79_mdio1_device.dev;
+ ath79_eth1_data.enable_sgmii_fixup = 1;
ath79_eth1_pll_data.pll_1000 = 0x17000000;
ath79_eth1_pll_data.pll_10 = 0x1313;
ath79_register_eth(1);