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:
parent
560a81e9cb
commit
2d107f6d15
|
@ -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__ */
|
||||
|
|
Loading…
Reference in New Issue