board: ge: bx50v3: fix AR8033 reset timing issue
PATCH v2 1/2 board: ge: bx50v3: fix AR8033 reset timing issue
Add the delay (10ms) to ensure the clock is stable and to meet the clock-to-reset(1ms) requirement recommended in the AR8033 datasheet
Signed-off-by Ken Lin <[email protected]>
---
Changes from v1
- Fix the missing Signed-off-by issue
board/ge/bx50v3/bx50v3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
board/ge/bx50v3/bx50v3.c +2 -1
@@ -103,8 +103,9 @@ static void setup_iomux_enet(void)/* Reset AR8033 PHY */ gpio_direction_output (IMX_GPIO_NR (1 ,28 ),0 ); -udelay (500 ); +mdelay (10 );gpio_set_value (IMX_GPIO_NR (1 ,28 ),1 ); +mdelay (1 ); }static iomux_v3_cfg_t const usdhc2_pads[] = {
Signature · 1 line
2.11.0
PATCH v2 2/2 board: ge: bx50v3: 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 <[email protected]>
---
Changes from v1
- New commit message
board/ge/bx50v3/bx50v3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
board/ge/bx50v3/bx50v3.c +2 -1
@@ -307,7 +307,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 ; }
Signature · 1 line
2.11.0