summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2015-07-14 14:36:23 +0800
committerMax Krummenacher <max.krummenacher@toradex.com>2016-02-17 10:53:59 +0100
commitc9286d32f9740e607a3cbc5d0568aa71ee96c8a8 (patch)
tree4eda7fcaa0f2638c58d18a845362f84f8017a35f
parentf498b5896310ef5c759c646161fe1399d535da83 (diff)
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.h3
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 9061773c26..9f800ae8c7 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