瀏覽代碼

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>
huang lin 9 年之前
父節點
當前提交
6579385b46
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/mmc/rockchip_dw_mmc.c

+ 2 - 0
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 */
 	/* use non-removeable as sdcard and emmc as judgement */
 	if (fdtdec_get_bool(gd->fdt_blob, dev->of_offset, "non-removable"))
 	if (fdtdec_get_bool(gd->fdt_blob, dev->of_offset, "non-removable"))
+		host->dev_index = 0;
+	else
 		host->dev_index = 1;
 		host->dev_index = 1;
 
 
 	return 0;
 	return 0;