USB: amldevread data failed [1/1]
authorhe.he <he.he@amlogic.com>
Tue, 12 Mar 2019 04:52:14 +0000 (12:52 +0800)
committerLuan Yuan <luan.yuan@amlogic.com>
Tue, 9 Apr 2019 12:14:07 +0000 (20:14 +0800)
PD#SWPL-5292

Problem:
g12b-revB, some u disk amldevread test failed.

Solution:
Changing the register 0x54 to 0x2a, enabled the hs rx idle noise filter,
and the abnormal u-disk has no problem in the amldevread test.

Verify:
g12b revB

Change-Id: Ibbf924c93d193d7e40c4d8121a4616a8d1caeaaa
Signed-off-by: he.he <he.he@amlogic.com>
drivers/amlogic/usb/phy/phy-aml-new-usb2-v2.c

index a3e1340..6aaf4f9 100644 (file)
@@ -106,6 +106,7 @@ void set_usb_pll(struct amlogic_usb_v2 *phy, void __iomem   *reg)
                if (g_phy2_v2->phy_version == 2) {
                /**g12b revB don't need set 0x10 ,0x38 and 0x34**/
                        writel(phy->pll_setting[3], reg + 0x50);
+                       writel(0x2a, reg + 0x54);
                        writel(0x70000, reg + 0x34);
                } else {
                        writel(phy->pll_setting[3], reg + 0x50);