Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arc: vdk: Add support of MMC controller

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>

authored by

Alexey Brodkin and committed by
Vineet Gupta
d9174e72 91447ec9

+22
+18
arch/arc/boot/dts/vdk_axs10x_mb.dtsi
··· 23 23 #clock-cells = <0>; 24 24 }; 25 25 26 + mmcclk: mmcclk { 27 + compatible = "fixed-clock"; 28 + clock-frequency = <50000000>; 29 + #clock-cells = <0>; 30 + }; 31 + 26 32 pguclk: pguclk { 27 33 #clock-cells = <0>; 28 34 compatible = "fixed-clock"; ··· 99 93 reg = <0x17400 0x14>; 100 94 interrupts = <5>; 101 95 interrupt-names = "arc_ps2_irq"; 96 + }; 97 + 98 + mmc@0x15000 { 99 + compatible = "snps,dw-mshc"; 100 + reg = <0x15000 0x400>; 101 + num-slots = <1>; 102 + fifo-depth = <1024>; 103 + card-detect-delay = <200>; 104 + clocks = <&apbclk>, <&mmcclk>; 105 + clock-names = "biu", "ciu"; 106 + interrupts = <7>; 107 + bus-width = <4>; 102 108 }; 103 109 }; 104 110 };
+4
arch/arc/configs/vdk_hs38_smp_defconfig
··· 78 78 CONFIG_USB_OHCI_HCD_PLATFORM=y 79 79 CONFIG_USB_STORAGE=y 80 80 CONFIG_USB_SERIAL=y 81 + CONFIG_MMC=y 82 + CONFIG_MMC_SDHCI=y 83 + CONFIG_MMC_SDHCI_PLTFM=y 84 + CONFIG_MMC_DW=y 81 85 # CONFIG_IOMMU_SUPPORT is not set 82 86 CONFIG_EXT3_FS=y 83 87 CONFIG_MSDOS_FS=y