diff options
author | Peter Chen <peter.chen@freescale.com> | 2015-07-14 14:36:23 +0800 |
---|---|---|
committer | Ye.Li <B37916@freescale.com> | 2015-07-22 15:15:22 +0800 |
commit | 03882557d84f09c8f7ab0eeb6810eb65b58b6fe5 (patch) | |
tree | f5669eb4482d83986e68fb95672e9cfb3c077f6b | |
parent | 4cdfd5b1730e22a6ae1dd2c7ec48e25870bd5120 (diff) | |
download | u-boot-imx-03882557d84f09c8f7ab0eeb6810eb65b58b6fe5.zip u-boot-imx-03882557d84f09c8f7ab0eeb6810eb65b58b6fe5.tar.gz u-boot-imx-03882557d84f09c8f7ab0eeb6810eb65b58b6fe5.tar.bz2 |
MLK-10932-2 ARM: imx7: imx-regs: add disconnect_from_pc API
Add disconnect_from_pc API which is used to disconnect the connection
with PC which is established at rom code.
Tested-by: Spring Zhang <b17931@freescale.com>
Tested-by: Zhang Sanshan <b51434@freescale.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
-rw-r--r-- | arch/arm/include/asm/arch-mx7/imx-regs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/include/asm/arch-mx7/imx-regs.h b/arch/arm/include/asm/arch-mx7/imx-regs.h index 9061773..9f800ae 100644 --- a/arch/arm/include/asm/arch-mx7/imx-regs.h +++ b/arch/arm/include/asm/arch-mx7/imx-regs.h @@ -1275,8 +1275,9 @@ extern void pcie_power_off(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(USBOTG1_IPS_BASE_ADDR + 0x158) || \ +#define is_boot_from_usb(void) (readl(USBOTG1_IPS_BASE_ADDR + 0x158) || \ readl(USBOTG2_IPS_BASE_ADDR + 0x158)) +#define disconnect_from_pc(void) writel(0x0, USBOTG1_IPS_BASE_ADDR + 0x140) /* Boot device type */ #define BOOT_TYPE_SD 0x1 |