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

Commit bf541715 authored by David Daney's avatar David Daney Committed by Greg Kroah-Hartman
Browse files

usb: octeon2-common.c: Configure ports for proper electrical characteristics.



Additional PHY tuning is needed to obtain compliant 'eye' diagram
electrical characteristics.

Signed-off-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent f5ced997
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -176,8 +176,10 @@ void octeon2_usb_clocks_start(void)
	for (i = 0; i <= 1; i++) {
		port_ctl_status.u64 =
			cvmx_read_csr(CVMX_UCTLX_UPHY_PORTX_CTL_STATUS(i, 0));
		/* Set txvreftune to 15 to obtain complient 'eye' diagram. */
		/* Set txvreftune to 15 to obtain compliant 'eye' diagram. */
		port_ctl_status.s.txvreftune = 15;
		port_ctl_status.s.txrisetune = 1;
		port_ctl_status.s.txpreemphasistune = 1;
		cvmx_write_csr(CVMX_UCTLX_UPHY_PORTX_CTL_STATUS(i, 0),
			       port_ctl_status.u64);
	}