aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoen Vandeputte <koen.vandeputte@ncentric.com>2021-10-12 11:02:30 +0200
committerKoen Vandeputte <koen.vandeputte@ncentric.com>2021-10-12 11:03:02 +0200
commit5e8b9624f1791d193e8d5e007ce4c873454f014a (patch)
tree5674abf6e31cfc5d971db1f2809ba598c444f5e6
parentc72ea2a6c7ab25ac451164e6373a721c98cd9603 (diff)
downloadupstream-5e8b9624f1791d193e8d5e007ce4c873454f014a.tar.gz
upstream-5e8b9624f1791d193e8d5e007ce4c873454f014a.tar.bz2
upstream-5e8b9624f1791d193e8d5e007ce4c873454f014a.zip
ar71xx: mikrotik: rb91x: fix 10M ethernet link speed
Extensive testing on the board showed that ethernet does not work when forced to 10Mbps. Trial-and-error revealed that the correct PLL value should be altered to 0x00001313 (iso 0x00001616) The change is done for this specific board only as I do not have other boards using this specific SoC. The board now works correctly in 1000, 100 and 10 Mode Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c
index 9620718962..f63ab4362a 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c
@@ -318,6 +318,7 @@ static void __init rb711gr100_setup(void)
ath79_init_mac(ath79_eth0_data.mac_addr, ath79_mac_base, 0);
ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII;
ath79_eth0_data.phy_mask = BIT(0);
+ ath79_eth0_pll_data.pll_10 = 0x00001313;
ath79_eth0_pll_data.pll_1000 = 0x02000000;
ath79_register_eth(0);