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

123456789101112131415161718192021222324252627282930313233
  1. From 8f10b5c65611e6c15a113bf63289b6696452f90d Mon Sep 17 00:00:00 2001
  2. From: Hans de Goede <[email protected]>
  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 <[email protected]>
  9. Reviewed-by: Tom Rini <[email protected]>
  10. ---
  11. common/spl/spl.c | 6 +++---
  12. 1 file changed, 3 insertions(+), 3 deletions(-)
  13. diff --git a/common/spl/spl.c b/common/spl/spl.c
  14. index e5167bf..82e7f58 100644
  15. --- a/common/spl/spl.c
  16. +++ b/common/spl/spl.c
  17. @@ -210,9 +210,9 @@ struct boot_device_name boot_name_table[] = {
  18. { BOOT_DEVICE_RAM, "RAM" },
  19. #endif
  20. #ifdef CONFIG_SPL_MMC_SUPPORT
  21. - { BOOT_DEVICE_MMC1, "MMC" },
  22. - { BOOT_DEVICE_MMC2, "MMC" },
  23. - { BOOT_DEVICE_MMC2_2, "MMC" },
  24. + { BOOT_DEVICE_MMC1, "MMC1" },
  25. + { BOOT_DEVICE_MMC2, "MMC2" },
  26. + { BOOT_DEVICE_MMC2_2, "MMC2_2" },
  27. #endif
  28. #ifdef CONFIG_SPL_NAND_SUPPORT
  29. { BOOT_DEVICE_NAND, "NAND" },