rockchip: mmc: Update the driver to use the new clock ID
We can use the new clk_get_by_index() function to get the correct clock. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
6d97786b4c
commit
342999f9b3
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user