X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=drivers%2Fmmc%2Fgen_atmel_mci.c;h=4968c5e4912aa46da6b68884e58fc9edda4375f3;hb=d8bd820935bb9b8bf2717a259eeab4376e9ccc9a;hp=d217574b57f7a3b0f34259a5c7616753d838ce28;hpb=c310fc840472a36e4b9d2505830e9dc8d458d63c;p=u-boot diff --git a/drivers/mmc/gen_atmel_mci.c b/drivers/mmc/gen_atmel_mci.c index d217574b57..4968c5e491 100644 --- a/drivers/mmc/gen_atmel_mci.c +++ b/drivers/mmc/gen_atmel_mci.c @@ -183,10 +183,6 @@ mci_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) /* Figure out the transfer arguments */ cmdr = mci_encode_cmd(cmd, data, &error_flags); - if (data) - writel(MMCI_BF(BCNT, data->blocks) | - MMCI_BF(BLKLEN, mmc->read_bl_len), &mci->blkr); - /* Send the command */ writel(cmd->cmdarg, &mci->argr); writel(cmdr, &mci->cmdr); @@ -341,6 +337,7 @@ int atmel_mci_init(void *regs) mmc->send_cmd = mci_send_cmd; mmc->set_ios = mci_set_ios; mmc->init = mci_init; + mmc->getcd = NULL; /* need to be able to pass these in on a board by board basis */ mmc->voltages = MMC_VDD_32_33 | MMC_VDD_33_34;