mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-28 23:50:26 +09:00
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
be45b06cb5
commit
2ea9a49bda
@ -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
Block a user