package: uboot-sunxi: various changes - bump to 2016.03 - add bugfixes related to...
[openwrt/openwrt.git] / package / boot / uboot-sunxi / patches / 016-spl-print-mmc-slot.patch
1 From 8f10b5c65611e6c15a113bf63289b6696452f90d Mon Sep 17 00:00:00 2001
2 From: Hans de Goede <hdegoede@redhat.com>
3 Date: Sun, 20 Mar 2016 14:17:10 +0100
4 Subject: [PATCH] spl: Print from which mmc slot spl is trying to boot
5
6 On some sunxi boards (and presumably also non sunxi boards) u-boot can
7 be either loaded from a sdcard in a micro-sd slot, or from eMMC.
8
9 Print which MMC spl tries to boot from, to help debugging.
10
11 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 Reviewed-by: Tom Rini <trini@konsulko.com>
13 ---
14 common/spl/spl.c | 6 +++---
15 1 file changed, 3 insertions(+), 3 deletions(-)
16
17 diff --git a/common/spl/spl.c b/common/spl/spl.c
18 index e5167bf..82e7f58 100644
19 --- a/common/spl/spl.c
20 +++ b/common/spl/spl.c
21 @@ -210,9 +210,9 @@ struct boot_device_name boot_name_table[] = {
22 { BOOT_DEVICE_RAM, "RAM" },
23 #endif
24 #ifdef CONFIG_SPL_MMC_SUPPORT
25 - { BOOT_DEVICE_MMC1, "MMC" },
26 - { BOOT_DEVICE_MMC2, "MMC" },
27 - { BOOT_DEVICE_MMC2_2, "MMC" },
28 + { BOOT_DEVICE_MMC1, "MMC1" },
29 + { BOOT_DEVICE_MMC2, "MMC2" },
30 + { BOOT_DEVICE_MMC2_2, "MMC2_2" },
31 #endif
32 #ifdef CONFIG_SPL_NAND_SUPPORT
33 { BOOT_DEVICE_NAND, "NAND" },