summaryrefslogtreecommitdiff
path: root/drivers/phy
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@nxp.com>2018-08-22 16:44:21 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:33:45 +0800
commitdfbb977b78f8da771145d4f093020c4e1cff800c (patch)
tree4c8d914c12fe46ea7cfcbdafe71f29a517b9f076 /drivers/phy
parentf4211724d6228a0515d93a320f1016947bd0c37c (diff)
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>
Diffstat (limited to 'drivers/phy')
-rw-r--r--drivers/phy/phy-fsl-imx8mq-usb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/phy/phy-fsl-imx8mq-usb.c b/drivers/phy/phy-fsl-imx8mq-usb.c
index 113bc5b192e1..3705546b056e 100644
--- a/drivers/phy/phy-fsl-imx8mq-usb.c
+++ b/drivers/phy/phy-fsl-imx8mq-usb.c
@@ -15,6 +15,8 @@
#define PHY_CTRL0 0x0
#define PHY_CTRL0_REF_SSP_EN BIT(2)
+#define PHY_CTRL0_SSC_RANGE_MASK (7 << 21)
+#define PHY_CTRL0_SSC_RANGE_4003PPM (0x2 << 21)
#define PHY_CTRL1 0x4
#define PHY_CTRL1_RESET BIT(0)
@@ -66,6 +68,8 @@ static void imx8mq_usb_phy_init(struct imx8mq_usb_phy *phy)
value = readl(phy->base + PHY_CTRL0);
value |= PHY_CTRL0_REF_SSP_EN;
+ value &= ~PHY_CTRL0_SSC_RANGE_MASK;
+ value |= PHY_CTRL0_SSC_RANGE_4003PPM;
writel(value, phy->base + PHY_CTRL0);
value = readl(phy->base + PHY_CTRL2);