]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: rockchip: the non-removable property must point to emmc
authorhuang lin <hl@rock-chips.com>
Fri, 8 Jan 2016 06:06:49 +0000 (14:06 +0800)
committerSimon Glass <sjg@chromium.org>
Fri, 15 Jan 2016 12:39:27 +0000 (05:39 -0700)
the non-removable property point to sdcard before, it is wrong,
it must point to emmc, correct it.

Signed-off-by: Lin Huang <hl@rock-chips.com>
Acked-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
drivers/mmc/rockchip_dw_mmc.c

index aeaec6c86588ce3ac7e86e21daef708f74c0775c..9b4268ecdd913a640c42d164f72ec2a345aaaac8 100644 (file)
@@ -52,6 +52,8 @@ static int rockchip_dwmmc_ofdata_to_platdata(struct udevice *dev)
 
        /* use non-removeable as sdcard and emmc as judgement */
        if (fdtdec_get_bool(gd->fdt_blob, dev->of_offset, "non-removable"))
+               host->dev_index = 0;
+       else
                host->dev_index = 1;
 
        return 0;