aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2018-01-10 13:20:35 +0800
committerStefano Babic <sbabic@denx.de>2018-02-04 12:00:58 +0100
commit80ebf86d9bfcce4145061d7d7e9c09e0510a4ed8 (patch)
treeaf4c68167571678b806c56f6dc8f8d62903306cf
parent770611f21e93b63f58e9b9f67a250024db9c86be (diff)
downloadu-boot-80ebf86d9bfcce4145061d7d7e9c09e0510a4ed8.zip
u-boot-80ebf86d9bfcce4145061d7d7e9c09e0510a4ed8.tar.gz
u-boot-80ebf86d9bfcce4145061d7d7e9c09e0510a4ed8.tar.bz2
imx: cpu: support get_boot_device for i.MX8M
Enable get_boot_device for i.MX8M, it supports boot type USB. Signed-off-by: Peng Fan <peng.fan@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Reviewed-by: Stefano Babic <sbabic@denx.de>
-rw-r--r--arch/arm/mach-imx/cpu.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c
index a7d89f2..4d4d434 100644
--- a/arch/arm/mach-imx/cpu.c
+++ b/arch/arm/mach-imx/cpu.c
@@ -410,7 +410,7 @@ u32 get_cpu_temp_grade(int *minc, int *maxc)
}
#endif
-#if defined(CONFIG_MX7)
+#if defined(CONFIG_MX7) || defined(CONFIG_MX8M)
enum boot_device get_boot_device(void)
{
struct bootrom_sw_info **p =
@@ -439,6 +439,11 @@ enum boot_device get_boot_device(void)
case BOOT_TYPE_SPINOR:
boot_dev = SPI_NOR_BOOT;
break;
+#ifdef CONFIG_MX8M
+ case BOOT_TYPE_USB:
+ boot_dev = USB_BOOT;
+ break;
+#endif
default:
break;
}