diff options
Diffstat (limited to 'drivers/mmc')
-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 7721de942c69..c471cdb1a0ba 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c | |||
@@ -1061,7 +1061,15 @@ static int __devinit mmci_probe(struct amba_device *dev, | |||
1061 | } | 1061 | } |
1062 | 1062 | ||
1063 | mmc->ops = &mmci_ops; | 1063 | mmc->ops = &mmci_ops; |
1064 | mmc->f_min = (host->mclk + 511) / 512; | 1064 | /* |
1065 | * The ARM and ST versions of the block have slightly different | ||
1066 | * clock divider equations which means that the minimum divider | ||
1067 | * differs too. | ||
1068 | */ | ||
1069 | if (variant->st_clkdiv) | ||
1070 | mmc->f_min = DIV_ROUND_UP(host->mclk, 257); | ||
1071 | else | ||
1072 | mmc->f_min = DIV_ROUND_UP(host->mclk, 512); | ||
1065 | /* | 1073 | /* |
1066 | * If the platform data supplies a maximum operating | 1074 | * If the platform data supplies a maximum operating |
1067 | * frequency, this takes precedence. Else, we fall back | 1075 | * frequency, this takes precedence. Else, we fall back |