From: Yung-Ching LIN Date: Tue, 28 Mar 2017 17:51:25 +0000 (+0800) Subject: board: advantech: dms-ba16: apply the proper register setting to fix the voltage... X-Git-Tag: v2017.05-rc2~9^2~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fab70acf83c36eb06612f9c43083b7c3f13e428b;p=oweals%2Fu-boot.git board: advantech: dms-ba16: apply the proper register setting to fix the voltage peak issue Apply the proper setting for the reserved bits in SetDes Test and System Mode Control register to avoid the voltage peak issue while we do the IEEE PHY comformance test Signed-off-by: Ken Lin Acked-by: Akshay Bhat --- diff --git a/board/advantech/dms-ba16/dms-ba16.c b/board/advantech/dms-ba16/dms-ba16.c index 75b0bbc2cc..91e96ab096 100644 --- a/board/advantech/dms-ba16/dms-ba16.c +++ b/board/advantech/dms-ba16/dms-ba16.c @@ -304,7 +304,8 @@ static int mx6_rgmii_rework(struct phy_device *phydev) /* set debug port address: SerDes Test and System Mode Control */ phy_write(phydev, MDIO_DEVAD_NONE, 0x1d, 0x05); /* enable rgmii tx clock delay */ - phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, 0x100); + /* set the reserved bits to avoid board specific voltage peak issue*/ + phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, 0x3D47); return 0; }