continue with the privous Commit. Complete submission SDMMC driver in kernel-3.10...
authorxbw <xbw@rock-chips.com>
Tue, 25 Feb 2014 04:43:01 +0000 (12:43 +0800)
committerxbw <xbw@rock-chips.com>
Tue, 25 Feb 2014 04:43:01 +0000 (12:43 +0800)
arch/arm/boot/dts/rk3188-mmc.dtsi
drivers/mmc/host/Kconfig
drivers/mmc/host/Makefile
drivers/mmc/host/dw_mmc-rockchip.c

index 2b4eb8d9f2075ef75fc6fc56d1526569a9dc9e3d..1305446118b6219cf9f38e2a40409265f9a7c8a8 100755 (executable)
@@ -31,6 +31,8 @@
            num-slots = <1>;
            supports-highspeed;
            broken-cd;
+           card-detect-delay = <200>;
+           pwr-gpios = <&gpio3 GPIO_A1 GPIO_ACTIVE_LOW>; /*pwr_en = GPIO3_A1*/
            fifo-depth = <0x80>;
            mmc,caps = <(MMC_CAP_4_BIT_DATA | MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED)>;
            mmc,ocr =  <(MMC_VDD_25_26 | MMC_VDD_26_27 | MMC_VDD_27_28 | MMC_VDD_28_29 |
index 0fc7a9eed0be25990803010a61e025f2bb0ec522..cae55137680183eaa93fd6859ad65694ba6b485c 100755 (executable)
@@ -547,7 +547,7 @@ config MMC_DW_PLTFM
 
          If unsure, say Y.
 
-config MMC_DW_RK
+config MMC_DW_ROCKCHIP
        tristate "Rockchip specific extensions for Synopsys DW Memory Card Interface"
        depends on MMC_DW
        select MMC_DW_PLTFM
index 81cd30728cb5039930bfef50fa62d08fc5d78af9..9ce5584275211b73512a092e0b90ece831dc9807 100755 (executable)
@@ -39,11 +39,14 @@ obj-$(CONFIG_MMC_SDHI)              += sh_mobile_sdhi.o
 obj-$(CONFIG_MMC_CB710)                += cb710-mmc.o
 obj-$(CONFIG_MMC_VIA_SDMMC)    += via-sdmmc.o
 obj-$(CONFIG_SDH_BFIN)         += bfin_sdh.o
-obj-$(CONFIG_MMC_DW)           += dw_mmc.o
+
+#obj-$(CONFIG_MMC_DW)          += dw_mmc.o
+obj-$(CONFIG_MMC_DW)           += rk_sdmmc.o
+
 obj-$(CONFIG_MMC_DW_PLTFM)     += dw_mmc-pltfm.o
 
-# added by XBW to Specific Extensions for Synopsys DW Multimedia Card Interface in Rockchip Soc.
-obj-$(CONFIG_MMC_DW_RK)         += dw_mmc-rockchip.o rk_sdmmc_of.o
+# To Specific Extensions for Synopsys DW Multimedia Card Interface in Rockchip Soc. Added by XBW.
+obj-$(CONFIG_MMC_DW_ROCKCHIP)         += dw_mmc-rockchip.o rk_sdmmc_of.o
 
 obj-$(CONFIG_MMC_DW_EXYNOS)    += dw_mmc-exynos.o
 obj-$(CONFIG_MMC_DW_PCI)       += dw_mmc-pci.o
index 86c12333dba082383132fef287ad42c3eee7f8c0..0d07c55bdd32062eb828ea54e85b9559d4aa19b6 100755 (executable)
@@ -20,7 +20,7 @@
 #include <linux/of.h>
 #include <linux/of_gpio.h>
 
-#include "dw_mmc.h"
+#include "rk_sdmmc.h"
 #include "dw_mmc-pltfm.h"
 
 #include "rk_sdmmc_of.h"
@@ -223,6 +223,6 @@ static struct platform_driver dw_mci_rockchip_pltfm_driver = {
 module_platform_driver(dw_mci_rockchip_pltfm_driver);
 
 MODULE_DESCRIPTION("Rockchip Specific DW-SDMMC Driver Extension");
-MODULE_AUTHOR("Bangwang Xie < xbw@rock-chips.com");
+MODULE_AUTHOR("Bangwang Xie < xbw@rock-chips.com>");
 MODULE_LICENSE("GPL v2");
 MODULE_ALIAS("platform:dwmmc-rockchip");