diff options
author | Peter Chen <peter.chen@freescale.com> | 2015-07-14 14:34:38 +0800 |
---|---|---|
committer | Ye.Li <B37916@freescale.com> | 2015-07-22 15:15:22 +0800 |
commit | 4cdfd5b1730e22a6ae1dd2c7ec48e25870bd5120 (patch) | |
tree | 799d79a4b02e7167b60018d6847482e96003cb00 | |
parent | 9f256d2a0d732757bc80808abd0884d080e1c842 (diff) | |
download | u-boot-imx-4cdfd5b1730e22a6ae1dd2c7ec48e25870bd5120.zip u-boot-imx-4cdfd5b1730e22a6ae1dd2c7ec48e25870bd5120.tar.gz u-boot-imx-4cdfd5b1730e22a6ae1dd2c7ec48e25870bd5120.tar.bz2 |
MLK-10932-1 ARM: imx6: 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.
Signed-off-by: Peter Chen <peter.chen@freescale.com>
-rw-r--r-- | arch/arm/include/asm/arch-mx6/imx-regs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/include/asm/arch-mx6/imx-regs.h b/arch/arm/include/asm/arch-mx6/imx-regs.h index 230544b..9fbe3e4 100644 --- a/arch/arm/include/asm/arch-mx6/imx-regs.h +++ b/arch/arm/include/asm/arch-mx6/imx-regs.h @@ -1274,7 +1274,8 @@ 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(USB_PHY0_BASE_ADDR) & (1<<20))) +#define is_boot_from_usb(void) (!(readl(USB_PHY0_BASE_ADDR) & (1<<20))) +#define disconnect_from_pc(void) writel(0x0, OTG_BASE_ADDR + 0x140) #endif /* __ASSEMBLER__*/ #endif /* __ASM_ARCH_MX6_IMX_REGS_H__ */ |