miqi fix boot u-boot 2018

This commit is contained in:
Thomas McKahan 2018-08-30 01:35:05 -04:00
parent 64e7dfd923
commit 0850668476
2 changed files with 16 additions and 15 deletions

View File

@ -1,15 +0,0 @@
diff --git a/include/configs/rockchip-common.h b/include/configs/rockchip-common.h
index 35d948a..0710f02
--- a/include/configs/rockchip-common.h
+++ b/include/configs/rockchip-common.h
@@ -14,8 +14,8 @@
/* First try to boot from SD (index 0), then eMMC (index 1) */
#if CONFIG_IS_ENABLED(CMD_MMC)
#define BOOT_TARGET_MMC(func) \
- func(MMC, mmc, 0) \
- func(MMC, mmc, 1)
+ func(MMC, mmc, 1) \
+ func(MMC, mmc, 0)
#else
#define BOOT_TARGET_MMC(func)
#endif

View File

@ -0,0 +1,16 @@
diff --git a/arch/arm/dts/rk3288-miqi.dts b/arch/arm/dts/rk3288-miqi.dts
index 29e60dd1..47429966 100644
--- a/arch/arm/dts/rk3288-miqi.dts
+++ b/arch/arm/dts/rk3288-miqi.dts
@@ -10,6 +10,11 @@
model = "mqmaker MiQi";
compatible = "mqmaker,miqi", "rockchip,rk3288";
+ aliases {
+ mmc0 = &sdmmc;
+ mmc1 = &emmc;
+ };
+
chosen {
stdout-path = "serial2:115200n8";
};