Title: [5293] trunk: Make sure we program the correct values in only when necessary.
Revision
5293
Author
rgetz
Date
2008-09-15 16:56:46 -0500 (Mon, 15 Sep 2008)

Log Message

Make sure we program the correct values in only when necessary.

Modified Paths


Diff

Modified: trunk/drivers/usb/musb/blackfin.c (5292 => 5293)


--- trunk/drivers/usb/musb/blackfin.c	2008-09-15 16:00:43 UTC (rev 5292)
+++ trunk/drivers/usb/musb/blackfin.c	2008-09-15 21:56:46 UTC (rev 5293)
@@ -336,13 +336,15 @@
 	}
 	gpio_direction_output(GPIO_USB_VRSEL, 0);
 
-	/* Anomaly #05000346 */
-	bfin_write_USB_APHY_CALIB(0x5411);
-	SSYNC();
+	if (ANOMALY_05000346) {
+		bfin_write_USB_APHY_CALIB(ANOMALY_05000346_value);
+		SSYNC();
+	}
 
-	/* Anomaly #05000347 */
-	bfin_write_USB_APHY_CNTRL(0x0);
-	SSYNC();
+	if (ANOMALY_05000347) {
+		bfin_write_USB_APHY_CNTRL(0x0);
+		SSYNC();
+	}
 
 	/* TODO
 	 * Set SIC-IVG register

Modified: trunk/include/asm-blackfin/mach-bf527/anomaly.h (5292 => 5293)


--- trunk/include/asm-blackfin/mach-bf527/anomaly.h	2008-09-15 16:00:43 UTC (rev 5292)
+++ trunk/include/asm-blackfin/mach-bf527/anomaly.h	2008-09-15 21:56:46 UTC (rev 5293)
@@ -37,6 +37,8 @@
 #define ANOMALY_05000342 (1)
 /* USB Calibration Value Is Not Initialized */
 #define ANOMALY_05000346 (1)
+/* USB Calibration Value to use */
+#define ANOMALY_05000346_value 0xE510
 /* Preboot Routine Incorrectly Alters Reset Value of USB Register */
 #define ANOMALY_05000347 (1)
 /* Security Features Are Not Functional */

Modified: trunk/include/asm-blackfin/mach-bf548/anomaly.h (5292 => 5293)


--- trunk/include/asm-blackfin/mach-bf548/anomaly.h	2008-09-15 16:00:43 UTC (rev 5292)
+++ trunk/include/asm-blackfin/mach-bf548/anomaly.h	2008-09-15 21:56:46 UTC (rev 5293)
@@ -61,6 +61,8 @@
 #define ANOMALY_05000344 (__SILICON_REVISION__ < 1)
 /* USB Calibration Value Is Not Intialized */
 #define ANOMALY_05000346 (__SILICON_REVISION__ < 1)
+/* USB Calibration Value to use */
+#define ANOMALY_05000346_value 0x5411
 /* Boot ROM Kernel Incorrectly Alters Reset Value of USB Register */
 #define ANOMALY_05000347 (__SILICON_REVISION__ < 1)
 /* Data Lost when Core Reads SDH Data FIFO */
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to