MLK-18794-3 usb: cdns3: change the definition of PowerState at XECP_PM_PMCSR
When the USB port goes to suspend, PowerState should set to "D1" (the D2 and D3hot are not supported now); PowerState should set to "D0" when the USB port goes to resume. Signed-off-by: Peter Chen <peter.chen@nxp.com> (cherry picked from commit c57f21e1031be46969f1f7e026d4dd23de7a8517)5.4-rM2-2.2.x-imx-squashed
parent
065da5c38e
commit
f4523a64f1
|
@ -168,5 +168,7 @@
|
|||
#define CFG_RXDET_P3_EN (1 << 15)
|
||||
|
||||
/* XECP_PM_PMCSR */
|
||||
#define PS_D0 (1 << 0)
|
||||
#define PS_MASK (3 << 0)
|
||||
#define PS_D0 0
|
||||
#define PS_D1 (1 << 0)
|
||||
#endif /* __DRIVERS_USB_CDNS3_NXP_H */
|
||||
|
|
|
@ -714,7 +714,8 @@ static void cdns3_enter_suspend(struct cdns3 *cdns, bool suspend, bool wakeup)
|
|||
|
||||
/* SW request low power when all usb ports allow to it ??? */
|
||||
value = readl(xhci_regs + XECP_PM_PMCSR);
|
||||
value |= PS_D0;
|
||||
value &= ~PS_MASK;
|
||||
value |= PS_D1;
|
||||
writel(value, xhci_regs + XECP_PM_PMCSR);
|
||||
|
||||
/* mdctrl_clk_sel */
|
||||
|
@ -774,7 +775,8 @@ static void cdns3_enter_suspend(struct cdns3 *cdns, bool suspend, bool wakeup)
|
|||
|
||||
/* SW request D0 */
|
||||
value = readl(xhci_regs + XECP_PM_PMCSR);
|
||||
value &= ~PS_D0;
|
||||
value &= ~PS_MASK;
|
||||
value |= PS_D0;
|
||||
writel(value, xhci_regs + XECP_PM_PMCSR);
|
||||
|
||||
/* clr CFG_RXDET_P3_EN */
|
||||
|
|
Loading…
Reference in New Issue