]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sh_mmcif: calculate best clock with parent clock
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 14 May 2015 07:22:46 +0000 (07:22 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 1 Jun 2015 07:07:10 +0000 (09:07 +0200)
commit91a8b30ae0ba501083977347f1a2976a3d319202
tree68cc0721a6767f91f8e9e700b2e140deefbdd324
parentc0c04a86c5fd5bc53adf19677ccc6325218a4703
mmc: sh_mmcif: calculate best clock with parent clock

MMCIF IP on R-Car series has parent clock which can be set several rate,
and it was not implemented on old SH-Mobile series (= SH-Mobile series
parent clock was fixed rate) R-Car series MMCIF can use more high speed
access if it setups parent clock. This patch adds parent clock setup
method. It will be used if DT has "max-frequency", and then, this driver
assumes it is booted on R-Car Gen2 or later SoC. Because SH-Mobile series
(which doesn't boot from DT) and R-Car series (which boots from DT) have
different divider.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Keita Kobayashi <keita.kobayashi.ym@renesas.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
[Ulf: Silence compiler warning]
Documentation/devicetree/bindings/mmc/renesas,mmcif.txt
drivers/mmc/host/sh_mmcif.c