aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-12-20 11:41:17 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-12-20 11:41:17 +0000
commit2c4e3cf33a67dd40f34171141f44dde55b8a55ff (patch)
tree989fd2d8dfc1ecff0484046b792617a1a1f130cf /target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
parent9be1e508f98abad12d099b26e2087c5e95fe2d64 (diff)
downloadupstream-2c4e3cf33a67dd40f34171141f44dde55b8a55ff.tar.gz
upstream-2c4e3cf33a67dd40f34171141f44dde55b8a55ff.tar.bz2
upstream-2c4e3cf33a67dd40f34171141f44dde55b8a55ff.zip
ar71xx: ag71xx: get max_frame_len and desc_pktlen_mask from platform data
This will allow to use SoC specific values for both. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39145
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
index 742218bb32..8b54d0c817 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
@@ -786,6 +786,9 @@ void __init ath79_register_eth(unsigned int id)
pdata = pdev->dev.platform_data;
+ pdata->max_frame_len = 1540;
+ pdata->desc_pktlen_mask = 0xfff;
+
err = ath79_setup_phy_if_mode(id, pdata);
if (err) {
printk(KERN_ERR