]> git.sur5r.net Git - u-boot/blobdiff - drivers/mmc/sunxi_mmc.c
usb: dwc3: Add DWC3 controller driver support
[u-boot] / drivers / mmc / sunxi_mmc.c
index c4300f25fd7f0cf5544acd41d7fd0536a0d6d30a..e7ab828a8f1e1f5df54088e8d9d52e0d1c1b1889 100644 (file)
@@ -75,8 +75,10 @@ static int mmc_resource_init(int sdc_no)
        cd_pin = sunxi_mmc_getcd_gpio(sdc_no);
        if (cd_pin >= 0) {
                ret = gpio_request(cd_pin, "mmc_cd");
-               if (!ret)
+               if (!ret) {
+                       sunxi_gpio_set_pull(cd_pin, SUNXI_GPIO_PULL_UP);
                        ret = gpio_direction_input(cd_pin);
+               }
        }
 
        return ret;
@@ -449,7 +451,7 @@ struct mmc *sunxi_mmc_init(int sdc_no)
 
        cfg->voltages = MMC_VDD_32_33 | MMC_VDD_33_34;
        cfg->host_caps = MMC_MODE_4BIT;
-       cfg->host_caps |= MMC_MODE_HS_52MHz | MMC_MODE_HS | MMC_MODE_HC;
+       cfg->host_caps |= MMC_MODE_HS_52MHz | MMC_MODE_HS;
        cfg->b_max = CONFIG_SYS_MMC_MAX_BLK_COUNT;
 
        cfg->f_min = 400000;