u-boot-brain/arch/arm
Rajeshwari S Shinde d3e016cc28 MMC: DWMMC: Correct the CLKDIV register value
This patch corrects the divider value written to CLKDIV register.
Since SDCLKIN is divided inside controller by the DIVRATIO value set
in the CLKSEL register, we need to use the same output clock value to
calculate the CLKDIV value.
as per user manual: cclk_in = SDCLKIN / (DIVRATIO + 1)

Input parameter to mmc_clk is changed to dwmci_host, since
we need the same to read DWMCI_CLKSEL register.

This improves the read timing values for channel 0 on SMDK5250
from 0.288sec to 0.144sec

Signed-off-by: Rajeshwari S Shinde <rajeshwari.s@samsung.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com>
2014-02-07 17:42:26 +02:00
..
cpu ARM: merge commonly-defined PLATFORM_RELFLAGS 2014-01-24 16:59:08 -05:00
dts dts: zynq: Add basic fdt support 2014-01-10 15:18:33 +01:00
imx-common MX6: fix sata compilation for i.MX6 2013-12-19 11:04:33 +01:00
include/asm MMC: DWMMC: Correct the CLKDIV register value 2014-02-07 17:42:26 +02:00
lib arm: use canonical sub mnemonic 2014-01-14 12:38:47 +01:00
config.mk ARM: merge commonly-defined PLATFORM_RELFLAGS 2014-01-24 16:59:08 -05:00