On 01/03/2018 03:58 PM, Eran Matityahu wrote:
Hi Uri.

Hello Eran,

On 01/03/2018 12:53 PM, Eran Matityahu wrote:

Use only one SPL MMC device, similarly to the iMX6 code


What is the reason for not using MMC2?

The reason is so that you won't have to initialize more than one MMC
device in SPL.
Also, to be consistent with the iMX6 SPL code.


A problematic scenario is a detection, by the boot ROM, of the SPL image at MMC2. If the U-Boot image is located at MMC2, the boot sequence will be terminated.



Signed-off-by: Eran Matityahu <era...@variscite.com>
---
   arch/arm/mach-imx/spl.c | 3 +--
   1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/arm/mach-imx/spl.c b/arch/arm/mach-imx/spl.c
index d0d1b73aa6..6b5bd8990c 100644
--- a/arch/arm/mach-imx/spl.c
+++ b/arch/arm/mach-imx/spl.c
@@ -106,10 +106,9 @@ u32 spl_boot_device(void)
         switch (boot_device_spl) {
         case SD1_BOOT:
         case MMC1_BOOT:
-               return BOOT_DEVICE_MMC1;
         case SD2_BOOT:

[...]
--
Regards,
Uri
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to