From: Kuninori Morimoto Date: Thu, 14 May 2015 07:22:46 +0000 (+0000) Subject: mmc: sh_mmcif: calculate best clock with parent clock X-Git-Tag: omap-for-v4.3/legacy-v2-signed~190^2~36 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89d49a706ca417c55c046d2580403be578cadaab;p=pandora-kernel.git 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 Tested-by: Keita Kobayashi Signed-off-by: Ulf Hansson [Ulf: Silence compiler warning] --- Reading git-diff-tree failed