summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAisheng.Dong <b29396@freescale.com>2010-07-15 19:17:50 +0800
committerAisheng.Dong <b29396@freescale.com>2010-07-16 15:12:59 +0800
commit1667105ae020df9d3e8f0ac5516934d94311b124 (patch)
tree5d49ccaf69d7d85627530f3754ea79b466107eba
parentcf1ca643ebc7a833266aad31c0e8ca5716cb551e (diff)
ENGR00125206 mmc: update clock setting for mx50
The clock prescaler can not be 0 for esdhc v3 in MX50. (The smallest value should be 1). Change the clock setting part to cover this special case. Signed-off-by: Aisheng.Dong <b29396@freescale.com>
-rw-r--r--drivers/mmc/host/mx_sdhci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/mx_sdhci.c b/drivers/mmc/host/mx_sdhci.c
index 229210dd0d0a..520310a3354c 100644
--- a/drivers/mmc/host/mx_sdhci.c
+++ b/drivers/mmc/host/mx_sdhci.c
@@ -817,7 +817,7 @@ static void sdhci_set_clock(struct sdhci_host *host, unsigned int clock)
if (clock == host->min_clk)
prescaler = 16;
- else if (cpu_is_mx53())
+ else if (cpu_is_mx53() || cpu_is_mx50())
prescaler = 1;
else
prescaler = 0;