Title: [8216] trunk: the vrsel gpio may need to be active low,so add an variable to deal with this case
Revision
8216
Author
cliff
Date
2010-01-21 22:46:15 -0500 (Thu, 21 Jan 2010)

Log Message

the vrsel gpio may need to be active low,so add an variable to deal with this case

Modified Paths

Diff

Modified: trunk/drivers/usb/musb/blackfin.c (8215 => 8216)


--- trunk/drivers/usb/musb/blackfin.c	2010-01-21 11:11:50 UTC (rev 8215)
+++ trunk/drivers/usb/musb/blackfin.c	2010-01-22 03:46:15 UTC (rev 8216)
@@ -299,9 +299,9 @@
 static void bfin_set_vbus(struct musb *musb, int is_on)
 {
 	if (is_on)
-		gpio_set_value(musb->config->gpio_vrsel, 1);
+		gpio_set_value(musb->config->gpio_vrsel, musb->config->gpio_vrsel_active);
 	else
-		gpio_set_value(musb->config->gpio_vrsel, 0);
+		gpio_set_value(musb->config->gpio_vrsel, !musb->config->gpio_vrsel_active);
 
 	DBG(1, "VBUS %s, devctl %02x "
 		/* otg %3x conf %08x prcm %08x */ "\n",

Modified: trunk/include/linux/usb/musb.h (8215 => 8216)


--- trunk/include/linux/usb/musb.h	2010-01-21 11:11:50 UTC (rev 8215)
+++ trunk/include/linux/usb/musb.h	2010-01-22 03:46:15 UTC (rev 8216)
@@ -53,6 +53,7 @@
 #ifdef CONFIG_BLACKFIN
         /* A GPIO controlling VRSEL in Blackfin */
         unsigned int    gpio_vrsel;
+	unsigned int	gpio_vrsel_active;
 #endif
 
 };
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to