diff options
author | huang lin <hl@rock-chips.com> | 2016-01-08 14:06:49 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-01-15 05:39:27 -0700 |
commit | 6579385b468b642596d18fc0716681b76e1d0799 (patch) | |
tree | ca0a938fb54767d97126d74b8343457400e0445f | |
parent | c3caeac0116394f70620a15e59fb8b51211c9d9c (diff) | |
download | u-boot-imx-6579385b468b642596d18fc0716681b76e1d0799.zip u-boot-imx-6579385b468b642596d18fc0716681b76e1d0799.tar.gz u-boot-imx-6579385b468b642596d18fc0716681b76e1d0799.tar.bz2 |
mmc: rockchip: the non-removable property must point to emmc
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>
-rw-r--r-- | drivers/mmc/rockchip_dw_mmc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/rockchip_dw_mmc.c b/drivers/mmc/rockchip_dw_mmc.c index aeaec6c..9b4268e 100644 --- a/drivers/mmc/rockchip_dw_mmc.c +++ b/drivers/mmc/rockchip_dw_mmc.c @@ -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; |