]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Leave GPIO[7:6] pullups enabled
authorFelipe Balbi <felipe.lima@indt.org.br>
Tue, 5 Jun 2007 11:01:56 +0000 (04:01 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 5 Jun 2007 11:01:56 +0000 (04:01 -0700)
GPIO7 and GPIO6 are configured as default wake-up sources for
tusb6010.

without this patch MUSB is not able to enumerate
any device that draw power from it.

After applying this patch, we're passing in almost
all OTG Electrical Tests.

Signed-off-by: Felipe Balbi <felipe.lima@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/musb/tusb6010.c

index 48c3ab3ea2a20e5ef18700c08844c5736d37d0a2..123ad108b9f6f64e240b50fa3215c4475b18074c 100644 (file)
@@ -810,8 +810,12 @@ static void __init tusb_setup_cpu_interface(struct musb *musb)
 {
        void __iomem    *base = musb->ctrl_base;
 
-       /* Disable GPIO[7:0] pullups (used as output DMA requests) */
-       musb_writel(base, TUSB_PULLUP_1_CTRL, 0x000000FF);
+       /*
+        * Disable GPIO[5:0] pullups (used as output DMA requests)
+        * Don't disable GPIO[7:6] as they are needed for wake-up.
+        */
+       musb_writel(base, TUSB_PULLUP_1_CTRL, 0x0000003F);
+
        /* Disable all pullups on NOR IF, DMAREQ0 and DMAREQ1 */
        musb_writel(base, TUSB_PULLUP_2_CTRL, 0x01FFFFFF);