diff options
author | Nitin Garg <nitin.garg@freescale.com> | 2014-05-27 13:38:22 -0500 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2014-05-27 22:18:37 -0500 |
commit | 1309b1ed78b3156310cc1564d669e8e2b1c0ce5f (patch) | |
tree | 7840b98fd5b31a0cee5aaab87982921b722c07ed /arch/arm/include/asm | |
parent | b8ab9b3eabb94bbbc1eea63e7c0e2a87d2d645f4 (diff) | |
download | u-boot-imx-1309b1ed78b3156310cc1564d669e8e2b1c0ce5f.zip u-boot-imx-1309b1ed78b3156310cc1564d669e8e2b1c0ce5f.tar.gz u-boot-imx-1309b1ed78b3156310cc1564d669e8e2b1c0ce5f.tar.bz2 |
ENGR00315499-8 Auto check if boot from usb
If boot from usb, reset environment to default value.
Auto apply mfgtools setting and boot mfgtools kernel.
Signed-off-by: Frank Li <Frank.li@freescale.com>
Signed-off-by: Nitin Garg <nitin.garg@freescale.com>
Diffstat (limited to 'arch/arm/include/asm')
-rw-r--r-- | arch/arm/include/asm/arch-mx6/imx-regs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-mx6/imx-regs.h b/arch/arm/include/asm/arch-mx6/imx-regs.h index 8124ce2..dd91a81 100644 --- a/arch/arm/include/asm/arch-mx6/imx-regs.h +++ b/arch/arm/include/asm/arch-mx6/imx-regs.h @@ -691,5 +691,10 @@ struct wdog_regs { extern void check_cpu_temperature(void); +/* If ROM fail back to USB recover mode, USBPH0_PWD will be clear to use USB + * If boot from the other mode, USB0_PWD will keep reset value + */ +#define is_boot_from_usb(void) (!(readl(USB_PHY0_BASE_ADDR) & (1<<20))) + #endif /* __ASSEMBLER__*/ #endif /* __ASM_ARCH_MX6_IMX_REGS_H__ */ |