diff options
author | John Crispin <john@openwrt.org> | 2016-03-16 09:27:08 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2016-03-16 09:27:08 +0000 |
commit | 22c5f96c6bb37b3368ca0f0c828cbe760f5c7f58 (patch) | |
tree | fc06efb752654b730a9a6750baec0fecaa2f919a /target/linux/ar71xx/files/arch/mips/ath79/dev-eth.h | |
parent | be68f34708db920a46d0dd6013b8bdae51685238 (diff) | |
download | upstream-22c5f96c6bb37b3368ca0f0c828cbe760f5c7f58.tar.gz upstream-22c5f96c6bb37b3368ca0f0c828cbe760f5c7f58.tar.bz2 upstream-22c5f96c6bb37b3368ca0f0c828cbe760f5c7f58.zip |
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 <sven.eckelmann@open-mesh.com>
Cc: Gabor Juhos <juhosg@openwrt.org>
Cc: Imre Kaloz <kaloz@openwrt.org>
Cc: Christian Beier <cb@shoutrlabs.com>
Cc: Chris R Blake <chrisrblake93@gmail.com>
Cc: Benjamin Berg <benjamin@sipsolutions.net>
Cc: Heiner Kallweit <hkallweit1@gmail.com>
Cc: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
Cc: Matthias Schiffer <mschiffer@universe-factory.net>
Cc: Dirk Neukirchen <dirkneukirchen@web.de>
Cc: Christian Mehlis <christian@m3hlis.de>
Cc: Luka Perkov <luka@openwrt.org>
Cc: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 49029
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79/dev-eth.h')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/dev-eth.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.h b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.h index 5a226e4028..3908750318 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.h +++ b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.h @@ -48,6 +48,7 @@ void ath79_register_mdio(unsigned int id, u32 phy_mask); void ath79_setup_ar933x_phy4_switch(bool mac, bool mdio); void ath79_setup_ar934x_eth_cfg(u32 mask); void ath79_setup_ar934x_eth_rx_delay(unsigned int rxd, unsigned int rxdv); -void ath79_setup_qca955x_eth_cfg(u32 mask); +void ath79_setup_qca955x_eth_cfg(u32 mask, unsigned int rxd, unsigned int rxdv, + unsigned int txd, unsigned int txe); #endif /* _ATH79_DEV_ETH_H */ |