summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx/mx7ulp
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2019-05-17 02:42:33 -0700
committerYe Li <ye.li@nxp.com>2022-04-06 15:58:49 +0800
commitfed7fbbaea13d95cf28625947e8d654660225bb0 (patch)
tree4b304334b5c466423c412488c3d6aa7fb0179ba5 /arch/arm/mach-imx/mx7ulp
parentdadec279665d8ee639af37e77b03b9821224a209 (diff)
MLK-20510-3 mx7ulp: Change is_boot_from_usb to use get_boot_device
The get_boot_device will return USB type from ROM info if booting from serial download, so change the is_boot_from_usb to use this function. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 306fca12fb21829be552a6262e310a90664a8cc2) (cherry picked from commit 4880a6a4c93fd7141d4cc1de5b987c8efdf2cc2a) (cherry picked from commit cc216825ff95cd2b7326b66aef2bb512f6d1824e) (cherry picked from commit b86b2ec0f76d9ccc99baa33aab958511b6b844e5)
Diffstat (limited to 'arch/arm/mach-imx/mx7ulp')
-rw-r--r--arch/arm/mach-imx/mx7ulp/soc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/mx7ulp/soc.c b/arch/arm/mach-imx/mx7ulp/soc.c
index b35410ee6e..2981edccc3 100644
--- a/arch/arm/mach-imx/mx7ulp/soc.c
+++ b/arch/arm/mach-imx/mx7ulp/soc.c
@@ -489,6 +489,11 @@ enum boot_device get_boot_device(void)
return boot_dev;
}
+bool is_usb_boot(void)
+{
+ return get_boot_device() == USB_BOOT;
+}
+
#if defined(CONFIG_SERIAL_TAG) || defined(CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG)
/*
* OCOTP_CFG (SJC CHALLENGE, Unique ID)