1
0
Fork 0

MLK-19183-5 iMX8QXP SPL: arm: mach-imx: Add SPL support to iMX8

This will allow iMX8QX to have SPL support and later on the iMX8QM too.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
zero-sugar
Abel Vesa 2018-08-02 19:18:20 +03:00 committed by Teo Hall
parent 136a66a731
commit 562fe0c869
2 changed files with 8 additions and 4 deletions

View File

@ -65,6 +65,7 @@ config TARGET_IMX8QXP_DDR3_ARM2
config TARGET_IMX8QXP_MEK
bool "Support i.MX8QXP MEK board"
select BOARD_LATE_INIT
select SUPPORT_SPL
select IMX8QXP
endchoice

View File

@ -97,7 +97,7 @@ u32 spl_boot_device(void)
return BOOT_DEVICE_NONE;
}
#elif defined(CONFIG_MX7) || defined(CONFIG_IMX8M)
#elif defined(CONFIG_MX7) || defined(CONFIG_IMX8M) || defined(CONFIG_IMX8)
/* Translate iMX7/iMX8M boot device to the SPL boot device enumeration */
u32 spl_boot_device(void)
{
@ -112,6 +112,9 @@ u32 spl_boot_device(void)
case SD3_BOOT:
case MMC3_BOOT:
return BOOT_DEVICE_MMC1;
#elif defined(CONFIG_IMX8)
case SD2_BOOT:
return BOOT_DEVICE_MMC2_2;
#elif defined(CONFIG_IMX8M)
case SD1_BOOT:
case MMC1_BOOT:
@ -141,7 +144,7 @@ u32 spl_boot_device(void)
return BOOT_DEVICE_NONE;
}
}
#endif /* CONFIG_MX6 || CONFIG_MX7 || CONFIG_IMX8M */
#endif /* CONFIG_MX6 || CONFIG_MX7 || CONFIG_IMX8M || CONFIG_IMX8 */
#ifdef CONFIG_SPL_USB_GADGET_SUPPORT
int g_dnl_bind_fixup(struct usb_device_descriptor *dev, const char *name)
@ -156,7 +159,7 @@ int g_dnl_bind_fixup(struct usb_device_descriptor *dev, const char *name)
/* called from spl_mmc to see type of boot mode for storage (RAW or FAT) */
u32 spl_boot_mode(const u32 boot_device)
{
#if defined(CONFIG_MX7) || defined(CONFIG_IMX8M)
#if defined(CONFIG_MX7) || defined(CONFIG_IMX8M) || defined(CONFIG_IMX8)
switch (get_boot_device()) {
/* for MMC return either RAW or FAT mode */
case SD1_BOOT:
@ -184,7 +187,7 @@ u32 spl_boot_mode(const u32 boot_device)
hang();
}
#else /* defined(CONFIG_MX7) || defined(CONFIG_IMX8M) */
#else /* defined(CONFIG_MX7) || defined(CONFIG_IMX8M) || defined(CONFIG_IMX8) */
switch (spl_boot_device()) {
/* for MMC return either RAW or FAT mode */
case BOOT_DEVICE_MMC1: