Commit e55451b1 authored by David Brownell's avatar David Brownell Committed by Tony Lindgren

musb_hdrc: musb speling fix

Speling fix:  PRCM_WID for wake-on-id, not PRCM_WLD for bits-gone-WLD.
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
parent 18dd7d5d
...@@ -209,9 +209,9 @@ static void tusb_allow_idle(struct musb *musb, u32 wakeup_enables) ...@@ -209,9 +209,9 @@ static void tusb_allow_idle(struct musb *musb, u32 wakeup_enables)
wakeup_enables |= TUSB_PRCM_WNORCS; wakeup_enables |= TUSB_PRCM_WNORCS;
musb_writel(base, TUSB_PRCM_WAKEUP_MASK, ~wakeup_enables); musb_writel(base, TUSB_PRCM_WAKEUP_MASK, ~wakeup_enables);
/* REVISIT writeup of WLD implies that if WLD set and ID is grounded, /* REVISIT writeup of WID implies that if WID set and ID is grounded,
* TUSB_PHY_OTG_CTRL.TUSB_PHY_OTG_CTRL_OTG_ID_PULLUP must be cleared. * TUSB_PHY_OTG_CTRL.TUSB_PHY_OTG_CTRL_OTG_ID_PULLUP must be cleared.
* Presumably that's mostly to save power, hence WLD is immaterial ... * Presumably that's mostly to save power, hence WID is immaterial ...
*/ */
reg = musb_readl(base, TUSB_PRCM_MNGMT); reg = musb_readl(base, TUSB_PRCM_MNGMT);
...@@ -278,7 +278,7 @@ static void musb_do_idle(unsigned long _musb) ...@@ -278,7 +278,7 @@ static void musb_do_idle(unsigned long _musb)
| TUSB_PRCM_WBUS | TUSB_PRCM_WBUS
| TUSB_PRCM_WVBUS; | TUSB_PRCM_WVBUS;
if (is_otg_enabled(musb)) if (is_otg_enabled(musb))
wakeups |= TUSB_PRCM_WLD; wakeups |= TUSB_PRCM_WID;
} }
#else #else
wakeups = TUSB_PRCM_WHOSTDISCON | TUSB_PRCM_WBUS; wakeups = TUSB_PRCM_WHOSTDISCON | TUSB_PRCM_WBUS;
......
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
#define TUSB_PRCM_WBUS (1 << 3) /* USB bus resume */ #define TUSB_PRCM_WBUS (1 << 3) /* USB bus resume */
#define TUSB_PRCM_WNORCS (1 << 2) /* NOR chip select */ #define TUSB_PRCM_WNORCS (1 << 2) /* NOR chip select */
#define TUSB_PRCM_WVBUS (1 << 1) /* OTG PHY VBUS */ #define TUSB_PRCM_WVBUS (1 << 1) /* OTG PHY VBUS */
#define TUSB_PRCM_WLD (1 << 0) /* OTG PHY ID detect */ #define TUSB_PRCM_WID (1 << 0) /* OTG PHY ID detect */
#define TUSB_PULLUP_1_CTRL (TUSB_SYS_REG_BASE + 0x030) #define TUSB_PULLUP_1_CTRL (TUSB_SYS_REG_BASE + 0x030)
#define TUSB_PULLUP_2_CTRL (TUSB_SYS_REG_BASE + 0x034) #define TUSB_PULLUP_2_CTRL (TUSB_SYS_REG_BASE + 0x034)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment