supports-highspeed;
supports-emmc;
bootpart-no-access;
-
+
+ //supports-tSD;
//supports-DDR_MODE; //you should set the two value in your project. only close in RK3288-SDK board.
//caps2-mmc-hs200;
supports-emmc;
bootpart-no-access;
+ //supports-tSD;
//supports-DDR_MODE; //you should set the two value in your project. only close in RK3288-SDK board.
//caps2-mmc-hs200;
if(host->restrict_caps & (RESTRICT_CARD_TYPE_SDIO |RESTRICT_CARD_TYPE_SD))
mmc_send_if_cond(host, host->ocr_avail);
- /* Order's important: probe SDIO, then SD, then MMC */
- if ((host->restrict_caps &RESTRICT_CARD_TYPE_SDIO) && !mmc_attach_sdio(host))
+ /* Order's important: probe SDIO, then SD, then MMC */
+ if ((host->restrict_caps & RESTRICT_CARD_TYPE_SDIO) && !mmc_attach_sdio(host))
return 0;
- if ((host->restrict_caps &RESTRICT_CARD_TYPE_SD) && !mmc_attach_sd(host))
+ if ((host->restrict_caps & (RESTRICT_CARD_TYPE_SD | RESTRICT_CARD_TYPE_TSD)) && !mmc_attach_sd(host))
return 0;
- if ((host->restrict_caps &(RESTRICT_CARD_TYPE_EMMC|RESTRICT_CARD_TYPE_SD)) && !mmc_attach_mmc(host))
+ if ((host->restrict_caps & RESTRICT_CARD_TYPE_EMMC) && !mmc_attach_mmc(host))
return 0;
#endif
mmc->restrict_caps |= RESTRICT_CARD_TYPE_SDIO;
if (of_find_property(host->dev->of_node, "supports-emmc", NULL))
mmc->restrict_caps |= RESTRICT_CARD_TYPE_EMMC;
+ /* Fixup for tSD */
+ if (of_find_property(host->dev->of_node, "supports-tSD", NULL))
+ mmc->restrict_caps |= RESTRICT_CARD_TYPE_TSD;
+
/* We assume only low-level chip use gpio_cd */
if (cpu_is_rk312x() &&
mmc_pm_flag_t pm_caps; /* supported pm features */
u32 restrict_caps; /*restrict the SDMMC controller to support card type;1--SD card; 2--sdio; 4--eMMC */
-#define RESTRICT_CARD_TYPE_SD (1 << 0) /*noted by XBW, Rockchip Co.Ld*/
-#define RESTRICT_CARD_TYPE_SDIO (1 << 1)
-#define RESTRICT_CARD_TYPE_EMMC (1 << 2)
+#define RESTRICT_CARD_TYPE_SD (1 << 0) /*support SD*/
+#define RESTRICT_CARD_TYPE_SDIO (1 << 1) /*support SDIO*/
+#define RESTRICT_CARD_TYPE_EMMC (1 << 2) /*support EMMC*/
+#define RESTRICT_CARD_TYPE_TSD (1 << 3) /*support tSD*/
unsigned int hold_reg_flag;//to fix the hold_reg value