usb: usb2 squelch level setting 125mv [1/1]

PD#SWPL-98861

Problem:
usb2 squelch level setting 125mv

Solution:
usb2 squelch level setting 125mv

Verify:
t5 test, all chip need this setting

Change-Id: I421413f3e859ddfa5ef6e56351321a3367ca6227
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
This commit is contained in:
Yue Wang
2023-09-05 18:18:05 +08:00
committed by gerrit autosubmit
parent 098c285948
commit 98e178e303
+6 -1
View File
@@ -23,7 +23,8 @@
struct amlogic_usb_v2 *g_crg_drd_phy2[2];
char name_crg[32];
#define TUNING_CRG_DRD_DISCONNECT_THRESHOLD 0x3c
#define TUNING_CRG_DRD_DISCONNECT_THRESHOLD 0x3f
#define TUNING_CRG_DRD_DISCONNECT_THRESHOLD_22NM 0x7f
static void usb_set_calibration_trim
(void __iomem *reg, struct amlogic_usb_v2 *phy)
@@ -188,6 +189,10 @@ __retry:
writel(phy->pll_setting[3], reg + 0x50);
// wait for 200us
usleep_range(199, 200);
writel(TUNING_CRG_DRD_DISCONNECT_THRESHOLD_22NM, reg + 0xC);
usleep_range(199, 200);
//check lock bit
if (readl(reg + 0x40) >> 31)
return;