From: Kever Yang Date: Wed, 14 Jun 2017 08:31:46 +0000 (+0800) Subject: rockchip: dwmmc: use max-frequency when OF_PLATDATA enabled X-Git-Tag: v2017.09-rc1~215^2~25 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8093529809650621ba74ebfc9e317d7ba87489b6;p=u-boot rockchip: dwmmc: use max-frequency when OF_PLATDATA enabled Since the 'clock-freq-min-max' is deprecated, we use max-frequency for all rockchip SoC dwmmc controller. Signed-off-by: Kever Yang Reviewed-by: Simon Glass Reviewed-by: Philipp Tomsich --- diff --git a/drivers/mmc/rockchip_dw_mmc.c b/drivers/mmc/rockchip_dw_mmc.c index 24754b7b12..d5b05b0b58 100644 --- a/drivers/mmc/rockchip_dw_mmc.c +++ b/drivers/mmc/rockchip_dw_mmc.c @@ -115,7 +115,8 @@ static int rockchip_dwmmc_probe(struct udevice *dev) host->dev_index = 0; priv->fifo_depth = dtplat->fifo_depth; priv->fifo_mode = 0; - memcpy(priv->minmax, dtplat->clock_freq_min_max, sizeof(priv->minmax)); + priv->minmax[0] = 400000; /* 400 kHz */ + priv->minmax[1] = dtplat->max_frequency; ret = clk_get_by_index_platdata(dev, 0, dtplat->clocks, &priv->clk); if (ret < 0)