Skip to content
Snippets Groups Projects
Commit 80ebf86d authored by Peng Fan's avatar Peng Fan Committed by Stefano Babic
Browse files

imx: cpu: support get_boot_device for i.MX8M


Enable get_boot_device for i.MX8M, it supports boot type USB.

Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: default avatarStefano Babic <sbabic@denx.de>
parent 770611f2
Branches
Tags
No related merge requests found
...@@ -410,7 +410,7 @@ u32 get_cpu_temp_grade(int *minc, int *maxc) ...@@ -410,7 +410,7 @@ u32 get_cpu_temp_grade(int *minc, int *maxc)
} }
#endif #endif
#if defined(CONFIG_MX7) #if defined(CONFIG_MX7) || defined(CONFIG_MX8M)
enum boot_device get_boot_device(void) enum boot_device get_boot_device(void)
{ {
struct bootrom_sw_info **p = struct bootrom_sw_info **p =
...@@ -439,6 +439,11 @@ enum boot_device get_boot_device(void) ...@@ -439,6 +439,11 @@ enum boot_device get_boot_device(void)
case BOOT_TYPE_SPINOR: case BOOT_TYPE_SPINOR:
boot_dev = SPI_NOR_BOOT; boot_dev = SPI_NOR_BOOT;
break; break;
#ifdef CONFIG_MX8M
case BOOT_TYPE_USB:
boot_dev = USB_BOOT;
break;
#endif
default: default:
break; break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment