0125-SDIO-overlay-add-bus_width-parameter.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From f2c83096a1292894329f8c3855be4a21f31efa44 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] SDIO-overlay: add bus_width parameter
  5. Allow setting of the SDIO bus width capability of the bcm2835-mmc
  6. host. This is helpful when only a 1 bit wide bus is connected
  7. between host and device but both host and device advertise 4 bit
  8. mode.
  9. ---
  10. arch/arm/boot/dts/overlays/README | 2 ++
  11. arch/arm/boot/dts/overlays/sdio-overlay.dts | 2 ++
  12. 2 files changed, 4 insertions(+)
  13. --- a/arch/arm/boot/dts/overlays/README
  14. +++ b/arch/arm/boot/dts/overlays/README
  15. @@ -634,6 +634,8 @@ Params: overclock_50 Clock (
  16. poll_once Disable SDIO-device polling every second
  17. (default on: polling once at boot-time)
  18. + bus_width Set the SDIO host bus width (default 4 bits)
  19. +
  20. Name: sdtweak
  21. Info: Tunes the bcm2835-sdhost SD/MMC driver
  22. --- a/arch/arm/boot/dts/overlays/sdio-overlay.dts
  23. +++ b/arch/arm/boot/dts/overlays/sdio-overlay.dts
  24. @@ -11,6 +11,7 @@
  25. pinctrl-names = "default";
  26. pinctrl-0 = <&sdio_pins>;
  27. non-removable;
  28. + bus-width = <4>;
  29. status = "okay";
  30. };
  31. };
  32. @@ -28,5 +29,6 @@
  33. __overrides__ {
  34. poll_once = <&sdio_mmc>,"non-removable?";
  35. + bus_width = <&sdio_mmc>,"bus-width:0";
  36. };
  37. };