1
0
mirror of https://github.com/samueldr/wip-pinebook-pro.git synced 2024-06-02 02:53:35 +02:00
wip-pinebook-pro/u-boot/0003-rockchip-move-mmc1-before-mmc0-in-default-boot-order.patch
Samuel Dionne-Riel f943940fd1 u-boot: whatever -> v2020.07-rc4
+ forward port the patches
 + add new patchset from peter robinson

See:

 - https://github.com/samueldr/u-boot/tree/device/pinebook-pro
2020-06-21 20:15:12 -04:00

30 lines
942 B
Diff

From dd52b971005271d615e63f4f946a0ee9331925bc Mon Sep 17 00:00:00 2001
From: dhivael <dhivael.git@eno.space>
Date: Sat, 11 Jan 2020 15:04:04 +0100
Subject: [PATCH 3/5] rockchip: move mmc1 before mmc0 in default boot order
on pinebooks mmc1 is the external card, which should take boot priority
over the internal emmc even if the emmc is bootable.
---
include/configs/rockchip-common.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/configs/rockchip-common.h b/include/configs/rockchip-common.h
index 0b9e24d1db4..6610f95b7b9 100644
--- a/include/configs/rockchip-common.h
+++ b/include/configs/rockchip-common.h
@@ -17,8 +17,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
--
2.25.3