diff options
author | Peng Fan <Peng.Fan@freescale.com> | 2015-03-14 17:21:24 +0800 |
---|---|---|
committer | Peng Fan <Peng.Fan@freescale.com> | 2015-04-29 14:52:33 +0800 |
commit | 532d5e69a1642bd8d1c1f928d3a35b414bbce81b (patch) | |
tree | 2eed368a791e133d0a7d94b9e01b7f2e850e0e52 /arch/arm | |
parent | 77ca54d246cf90af88afe4eb93e63823b1de1e4a (diff) | |
download | u-boot-imx-532d5e69a1642bd8d1c1f928d3a35b414bbce81b.zip u-boot-imx-532d5e69a1642bd8d1c1f928d3a35b414bbce81b.tar.gz u-boot-imx-532d5e69a1642bd8d1c1f928d3a35b414bbce81b.tar.bz2 |
MLK-10774-7 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>
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/include/asm/arch-mx6/imx-regs.h | 7 |
1 files changed, 7 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 f572c7b..20273e4 100644 --- a/arch/arm/include/asm/arch-mx6/imx-regs.h +++ b/arch/arm/include/asm/arch-mx6/imx-regs.h @@ -1154,4 +1154,11 @@ extern void vadc_power_down(void); #endif #endif /* __ASSEMBLER__*/ + +/* + * 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 /* __ASM_ARCH_MX6_IMX_REGS_H__ */ |