summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Marinho <jose.marinho@arm.com>2021-07-21 10:44:33 +0100
committerJose Marinho <jose.marinho@arm.com>2021-08-09 11:42:19 +0100
commitfd63eedd7b229729455f95032b98b22eea18c6d2 (patch)
tree52295c8d430f1fa7b8039f99466865419c191364
parent3b6a5fd60bafbb80d9955ca4ae31d87a036fe747 (diff)
[PROTO] set MMC as main boot device for imx8mm
-rw-r--r--arch/arm/mach-imx/spl.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/spl.c b/arch/arm/mach-imx/spl.c
index 36033d611c..8c1686749d 100644
--- a/arch/arm/mach-imx/spl.c
+++ b/arch/arm/mach-imx/spl.c
@@ -111,8 +111,35 @@ u32 spl_boot_device(void)
return BOOT_DEVICE_NONE;
}
+/**
+ * Returns the offset in flash where the FIT resides.
+ * XXX: the prototype assumes the FIT is placed at the offset 0.
+ */
+unsigned long spl_nor_get_uboot_base(void)
+{
+ return 0;
+}
+
#elif defined(CONFIG_MX7) || defined(CONFIG_IMX8M) || defined(CONFIG_IMX8)
/* Translate iMX7/i.MX8M boot device to the SPL boot device enumeration */
+
+#if defined(CONFIG_IMX8M)
+
+
+
+void board_boot_order(u32 *spl_boot_list)
+{
+ /*
+ * XXX For prototype, the imx8mm platform will load BL2 from the SD card.
+ * BL2 is then responsible for loading the remaining FW blobs.
+ */
+ spl_boot_list[0] = BOOT_DEVICE_MMC1;
+
+ printf("imx8mm boot order: mmc1 ---\n");
+
+}
+#endif
+
u32 spl_boot_device(void)
{
#if defined(CONFIG_MX7)