aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mmc/host/tmio_mmc.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/mmc/host/tmio_mmc.c b/drivers/mmc/host/tmio_mmc.c
index b57664070485..fe6d2b6c0161 100644
--- a/drivers/mmc/host/tmio_mmc.c
+++ b/drivers/mmc/host/tmio_mmc.c
@@ -493,11 +493,6 @@ static int tmio_mmc_resume(struct platform_device *dev)
493 struct tmio_mmc_host *host = mmc_priv(mmc); 493 struct tmio_mmc_host *host = mmc_priv(mmc);
494 int ret = 0; 494 int ret = 0;
495 495
496 /* Enable the MMC/SD Control registers */
497 sd_config_write16(host, CNF_CMD, SDCREN);
498 sd_config_write32(host, CNF_CTL_BASE,
499 (dev->resource[0].start >> host->bus_shift) & 0xfffe);
500
501 /* Tell the MFD core we are ready to be enabled */ 496 /* Tell the MFD core we are ready to be enabled */
502 if (cell->enable) { 497 if (cell->enable) {
503 ret = cell->enable(dev); 498 ret = cell->enable(dev);
@@ -505,6 +500,11 @@ static int tmio_mmc_resume(struct platform_device *dev)
505 goto out; 500 goto out;
506 } 501 }
507 502
503 /* Enable the MMC/SD Control registers */
504 sd_config_write16(host, CNF_CMD, SDCREN);
505 sd_config_write32(host, CNF_CTL_BASE,
506 (dev->resource[0].start >> host->bus_shift) & 0xfffe);
507
508 mmc_resume_host(mmc); 508 mmc_resume_host(mmc);
509 509
510out: 510out:
@@ -563,11 +563,6 @@ static int __devinit tmio_mmc_probe(struct platform_device *dev)
563 mmc->f_min = mmc->f_max / 512; 563 mmc->f_min = mmc->f_max / 512;
564 mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34; 564 mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34;
565 565
566 /* Enable the MMC/SD Control registers */
567 sd_config_write16(host, CNF_CMD, SDCREN);
568 sd_config_write32(host, CNF_CTL_BASE,
569 (dev->resource[0].start >> host->bus_shift) & 0xfffe);
570
571 /* Tell the MFD core we are ready to be enabled */ 566 /* Tell the MFD core we are ready to be enabled */
572 if (cell->enable) { 567 if (cell->enable) {
573 ret = cell->enable(dev); 568 ret = cell->enable(dev);
@@ -575,6 +570,11 @@ static int __devinit tmio_mmc_probe(struct platform_device *dev)
575 goto unmap_cnf; 570 goto unmap_cnf;
576 } 571 }
577 572
573 /* Enable the MMC/SD Control registers */
574 sd_config_write16(host, CNF_CMD, SDCREN);
575 sd_config_write32(host, CNF_CTL_BASE,
576 (dev->resource[0].start >> host->bus_shift) & 0xfffe);
577
578 /* Disable SD power during suspend */ 578 /* Disable SD power during suspend */
579 sd_config_write8(host, CNF_PWR_CTL_3, 0x01); 579 sd_config_write8(host, CNF_PWR_CTL_3, 0x01);
580 580