Re: [U-Boot] [PATCH 1/5] mmc: dw_mmc: rockchip: select proper card clock
On 16 April 2017 at 13:34, Simon Glasswrote: > On 16 April 2017 at 03:44, Ziyuan Xu wrote: >> As you know, biu_clk is used for AMBA AHB/APB interface, ciu_clk is >> used for communication between host and card devices. The real bus clock >> is ciu, so let's rectify it. >> >> Signed-off-by: Ziyuan Xu >> --- >> >> drivers/mmc/rockchip_dw_mmc.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) > > Acked-by: Simon Glass Applied to u-boot-rockchip/next, thanks! ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] [PATCH 1/5] mmc: dw_mmc: rockchip: select proper card clock
On 16 April 2017 at 03:44, Ziyuan Xuwrote: > As you know, biu_clk is used for AMBA AHB/APB interface, ciu_clk is > used for communication between host and card devices. The real bus clock > is ciu, so let's rectify it. > > Signed-off-by: Ziyuan Xu > --- > > drivers/mmc/rockchip_dw_mmc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Acked-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
[U-Boot] [PATCH 1/5] mmc: dw_mmc: rockchip: select proper card clock
As you know, biu_clk is used for AMBA AHB/APB interface, ciu_clk is used for communication between host and card devices. The real bus clock is ciu, so let's rectify it. Signed-off-by: Ziyuan Xu--- drivers/mmc/rockchip_dw_mmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/rockchip_dw_mmc.c b/drivers/mmc/rockchip_dw_mmc.c index c36eda0..b0e52b0 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(>clk, freq); if (ret < 0) { - debug("%s: err=%d\n", __func__, ret); + printf("%s: err=%d\n", __func__, ret); return ret; } @@ -109,7 +109,7 @@ static int rockchip_dwmmc_probe(struct udevice *dev) if (ret < 0) return ret; #else - ret = clk_get_by_index(dev, 0, >clk); + ret = clk_get_by_name(dev, "ciu", >clk); if (ret < 0) return ret; #endif -- 2.7.4 ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot