Skip to content
Snippets Groups Projects
Commit ae765f3a authored by Fabio Estevam's avatar Fabio Estevam Committed by Tom Rini
Browse files

mx6slevk: Fix the power up of the Ethernet PHY


GPIO4_21 is the LAN8720 power pin, not the LAN8720 reset pin.

Fix that, so that we can have Ethernet functional again.

Reviewed-by: default avatarTom Rini <trini@konsulko.com>
Signed-off-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
parent ea9619ae
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,7 @@ DECLARE_GLOBAL_DATA_PTR; ...@@ -57,7 +57,7 @@ DECLARE_GLOBAL_DATA_PTR;
PAD_CTL_DSE_80ohm | PAD_CTL_HYS | \ PAD_CTL_DSE_80ohm | PAD_CTL_HYS | \
PAD_CTL_SRE_FAST) PAD_CTL_SRE_FAST)
#define ETH_PHY_RESET IMX_GPIO_NR(4, 21) #define ETH_PHY_POWER IMX_GPIO_NR(4, 21)
int dram_init(void) int dram_init(void)
{ {
...@@ -154,10 +154,9 @@ static void setup_iomux_fec(void) ...@@ -154,10 +154,9 @@ static void setup_iomux_fec(void)
{ {
imx_iomux_v3_setup_multiple_pads(fec_pads, ARRAY_SIZE(fec_pads)); imx_iomux_v3_setup_multiple_pads(fec_pads, ARRAY_SIZE(fec_pads));
/* Reset LAN8720 PHY */ /* Power up LAN8720 PHY */
gpio_direction_output(ETH_PHY_RESET , 0); gpio_direction_output(ETH_PHY_POWER , 1);
udelay(25000); udelay(15000);
gpio_set_value(ETH_PHY_RESET, 1);
} }
#define USDHC1_CD_GPIO IMX_GPIO_NR(4, 7) #define USDHC1_CD_GPIO IMX_GPIO_NR(4, 7)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment