[U-Boot] [PATCH] rockchip: rk3288-firefly: enable boot from eMMC

Jacob Chen jacob2.chen at rock-chips.com
Wed Aug 10 03:56:58 CEST 2016


Add eMMC dt node and define fallback boot devices.

Signed-off-by: Jacob Chen <jacob2.chen at rock-chips.com>
---

 arch/arm/dts/rk3288-firefly.dts               | 5 +++++
 board/firefly/firefly-rk3288/firefly-rk3288.c | 8 ++++++++
 2 files changed, 13 insertions(+)

diff --git a/arch/arm/dts/rk3288-firefly.dts b/arch/arm/dts/rk3288-firefly.dts
index 3176d50..27f348e 100644
--- a/arch/arm/dts/rk3288-firefly.dts
+++ b/arch/arm/dts/rk3288-firefly.dts
@@ -67,6 +67,11 @@
 	u-boot,dm-pre-reloc;
 };
 
+&emmc {
+	u-boot,dm-pre-reloc;
+};
+
+
 &gpio3 {
 	u-boot,dm-pre-reloc;
 };
diff --git a/board/firefly/firefly-rk3288/firefly-rk3288.c b/board/firefly/firefly-rk3288/firefly-rk3288.c
index 5119e95..3e89389 100644
--- a/board/firefly/firefly-rk3288/firefly-rk3288.c
+++ b/board/firefly/firefly-rk3288/firefly-rk3288.c
@@ -5,3 +5,11 @@
  */
 
 #include <common.h>
+#include <spl.h>
+
+void board_boot_order(u32 *spl_boot_list)
+{
+	/* eMMC prior to sdcard. */
+	spl_boot_list[0] = BOOT_DEVICE_MMC2;
+	spl_boot_list[1] = BOOT_DEVICE_MMC1;
+}
-- 
1.9.1



More information about the U-Boot mailing list