Title: [5299] branches/2008R1: Make sure that the calibration values are programmed properly.
- Revision
- 5299
- Author
- rgetz
- Date
- 2008-09-16 14:56:07 -0500 (Tue, 16 Sep 2008)
Log Message
Make sure that the calibration values are programmed properly.
Modified Paths
Diff
Modified: branches/2008R1/drivers/usb/musb/blackfin.c (5298 => 5299)
--- branches/2008R1/drivers/usb/musb/blackfin.c 2008-09-16 17:39:34 UTC (rev 5298)
+++ branches/2008R1/drivers/usb/musb/blackfin.c 2008-09-16 19:56:07 UTC (rev 5299)
@@ -374,13 +374,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: branches/2008R1/include/asm-blackfin/mach-bf527/anomaly.h (5298 => 5299)
--- branches/2008R1/include/asm-blackfin/mach-bf527/anomaly.h 2008-09-16 17:39:34 UTC (rev 5298)
+++ branches/2008R1/include/asm-blackfin/mach-bf527/anomaly.h 2008-09-16 19:56:07 UTC (rev 5299)
@@ -31,6 +31,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: branches/2008R1/include/asm-blackfin/mach-bf548/anomaly.h (5298 => 5299)
--- branches/2008R1/include/asm-blackfin/mach-bf548/anomaly.h 2008-09-16 17:39:34 UTC (rev 5298)
+++ branches/2008R1/include/asm-blackfin/mach-bf548/anomaly.h 2008-09-16 19:56:07 UTC (rev 5299)
@@ -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