diff mbox

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

Message ID 1470797423-13194-1-git-send-email-jacob2.chen@rock-chips.com
State Changes Requested
Delegated to: Simon Glass
Headers show

Commit Message

Jacob Chen Aug. 10, 2016, 2:50 a.m. UTC
Add eMMC dt node and define fallback boot devices.

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

 arch/arm/dts/rk3288-firefly.dts               | 4 ++++
 board/firefly/firefly-rk3288/firefly-rk3288.c | 8 ++++++++
 2 files changed, 12 insertions(+)
diff mbox

Patch

diff --git a/arch/arm/dts/rk3288-firefly.dts b/arch/arm/dts/rk3288-firefly.dts
index 3176d50..b54359e 100644
--- a/arch/arm/dts/rk3288-firefly.dts
+++ b/arch/arm/dts/rk3288-firefly.dts
@@ -67,6 +67,10 @@ 
 	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;
+}