mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-18 16:38:39 -04:00
ehci-mx5: Fix OPM usage
MXC_OTG_UCTRL_OPM_BIT disables (masks) the power/oc pins if set, like MXC_H1_UCTRL_H1PM_BIT and MXC_H2_UCTRL_H2PM_BIT, not the opposite. Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com> Cc: Marek Vasut <marex@denx.de> Cc: Stefano Babic <sbabic@denx.de>
This commit is contained in:
parent
7d42432d38
commit
394c00dcfc
@ -161,9 +161,9 @@ int mxc_set_usbcontrol(int port, unsigned int flags)
|
|||||||
|
|
||||||
v = __raw_readl(usbother_base + MXC_USBCTRL_OFFSET);
|
v = __raw_readl(usbother_base + MXC_USBCTRL_OFFSET);
|
||||||
if (flags & MXC_EHCI_POWER_PINS_ENABLED)
|
if (flags & MXC_EHCI_POWER_PINS_ENABLED)
|
||||||
v |= MXC_OTG_UCTRL_OPM_BIT;
|
|
||||||
else
|
|
||||||
v &= ~MXC_OTG_UCTRL_OPM_BIT;
|
v &= ~MXC_OTG_UCTRL_OPM_BIT;
|
||||||
|
else
|
||||||
|
v |= MXC_OTG_UCTRL_OPM_BIT;
|
||||||
__raw_writel(v, usbother_base + MXC_USBCTRL_OFFSET);
|
__raw_writel(v, usbother_base + MXC_USBCTRL_OFFSET);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user