imx: iMX6: Define disconnect_from_pc function

Copied from arch/arm/include/asm/arch-mx7ulp/imx-regs.h

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
This commit is contained in:
Fabio Berton 2020-06-22 10:14:12 -03:00 committed by Otavio Salvador
parent 560a81e9cb
commit 2d107f6d15
1 changed files with 1 additions and 0 deletions

View File

@ -967,6 +967,7 @@ struct pwm_regs {
* 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 disconnect_from_pc(void) writel(0x0, USB_PHY0_BASE_ADDR + 0x140)
#endif /* __ASSEMBLY__ */
#endif /* __ASM_ARCH_MX6_IMX_REGS_H__ */