brcm2708: switch to linux 4.4 and update patches
[openwrt.git] / target / linux / brcm2708 / patches-4.1 / 0181-BCM270X_DT-mz61581-Set-txbuflen-to-32k.patch
1 From ac65af2b3277c319918d67e5714d1f88ed6e4ff9 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= <noralf@tronnes.org>
3 Date: Sun, 13 Sep 2015 17:17:14 +0200
4 Subject: [PATCH 181/222] BCM270X_DT: mz61581: Set txbuflen to 32k
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Because of the spi dma mapping/engine overhead with spi-bcm2835,
10 txbuflen has to be increased from 4096 to 32768 to maximize
11 throughput (11MB/s at 128MHz).
12
13 Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
14 ---
15  arch/arm/boot/dts/overlays/README              | 2 ++
16  arch/arm/boot/dts/overlays/mz61581-overlay.dts | 2 ++
17  2 files changed, 4 insertions(+)
18
19 --- a/arch/arm/boot/dts/overlays/README
20 +++ b/arch/arm/boot/dts/overlays/README
21 @@ -368,6 +368,8 @@ Params: speed                    Display
22  
23          fps                      Delay between frame updates
24  
25 +        txbuflen                 Transmit buffer length (default 32768)
26 +
27          debug                    Debug output level {0-7}
28  
29          xohms                    Touchpanel sensitivity (X-plate resistance)
30 --- a/arch/arm/boot/dts/overlays/mz61581-overlay.dts
31 +++ b/arch/arm/boot/dts/overlays/mz61581-overlay.dts
32 @@ -57,6 +57,7 @@
33                                 bgr;
34                                 fps = <30>;
35                                 buswidth = <8>;
36 +                               txbuflen = <32768>;
37  
38                                 reset-gpios = <&gpio 15 0>;
39                                 dc-gpios = <&gpio 25 0>;
40 @@ -103,6 +104,7 @@
41                 speed =   <&mz61581>, "spi-max-frequency:0";
42                 rotate =  <&mz61581>, "rotate:0";
43                 fps =     <&mz61581>, "fps:0";
44 +               txbuflen = <&mz61581>, "txbuflen:0";
45                 debug =   <&mz61581>, "debug:0";
46                 xohms =   <&mz61581_ts>,"ti,x-plate-ohms;0";
47         };