brcm2708: switch to linux 4.4 and update patches
[openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0126-SDIO-overlay-add-bus_width-parameter.patch
1 From 2716dea6b98618f690884fcb8569fd381888f515 Mon Sep 17 00:00:00 2001
2 From: Andrew Litt <ajlitt@splunge.net>
3 Date: Mon, 11 Jan 2016 07:55:54 +0000
4 Subject: [PATCH 126/156] SDIO-overlay: add bus_width parameter
5
6 Allow setting of the SDIO bus width capability of the bcm2835-mmc
7 host.  This is helpful when only a 1 bit wide bus is connected
8 between host and device but both host and device advertise 4 bit
9 mode.
10 ---
11  arch/arm/boot/dts/overlays/README           | 2 ++
12  arch/arm/boot/dts/overlays/sdio-overlay.dts | 2 ++
13  2 files changed, 4 insertions(+)
14
15 --- a/arch/arm/boot/dts/overlays/README
16 +++ b/arch/arm/boot/dts/overlays/README
17 @@ -634,6 +634,8 @@ Params: overclock_50             Clock (
18          poll_once                Disable SDIO-device polling every second
19                                   (default on: polling once at boot-time)
20  
21 +        bus_width                Set the SDIO host bus width (default 4 bits)
22 +
23  
24  Name:   sdtweak
25  Info:   Tunes the bcm2835-sdhost SD/MMC driver
26 --- a/arch/arm/boot/dts/overlays/sdio-overlay.dts
27 +++ b/arch/arm/boot/dts/overlays/sdio-overlay.dts
28 @@ -11,6 +11,7 @@
29                         pinctrl-names = "default";
30                         pinctrl-0 = <&sdio_pins>;
31                         non-removable;
32 +                       bus-width = <4>;
33                         status = "okay";
34                 };
35         };
36 @@ -28,5 +29,6 @@
37  
38         __overrides__ {
39                 poll_once = <&sdio_mmc>,"non-removable?";
40 +               bus_width = <&sdio_mmc>,"bus-width:0";
41         };
42  };