summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/dw_mmc.c
diff options
context:
space:
mode:
authorDouglas Anderson2016-06-20 19:56:53 +0200
committerUlf Hansson2016-07-25 10:34:20 +0200
commit52c0624a10cce0cdc8be2d15462b9c8d76b7700d (patch)
tree8ed54283ef28d43540b2ed3eff82e9f360ab849f /drivers/mmc/host/dw_mmc.c
parentphy: rockchip-emmc: Minor code cleanup in rockchip_emmc_phy_power_on/off() (diff)
downloadkernel-qcow2-linux-52c0624a10cce0cdc8be2d15462b9c8d76b7700d.tar.gz
kernel-qcow2-linux-52c0624a10cce0cdc8be2d15462b9c8d76b7700d.tar.xz
kernel-qcow2-linux-52c0624a10cce0cdc8be2d15462b9c8d76b7700d.zip
phy: rockchip-emmc: Set phyctrl_frqsel based on card clock
The "phyctrl_frqsel" is described in the Arasan datasheet [1] as "the frequency range of DLL operation". Although the Rockchip variant of this PHY has different ranges than the reference Arasan PHY it appears as if the functionality is similar. We should set this phyctrl field properly. Note: as per Rockchip engineers, apparently the "phyctrl_frqsel" is actually only useful in HS200 / HS400 modes even though the DLL itself it used for some purposes in all modes. See the discussion in the earlier change in this series: ("mmc: sdhci-of-arasan: Always power the PHY off/on when clock changes"). In any case, it shouldn't hurt to set this always. Note that this change should allow boards to run at HS200 / HS400 speed modes while running at 100 MHz or 150 MHz. In fact, running HS400 at 150 MHz (giving 300 MB/s) is the main motivation of this series, since performance is still good but signal integrity problems are less prevelant at 150 MHz. [1]: https://arasan.com/wp-content/media/eMMC-5-1-Total-Solution_Rev-1-3.pdf Signed-off-by: Douglas Anderson <dianders@chromium.org> Acked-by: Kishon Vijay Abraham I <kishon@ti.com> Reviewed-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/dw_mmc.c')
0 files changed, 0 insertions, 0 deletions