016-spl-print-mmc-slot.patch 1.0 KB

12345678910111213141516171819202122232425262728293031
  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. On some sunxi boards (and presumably also non sunxi boards) u-boot can
  6. be either loaded from a sdcard in a micro-sd slot, or from eMMC.
  7. Print which MMC spl tries to boot from, to help debugging.
  8. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
  9. Reviewed-by: Tom Rini <trini@konsulko.com>
  10. ---
  11. common/spl/spl.c | 6 +++---
  12. 1 file changed, 3 insertions(+), 3 deletions(-)
  13. --- a/common/spl/spl.c
  14. +++ b/common/spl/spl.c
  15. @@ -210,9 +210,9 @@ struct boot_device_name boot_name_table[
  16. { BOOT_DEVICE_RAM, "RAM" },
  17. #endif
  18. #ifdef CONFIG_SPL_MMC_SUPPORT
  19. - { BOOT_DEVICE_MMC1, "MMC" },
  20. - { BOOT_DEVICE_MMC2, "MMC" },
  21. - { BOOT_DEVICE_MMC2_2, "MMC" },
  22. + { BOOT_DEVICE_MMC1, "MMC1" },
  23. + { BOOT_DEVICE_MMC2, "MMC2" },
  24. + { BOOT_DEVICE_MMC2_2, "MMC2_2" },
  25. #endif
  26. #ifdef CONFIG_SPL_NAND_SUPPORT
  27. { BOOT_DEVICE_NAND, "NAND" },