aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/host/mmci.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c
index fe140724a02..50f4f77ed20 100644
--- a/drivers/mmc/host/mmci.c
+++ b/drivers/mmc/host/mmci.c
@@ -1063,7 +1063,15 @@ static int __devinit mmci_probe(struct amba_device *dev,
1063 } 1063 }
1064 1064
1065 mmc->ops = &mmci_ops; 1065 mmc->ops = &mmci_ops;
1066 mmc->f_min = (host->mclk + 511) / 512; 1066 /*
1067 * The ARM and ST versions of the block have slightly different
1068 * clock divider equations which means that the minimum divider
1069 * differs too.
1070 */
1071 if (variant->st_clkdiv)
1072 mmc->f_min = DIV_ROUND_UP(host->mclk, 257);
1073 else
1074 mmc->f_min = DIV_ROUND_UP(host->mclk, 512);
1067 /* 1075 /*
1068 * If the platform data supplies a maximum operating 1076 * If the platform data supplies a maximum operating
1069 * frequency, this takes precedence. Else, we fall back 1077 * frequency, this takes precedence. Else, we fall back