Sunxi stmmac patch from OpenWRT (experimental)
This commit is contained in:
parent
f2f2487ad4
commit
35af528384
12
patch/kernel/sunxi-dev/a20-gmac-txfifo.patch
Normal file
12
patch/kernel/sunxi-dev/a20-gmac-txfifo.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi
|
||||
index e02eb72..470edde 100644
|
||||
--- a/arch/arm/boot/dts/sun7i-a20.dtsi
|
||||
+++ b/arch/arm/boot/dts/sun7i-a20.dtsi
|
||||
@@ -1385,6 +1385,7 @@
|
||||
clock-names = "stmmaceth", "allwinner_gmac_tx";
|
||||
snps,pbl = <2>;
|
||||
snps,fixed-burst;
|
||||
+ tx-fifo-depth = <16384>;
|
||||
snps,force_sf_dma_mode;
|
||||
status = "disabled";
|
||||
#address-cells = <1>;
|
||||
14
patch/kernel/sunxi-dev/stmmac-coe-and-bugged-jumbo.patch
Normal file
14
patch/kernel/sunxi-dev/stmmac-coe-and-bugged-jumbo.patch
Normal file
@ -0,0 +1,14 @@
|
||||
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c
|
||||
index adff463..e227f3f 100644
|
||||
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c
|
||||
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c
|
||||
@@ -143,7 +143,9 @@ static int sun7i_gmac_probe(struct platform_device *pdev)
|
||||
/* platform data specifying hardware features and callbacks.
|
||||
* hardware features were copied from Allwinner drivers. */
|
||||
plat_dat->tx_coe = 1;
|
||||
+ plat_dat->rx_coe = 2;
|
||||
plat_dat->has_gmac = true;
|
||||
+ plat_dat->bugged_jumbo = 1;
|
||||
plat_dat->bsp_priv = gmac;
|
||||
plat_dat->init = sun7i_gmac_init;
|
||||
plat_dat->exit = sun7i_gmac_exit;
|
||||
Loading…
Reference in New Issue
Block a user