1
0
Fork 0

MLK-19442-2 phy: phy-fsl-imx8mq-usb: change ssc_range value

According to IC engineer suggestion, set ssc_range as -4003 ppm
will have more tolerence for EMI, and suitable for more boards.
Besides, one customer board needs to set this value to pass TX
SSC test.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
(cherry picked from commit a48a65a40113b9b5d40114d02a5877d089f523a9)
5.4-rM2-2.2.x-imx-squashed
Peter Chen 2018-08-22 16:44:21 +08:00 committed by Li Jun
parent c78d206f49
commit c4b5c4cf6c
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,8 @@
#define PHY_CTRL0_FSEL_MASK GENMASK(5, 10)
#define PHY_CTRL0_FSEL_24M 0x2a
#define PHY_CTRL0_FSEL_100M 0x27
#define PHY_CTRL0_SSC_RANGE_MASK GENMASK(21, 23)
#define PHY_CTRL0_SSC_RANGE_4003PPM (0x2 << 21)
#define PHY_CTRL1 0x4
#define PHY_CTRL1_RESET BIT(0)
@ -51,6 +53,8 @@ static int imx8mq_usb_phy_init(struct phy *phy)
value = readl(imx_phy->base + PHY_CTRL0);
value |= PHY_CTRL0_REF_SSP_EN;
value &= ~PHY_CTRL0_SSC_RANGE_MASK;
value |= PHY_CTRL0_SSC_RANGE_4003PPM;
writel(value, imx_phy->base + PHY_CTRL0);
value = readl(imx_phy->base + PHY_CTRL2);