]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dts: lpc18xx: configure dwmac properly
authorJoachim Eastwood <manabian@gmail.com>
Fri, 6 May 2016 06:57:49 +0000 (08:57 +0200)
committerJoachim Eastwood <manabian@gmail.com>
Sat, 27 Aug 2016 14:13:19 +0000 (16:13 +0200)
Configure the DWMAC FIFO sizes, burst length and threshold DMA mode on
LPC18xx/43xx SoCs. These parameters are needed for correct operation of
the Ethernet MAC. The DWMAC on LPC18xx/43xx does not support RSF DMA
mode and therefore must use threshold mode.

Signed-off-by: Joachim Eastwood <manabian@gmail.com>
arch/arm/boot/dts/lpc18xx.dtsi

index fdb736c82045ca25671728112bcdd982939d5ae3..3d828fcfc7c43e958546ae62866cfbb07c65615f 100644 (file)
                        clock-names = "stmmaceth";
                        resets = <&rgu 22>;
                        reset-names = "stmmaceth";
+                       rx-fifo-depth = <256>;
+                       tx-fifo-depth = <256>;
+                       snps,pbl = <4>; /* 32 (8x mode) */
+                       snps,force_thresh_dma_mode;
                        status = "disabled";
                };