/* inform CIU */
mci_send_cmd(slot, SDMMC_CMD_UPD_CLK | SDMMC_CMD_PRV_DAT_WAIT, 0);
-
+
+ if (!(host->mmc->restrict_caps & RESTRICT_CARD_TYPE_EMMC))
+ goto normal;
+
if(clock == 400*1000){
MMC_DBG_BOOT_FUNC(host->mmc,
"dw_mci_setup_bus: argue clk_mmc workaround out 800K for init[%s]",
}
-
+normal:
/* set clock to desired speed */
mci_writel(host, CLKDIV, div);
struct dw_mci_tuning_data tuning_data;
int err = -ENOSYS;
+ if (!(mmc->restrict_caps & RESTRICT_CARD_TYPE_EMMC))
+ return 0;
+
if (opcode == MMC_SEND_TUNING_BLOCK_HS200) {
if (mmc->ios.bus_width == MMC_BUS_WIDTH_8) {
tuning_data.blk_pattern = tuning_blk_pattern_8bit;