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
commitc52c793ce1ea54b92622608cff26c1fb93d9451c (patch)
treecfd97477879cece55ef44fc29d18e33194020317 /target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
parent121c26751ee7e4f6495843824e70e5026318eaa8 (diff)
downloadmaster-187ad058-c52c793ce1ea54b92622608cff26c1fb93d9451c.tar.gz
master-187ad058-c52c793ce1ea54b92622608cff26c1fb93d9451c.tar.bz2
master-187ad058-c52c793ce1ea54b92622608cff26c1fb93d9451c.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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39145 3c298f89-4303-0410-b956-a3cf2f4a3e73
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