0002-arc-vdk-Add-support-of-MMC-controller.patch 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. From c9d5ba0157fcfe48c0ec3448bdaecbabb8cefbca Mon Sep 17 00:00:00 2001
  2. From: Alexey Brodkin <abrodkin@synopsys.com>
  3. Date: Tue, 31 Jan 2017 19:02:44 +0300
  4. Subject: [PATCH 2/3] arc: vdk: Add support of MMC controller
  5. ARC VDK virtual platform emulates host MMC controller (DW Mobile Storage)
  6. and moreover rootfs is situated on that virtual card.
  7. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
  8. ---
  9. arch/arc/boot/dts/vdk_axs10x_mb.dtsi | 18 ++++++++++++++++++
  10. arch/arc/configs/vdk_hs38_smp_defconfig | 5 ++++-
  11. 2 files changed, 22 insertions(+), 1 deletion(-)
  12. diff --git a/arch/arc/boot/dts/vdk_axs10x_mb.dtsi b/arch/arc/boot/dts/vdk_axs10x_mb.dtsi
  13. index 99498a4b4216..1953914b9f4f 100644
  14. --- a/arch/arc/boot/dts/vdk_axs10x_mb.dtsi
  15. +++ b/arch/arc/boot/dts/vdk_axs10x_mb.dtsi
  16. @@ -23,6 +23,12 @@
  17. #clock-cells = <0>;
  18. };
  19. + mmcclk: mmcclk {
  20. + compatible = "fixed-clock";
  21. + clock-frequency = <50000000>;
  22. + #clock-cells = <0>;
  23. + };
  24. +
  25. pguclk: pguclk {
  26. #clock-cells = <0>;
  27. compatible = "fixed-clock";
  28. @@ -94,5 +100,17 @@
  29. interrupts = <5>;
  30. interrupt-names = "arc_ps2_irq";
  31. };
  32. +
  33. + mmc@0x15000 {
  34. + compatible = "snps,dw-mshc";
  35. + reg = <0x15000 0x400>;
  36. + num-slots = <1>;
  37. + fifo-depth = <1024>;
  38. + card-detect-delay = <200>;
  39. + clocks = <&apbclk>, <&mmcclk>;
  40. + clock-names = "biu", "ciu";
  41. + interrupts = <7>;
  42. + bus-width = <4>;
  43. + };
  44. };
  45. };
  46. diff --git a/arch/arc/configs/vdk_hs38_smp_defconfig b/arch/arc/configs/vdk_hs38_smp_defconfig
  47. index 00036e814dc1..85c697a7ef1c 100644
  48. --- a/arch/arc/configs/vdk_hs38_smp_defconfig
  49. +++ b/arch/arc/configs/vdk_hs38_smp_defconfig
  50. @@ -79,9 +79,12 @@ CONFIG_USB_OHCI_HCD=y
  51. CONFIG_USB_OHCI_HCD_PLATFORM=y
  52. CONFIG_USB_STORAGE=y
  53. CONFIG_USB_SERIAL=y
  54. +CONFIG_MMC=y
  55. +CONFIG_MMC_SDHCI=y
  56. +CONFIG_MMC_SDHCI_PLTFM=y
  57. +CONFIG_MMC_DW=y
  58. # CONFIG_IOMMU_SUPPORT is not set
  59. CONFIG_EXT3_FS=y
  60. -CONFIG_EXT4_FS=y
  61. CONFIG_MSDOS_FS=y
  62. CONFIG_VFAT_FS=y
  63. CONFIG_NTFS_FS=y
  64. --
  65. 2.7.4