sunxi: add support for kernel 4.9
[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 --- a/common/spl/spl.c
18 +++ b/common/spl/spl.c
19 @@ -210,9 +210,9 @@ struct boot_device_name boot_name_table[
20 { BOOT_DEVICE_RAM, "RAM" },
21 #endif
22 #ifdef CONFIG_SPL_MMC_SUPPORT
23 - { BOOT_DEVICE_MMC1, "MMC" },
24 - { BOOT_DEVICE_MMC2, "MMC" },
25 - { BOOT_DEVICE_MMC2_2, "MMC" },
26 + { BOOT_DEVICE_MMC1, "MMC1" },
27 + { BOOT_DEVICE_MMC2, "MMC2" },
28 + { BOOT_DEVICE_MMC2_2, "MMC2_2" },
29 #endif
30 #ifdef CONFIG_SPL_NAND_SUPPORT
31 { BOOT_DEVICE_NAND, "NAND" },