diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/host/mmci.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index fef7140eb1d0..56e9a4168264 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c | |||
@@ -1184,7 +1184,15 @@ static int __devinit mmci_probe(struct amba_device *dev, | |||
1184 | } | 1184 | } |
1185 | 1185 | ||
1186 | mmc->ops = &mmci_ops; | 1186 | mmc->ops = &mmci_ops; |
1187 | mmc->f_min = (host->mclk + 511) / 512; | 1187 | /* |
1188 | * The ARM and ST versions of the block have slightly different | ||
1189 | * clock divider equations which means that the minimum divider | ||
1190 | * differs too. | ||
1191 | */ | ||
1192 | if (variant->st_clkdiv) | ||
1193 | mmc->f_min = DIV_ROUND_UP(host->mclk, 257); | ||
1194 | else | ||
1195 | mmc->f_min = DIV_ROUND_UP(host->mclk, 512); | ||
1188 | /* | 1196 | /* |
1189 | * If the platform data supplies a maximum operating | 1197 | * If the platform data supplies a maximum operating |
1190 | * frequency, this takes precedence. Else, we fall back | 1198 | * frequency, this takes precedence. Else, we fall back |