]> git.sur5r.net Git - u-boot/commitdiff
rockchip: mmc: Update the driver to use the new clock ID
authorSimon Glass <sjg@chromium.org>
Fri, 22 Jan 2016 02:43:45 +0000 (19:43 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 22 Jan 2016 03:42:34 +0000 (20:42 -0700)
We can use the new clk_get_by_index() function to get the correct clock.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/clk/clk_rk3288.c

index fdc5347d0a71752cf9529ba8af9e1ce255eabada..d294788f9ceed83ecdef7c76f868b81409b2366a 100644 (file)
@@ -541,8 +541,8 @@ static ulong rk3288_get_periph_rate(struct udevice *dev, int periph)
        gclk_rate = clk_get_rate(gclk);
        switch (periph) {
        case HCLK_EMMC:
+       case HCLK_SDMMC:
        case HCLK_SDIO0:
-       case HCLK_SDIO1:
                new_rate = rockchip_mmc_get_clk(priv->cru, gclk_rate, periph);
                break;
        case SCLK_SPI0: