diff options
author | Kever Yang <kever.yang@rock-chips.com> | 2017-06-14 16:31:49 +0800 |
---|---|---|
committer | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2017-07-11 12:13:47 +0200 |
commit | 419b08012a09f2656c44c81d976ffa41926f5e6b (patch) | |
tree | 1c437ad645681a86f872fd228e1a288ca27c41c8 /drivers/mmc/rockchip_dw_mmc.c | |
parent | d9379b1a8959ec5b595c316db17144ce741c1792 (diff) |
Revert "mmc: dw_mmc: rockchip: select proper card clock"
The origin patch get rockchip dwmmc by name 'ciu', which lead
to the SPL not able to remove 'clock-names' node in dts.
I'm not saying this is not correct, but I would prefer to handle
this in dts or clock driver to save memory for SPL.
For example the rk3288 SPL size has out of memory if not enable
BACK_TO_BROM option, there are many other SoCs has less internal
memory than rk3288.
This reverts commit 480a9b834c661fc88217f50bdf780192c3018d66.
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Diffstat (limited to 'drivers/mmc/rockchip_dw_mmc.c')
-rw-r--r-- | drivers/mmc/rockchip_dw_mmc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/rockchip_dw_mmc.c b/drivers/mmc/rockchip_dw_mmc.c index d5b05b0b58..e7fcf89f73 100644 --- a/drivers/mmc/rockchip_dw_mmc.c +++ b/drivers/mmc/rockchip_dw_mmc.c @@ -44,7 +44,7 @@ static uint rockchip_dwmmc_get_mmc_clk(struct dwmci_host *host, uint freq) ret = clk_set_rate(&priv->clk, freq); if (ret < 0) { - printf("%s: err=%d\n", __func__, ret); + debug("%s: err=%d\n", __func__, ret); return ret; } @@ -122,7 +122,7 @@ static int rockchip_dwmmc_probe(struct udevice *dev) if (ret < 0) return ret; #else - ret = clk_get_by_name(dev, "ciu", &priv->clk); + ret = clk_get_by_index(dev, 0, &priv->clk); if (ret < 0) return ret; #endif |