]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: sdhci: Fix maximum clock for programmable clock mode
authorWenyou Yang <wenyou.yang@atmel.com>
Wed, 26 Apr 2017 01:32:30 +0000 (09:32 +0800)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 15 May 2017 09:28:22 +0000 (18:28 +0900)
commit0fae68f08d7eb2a8b48dce333159a7ee37f9aae3
tree887c79cae29ea018dadb7373b872cb3a037baab0
parent8ed628e2308d8e5654f3e8f0491f83fece76cc52
mmc: sdhci: Fix maximum clock for programmable clock mode

In the programmable clock mode, the SDCLK frequency is incorrectly
assigned when the maximum clock has been assigned during probe,
this causes the SDHCI not work well.

In the programmable clock mode, when calculating the SDCLK Frequency
Select, when the maximum clock has been assigned, it is the actual
value, should not be multiplied by host->clk_mul. Otherwise, the
maximum clock is multiplied host->clk_mul by the base clock achieved
from the BASECLKF field of the Capabilities 0 Register.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
drivers/mmc/sdhci.c