usb: octeon2-common.c: Configure ports for proper electrical characteristics.
authorDavid Daney <ddaney@caviumnetworks.com>
Wed, 27 Apr 2011 17:54:21 +0000 (10:54 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 3 May 2011 17:09:31 +0000 (10:09 -0700)
Additional PHY tuning is needed to obtain compliant 'eye' diagram
electrical characteristics.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/octeon2-common.c

index 5a0feed0356113f6a2a09b32c82521644e7893da..aef6364d63143c8537a06cc4d43ab3e1e14eece5 100644 (file)
@@ -176,8 +176,10 @@ end_clock:
        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);
        }