ARM: 6526/1: mmci: corrected calculation of clock div for ux500
authorLinus Walleij <linus.walleij@stericsson.com>
Mon, 6 Dec 2010 08:24:14 +0000 (09:24 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 19 Dec 2010 16:01:24 +0000 (16:01 +0000)
commitb70a67f938e4a7544ca4dea2856b88f3c47669ff
tree2ce47d93d20f32215fcac74063947e2d45bf8289
parent34177802001894e064c857cac2759f68119550cd
ARM: 6526/1: mmci: corrected calculation of clock div for ux500

The Ux500 variant of this block has a different divider.
The value used right now is too big and which means a loss
in performance. This fix corrects it. Also expand the math
comments a bit so it's clear what's happening. Further
the Ux500 variant does not like if we use the BYPASS bit,
instead we are supposed to set the clock divider to zero.

Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/mmc/host/mmci.c