mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 12:39:22 -04:00
ehci-mx5: Fix OC_DIS usage
MXC_OTG_PHYCTRL_OC_DIS_BIT disables the oc pin if set, like MXC_H1_OC_DIS_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
bdc5202068
commit
7d42432d38
@ -151,11 +151,11 @@ int mxc_set_usbcontrol(int port, unsigned int flags)
|
|||||||
v = __raw_readl(usbother_base +
|
v = __raw_readl(usbother_base +
|
||||||
MXC_USB_PHY_CTR_FUNC_OFFSET);
|
MXC_USB_PHY_CTR_FUNC_OFFSET);
|
||||||
if (flags & MXC_EHCI_POWER_PINS_ENABLED)
|
if (flags & MXC_EHCI_POWER_PINS_ENABLED)
|
||||||
/* OC/USBPWR is not used */
|
|
||||||
v |= MXC_OTG_PHYCTRL_OC_DIS_BIT;
|
|
||||||
else
|
|
||||||
/* OC/USBPWR is used */
|
/* OC/USBPWR is used */
|
||||||
v &= ~MXC_OTG_PHYCTRL_OC_DIS_BIT;
|
v &= ~MXC_OTG_PHYCTRL_OC_DIS_BIT;
|
||||||
|
else
|
||||||
|
/* OC/USBPWR is not used */
|
||||||
|
v |= MXC_OTG_PHYCTRL_OC_DIS_BIT;
|
||||||
__raw_writel(v, usbother_base +
|
__raw_writel(v, usbother_base +
|
||||||
MXC_USB_PHY_CTR_FUNC_OFFSET);
|
MXC_USB_PHY_CTR_FUNC_OFFSET);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user