]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: meson8b: add ethernet fifo sizes
authorJerome Brunet <jbrunet@baylibre.com>
Thu, 18 Jul 2019 09:36:23 +0000 (11:36 +0200)
committerKevin Hilman <khilman@baylibre.com>
Mon, 5 Aug 2019 21:38:06 +0000 (14:38 -0700)
If unspecified in DT, the fifo sizes are not automatically detected by
the dwmac1000 dma driver and the reported fifo sizes default to 0.
Because of this, flow control will be turned off on the device.

Add the fifo sizes provided by the datasheet in the SoC in DT so
flow control may be enabled if necessary.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm/boot/dts/meson8b.dtsi

index fba2c70c2fda321155ffa498f4d6691af70720eb..b044ad78b4758adc97166aecadb642d1f456c1ca 100644 (file)
@@ -410,6 +410,8 @@ &ethmac {
                 <&clkc CLKID_MPLL2>,
                 <&clkc CLKID_MPLL2>;
        clock-names = "stmmaceth", "clkin0", "clkin1";
+       rx-fifo-depth = <4096>;
+       tx-fifo-depth = <2048>;
 
        resets = <&reset RESET_ETHERNET>;
        reset-names = "stmmaceth";