ar71xx: allow to use large ethernet frames on AR934x SoCs
The hardware supports large ethernet frames. Override the maximum frame length and packet lenght mask in the platform data to allow to use large MTU on the ethernet interfaces. Limit the feature to AR934x SoCs for now. It should work on some other SoCs as well, but those has not been tested yet. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39149
This commit is contained in:
parent
2b220f3550
commit
f2cd3399f7
1 changed files with 4 additions and 0 deletions
|
@ -20,6 +20,7 @@
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
#include <linux/serial_8250.h>
|
#include <linux/serial_8250.h>
|
||||||
#include <linux/clk.h>
|
#include <linux/clk.h>
|
||||||
|
#include <linux/sizes.h>
|
||||||
|
|
||||||
#include <asm/mach-ath79/ath79.h>
|
#include <asm/mach-ath79/ath79.h>
|
||||||
#include <asm/mach-ath79/ar71xx_regs.h>
|
#include <asm/mach-ath79/ar71xx_regs.h>
|
||||||
|
@ -958,6 +959,9 @@ void __init ath79_register_eth(unsigned int id)
|
||||||
pdata->has_gbit = 1;
|
pdata->has_gbit = 1;
|
||||||
pdata->is_ar724x = 1;
|
pdata->is_ar724x = 1;
|
||||||
|
|
||||||
|
pdata->max_frame_len = SZ_16K - 1;
|
||||||
|
pdata->desc_pktlen_mask = SZ_16K - 1;
|
||||||
|
|
||||||
if (!pdata->fifo_cfg1)
|
if (!pdata->fifo_cfg1)
|
||||||
pdata->fifo_cfg1 = 0x0010ffff;
|
pdata->fifo_cfg1 = 0x0010ffff;
|
||||||
if (!pdata->fifo_cfg2)
|
if (!pdata->fifo_cfg2)
|
||||||
|
|
Loading…
Reference in a new issue