Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d426e60d authored by Robin Getz's avatar Robin Getz Committed by Greg Kroah-Hartman
Browse files

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: default avatarRobin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: default avatarBryan Wu <cooloney@kernel.org>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 0c6a8818
Loading
Loading
Loading
Loading
+8 −6
Original line number Original line Diff line number Diff line
@@ -245,13 +245,15 @@ int __init musb_platform_init(struct musb *musb)
	}
	}
	gpio_direction_output(musb->config->gpio_vrsel, 0);
	gpio_direction_output(musb->config->gpio_vrsel, 0);


	/* Anomaly #05000346 */
	if (ANOMALY_05000346) {
	bfin_write_USB_APHY_CALIB(0x5411);
		bfin_write_USB_APHY_CALIB(ANOMALY_05000346_value);
		SSYNC();
		SSYNC();
	}


	/* Anomaly #05000347 */
	if (ANOMALY_05000347) {
		bfin_write_USB_APHY_CNTRL(0x0);
		bfin_write_USB_APHY_CNTRL(0x0);
		SSYNC();
		SSYNC();
	}


	/* TODO
	/* TODO
	 * Set SIC-IVG register
	 * Set SIC-IVG register