diff options
author | Ye Li <ye.li@nxp.com> | 2018-05-15 02:03:19 -0700 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2018-05-23 04:15:57 -0700 |
commit | 55dd2c8e17eca27b3d393be9fd84a153ce7bf37b (patch) | |
tree | 0b3b39b4092ee398851896e3435f14d32f4953c6 /arch/arm/include | |
parent | 8116f34387f8164dd72656fb8278e6df9fdf4c05 (diff) |
MLK-18316 imx8: Fix USBOTG disconnect when XRDC blocking is enabled
We clean USBOTG register USBCMD if it is used in serial download mode.
When XRDC blocking is enabled, we can't write this register directly,
must enable the OTG power, otherwise the kernel will get SError
exception in mfgtool.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit cf2143dc97b2a8f21b828c7386c59ee965d981f2)
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/arch-imx8/imx-regs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/arch-imx8/imx-regs.h b/arch/arm/include/asm/arch-imx8/imx-regs.h index d951ae5407..8ddc1a6010 100644 --- a/arch/arm/include/asm/arch-imx8/imx-regs.h +++ b/arch/arm/include/asm/arch-imx8/imx-regs.h @@ -63,8 +63,8 @@ #include <stdbool.h> bool is_usb_boot(void); +void disconnect_from_pc(void); #define is_boot_from_usb is_usb_boot -#define disconnect_from_pc(void) writel(0x0, USB_BASE_ADDR + 0x140) struct usbphy_regs { u32 usbphy_pwd; /* 0x000 */ |