Commit 59ca4318ab4e1cfd39e6c1343e87eda481226552

Authored by Ye.Li
1 parent 3f66148f3d

MLK-9706 imx: mx6sx19x19arm2: Fix ENET card MAX7322 reset issue

The MAX7322 will fail to work on 19x19 arm2 revB board. This failure
is caused by the MAX7322 reset pin is not released when calling the
setup_fec function.

The MAX7322 reset pin is same as PHY reset pin. This patch fixes the issue
by moving the PHY reset from setup_iomux_fec1 to setup_fec.

Signed-off-by: Ye.Li <B37916@freescale.com>

Showing 1 changed file with 5 additions and 5 deletions Side-by-side Diff

board/freescale/mx6sx_19x19_arm2/mx6sx_19x19_arm2.c
... ... @@ -303,11 +303,6 @@
303 303 static void setup_iomux_fec1(void)
304 304 {
305 305 imx_iomux_v3_setup_multiple_pads(fec1_pads, ARRAY_SIZE(fec1_pads));
306   -
307   - /* Reset AR8031 PHY */
308   - gpio_direction_output(IMX_GPIO_NR(6, 18) , 0);
309   - udelay(500);
310   - gpio_set_value(IMX_GPIO_NR(6, 18), 1);
311 306 }
312 307 #endif
313 308  
... ... @@ -598,6 +593,11 @@
598 593 return ret;
599 594  
600 595 enable_enet_clock();
  596 +
  597 + /* Reset AR8031 PHY */
  598 + gpio_direction_output(IMX_GPIO_NR(6, 18) , 0);
  599 + udelay(500);
  600 + gpio_set_value(IMX_GPIO_NR(6, 18), 1);
601 601  
602 602 #ifdef CONFIG_FEC_ENABLE_MAX7322
603 603 /* This is needed to drive the pads to 1.8V instead of 1.5V */