]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
arc: vdk: Add support of MMC controller
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Wed, 1 Feb 2017 16:42:52 +0000 (19:42 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 6 Feb 2017 17:37:57 +0000 (09:37 -0800)
ARC VDK virtual platform emulates host MMC controller (DW Mobile Storage)
and moreover rootfs is situated on that virtual card.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/boot/dts/vdk_axs10x_mb.dtsi
arch/arc/configs/vdk_hs38_smp_defconfig

index 99498a4b42161cadaffd530566f28674a16986bf..1953914b9f4fd6f610821afc66694001d27d5f47 100644 (file)
                                #clock-cells = <0>;
                        };
 
+                       mmcclk: mmcclk {
+                               compatible = "fixed-clock";
+                               clock-frequency = <50000000>;
+                               #clock-cells = <0>;
+                       };
+
                        pguclk: pguclk {
                                #clock-cells = <0>;
                                compatible = "fixed-clock";
                        interrupts = <5>;
                        interrupt-names = "arc_ps2_irq";
                };
+
+               mmc@0x15000 {
+                       compatible = "snps,dw-mshc";
+                       reg = <0x15000 0x400>;
+                       num-slots = <1>;
+                       fifo-depth = <1024>;
+                       card-detect-delay = <200>;
+                       clocks = <&apbclk>, <&mmcclk>;
+                       clock-names = "biu", "ciu";
+                       interrupts = <7>;
+                       bus-width = <4>;
+               };
        };
 };
index f84714e764836bc42741ebb75d547028e56de93f..f06c7fca500ca08264e0706faa607bd32ecbab70 100644 (file)
@@ -78,6 +78,10 @@ CONFIG_USB_OHCI_HCD=y
 CONFIG_USB_OHCI_HCD_PLATFORM=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_SERIAL=y
+CONFIG_MMC=y
+CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_PLTFM=y
+CONFIG_MMC_DW=y
 # CONFIG_IOMMU_SUPPORT is not set
 CONFIG_EXT3_FS=y
 CONFIG_MSDOS_FS=y