usb: adjusted the sof interval to 125us through controller, then retested EL39.
authorYue Wang <yue.wang@amlogic.com>
Wed, 13 Jun 2018 09:28:40 +0000 (17:28 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Thu, 14 Jun 2018 02:12:01 +0000 (19:12 -0700)
PD#168365: usb: adjusted the sof interval to 125us through controller.

Change-Id: I9984e4dc5aa82808824949169ac8fadb4d0e7147
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
drivers/amlogic/usb/phy/phy-aml-new-usb3-v2.c

index c115c75955d1b324ca2935f45a177a5ed332b482..7fa1afdf395cc4f77d34cf27b43771bd228331b4 100644 (file)
@@ -267,7 +267,7 @@ static int amlogic_new_usb3_init(struct usb_phy *x)
        }
 
        r1.d32 = readl(usb_new_aml_regs_v2.usb_r_v2[1]);
-       r1.b.u3h_fladj_30mhz_reg = 0x26;
+       r1.b.u3h_fladj_30mhz_reg = 0x20;
        writel(r1.d32, usb_new_aml_regs_v2.usb_r_v2[1]);
 
        r5.d32 = readl(usb_new_aml_regs_v2.usb_r_v2[5]);
@@ -291,7 +291,7 @@ static int amlogic_new_usb3_init(struct usb_phy *x)
                udelay(2);
                r1.d32 = readl(usb_new_aml_regs_v2.usb_r_v2[1]);
                r1.b.u3h_host_port_power_control_present = 1;
-               r1.b.u3h_fladj_30mhz_reg = 0x26;
+               r1.b.u3h_fladj_30mhz_reg = 0x20;
                r1.b.p30_pcs_tx_swing_full = 127;
                writel(r1.d32, usb_new_aml_regs_v2.usb_r_v2[1]);
                udelay(2);