Skip to content

Commit

Permalink
USB: musb: Make sure we program the correct values in only when neces…
Browse files Browse the repository at this point in the history
…sary.

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>
  • Loading branch information
Robin Getz authored and Greg Kroah-Hartman committed Jan 7, 2009
1 parent 0c6a881 commit d426e60
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions drivers/usb/musb/blackfin.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,13 +245,15 @@ int __init musb_platform_init(struct musb *musb)
}
gpio_direction_output(musb->config->gpio_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
Expand Down

0 comments on commit d426e60

Please sign in to comment.