aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-04-20 15:00:52 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-04-20 15:00:52 +0000
commitf4e6418a32237f734429c03fc2f8e092cec09ae8 (patch)
tree416283422d7640b27746bf472765ec571f693281 /target/linux/ar71xx/files/arch/mips/ath79/dev-eth.h
parentc75a0e86b13ec1cd35b0fa56cd5c222172a1407d (diff)
downloadupstream-f4e6418a32237f734429c03fc2f8e092cec09ae8.tar.gz
upstream-f4e6418a32237f734429c03fc2f8e092cec09ae8.tar.bz2
upstream-f4e6418a32237f734429c03fc2f8e092cec09ae8.zip
ar71xx: add a helper function to set RXDV/RXD of ETH_CFG on AR934x
The ETH_RXDV_DELAY (17:16) and ETH_RXD_DELAY (15:14) are currently not cleared by the function ath79_setup_ar934x_eth_cfg. Clearing these in the ath79_setup_ar934x_eth_cfg may cause problems on some hardware because they rely on the preset value by the bootloader. Instead another function is introduced which also works on ETH_CFG on AR934x. It can be used to safely clear and set ETH_RXDV_DELAY and ETH_RXD_DELAY on machines which require special settings. Signed-off-by: Sven Eckelmann <sven@open-mesh.com> SVN-Revision: 45523
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.h1
1 files changed, 1 insertions, 0 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 e1517b7a29..5a226e4028 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.h
+++ b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.h
@@ -47,6 +47,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);
#endif /* _ATH79_DEV_ETH_H */