From 22c5f96c6bb37b3368ca0f0c828cbe760f5c7f58 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Wed, 16 Mar 2016 09:27:08 +0000 Subject: ar71xx: Allow to set the RXDV, RXD, TXD, TXE delays for QCA955x Some u-boot versions for QCA955x change the delays based on the link speed during boot. This usually breaks the support of other linkspeeds when OpenWrt is booted. It also conflicts with the at803x_platform_data::fixup_rgmii_tx_delay. OpenWrt has to set its own values in QCA955X_GMAC_REG_ETH_CFG. The default RGMII values from the Atheros u-boot are currently used to preset the existing mach files. These may have to be adjusted for boards using different values but which are not currently set them explicitely in OpenWrt. Signed-off-by: Sven Eckelmann Cc: Gabor Juhos Cc: Imre Kaloz Cc: Christian Beier Cc: Chris R Blake Cc: Benjamin Berg Cc: Heiner Kallweit Cc: Cezary Jackiewicz Cc: Matthias Schiffer Cc: Dirk Neukirchen Cc: Christian Mehlis Cc: Luka Perkov Cc: Felix Fietkau SVN-Revision: 49029 --- target/linux/ar71xx/files/arch/mips/ath79/mach-mr18.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'target/linux/ar71xx/files/arch/mips/ath79/mach-mr18.c') diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-mr18.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-mr18.c index a24cb3f..215dd55 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-mr18.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-mr18.c @@ -253,9 +253,8 @@ static void __init mr18_setup(void) res = mr18_extract_sgmii_res_cal(); if (res >= 0) { /* Setup SoC Eth Config */ - ath79_setup_qca955x_eth_cfg(QCA955X_ETH_CFG_RGMII_EN | - (3 << QCA955X_ETH_CFG_RXD_DELAY_SHIFT) | - (3 << QCA955X_ETH_CFG_RDV_DELAY_SHIFT)); + ath79_setup_qca955x_eth_cfg(QCA955X_ETH_CFG_RGMII_EN, 3, 3, 0, + 0); /* MDIO Interface */ ath79_register_mdio(0, 0x0); -- cgit v1.1