aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorRobin Getz <rgetz@blackfin.uclinux.org>2008-12-02 14:33:45 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-01-07 13:00:07 -0500
commitd426e60dbf6aa2c3199e37a59c6d134eb204d628 (patch)
tree87bd54ee419540927c894a38bc5715863a15cf79 /drivers/usb
parent0c6a8818447d38f7bb0b0013448659113d37a3e1 (diff)
USB: musb: Make sure we program the correct values in only when necessary.
Make sure we program the correct values in only when necessary. Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org> Signed-off-by: Bryan Wu <cooloney@kernel.org> Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/musb/blackfin.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/usb/musb/blackfin.c b/drivers/usb/musb/blackfin.c
index 3fb719aecf00..eed35c933bc2 100644
--- a/drivers/usb/musb/blackfin.c
+++ b/drivers/usb/musb/blackfin.c
@@ -245,13 +245,15 @@ int __init musb_platform_init(struct musb *musb)
245 } 245 }
246 gpio_direction_output(musb->config->gpio_vrsel, 0); 246 gpio_direction_output(musb->config->gpio_vrsel, 0);
247 247
248 /* Anomaly #05000346 */ 248 if (ANOMALY_05000346) {
249 bfin_write_USB_APHY_CALIB(0x5411); 249 bfin_write_USB_APHY_CALIB(ANOMALY_05000346_value);
250 SSYNC(); 250 SSYNC();
251 }
251 252
252 /* Anomaly #05000347 */ 253 if (ANOMALY_05000347) {
253 bfin_write_USB_APHY_CNTRL(0x0); 254 bfin_write_USB_APHY_CNTRL(0x0);
254 SSYNC(); 255 SSYNC();
256 }
255 257
256 /* TODO 258 /* TODO
257 * Set SIC-IVG register 259 * Set SIC-IVG register