Commit 2265c398 authored by Anton Protopopov's avatar Anton Protopopov

RT #109267. STM32F7-DISCO: fix ethernet configuration

parent 569662c4
......@@ -308,25 +308,25 @@ struct stm_eth_dev {
/*
* Ethernet GPIOs:
*
* ETH_MII_RX_CLK/ETH_RMII_REF_CLK---> PA1
* ETH_MDIO -------------------------> PA2
* ETH_MII_RX_DV/ETH_RMII_CRS_DV ----> PA7
* ETH_PPS_OUT ----------------------> PB5
* ETH_MII_TXD3 ---------------------> PB8
* ETH_MDC --------------------------> PC1
* ETH_MII_TXD2 ---------------------> PC2
* ETH_MII_TX_CLK -------------------> PC3
* ETH_MII_RXD0/ETH_RMII_RXD0 -------> PC4
* ETH_MII_RXD1/ETH_RMII_RXD1 -------> PC5
* ETH_MII_TX_EN/ETH_RMII_TX_EN -----> PG11
* ETH_MII_TXD0/ETH_RMII_TXD0 -------> PG13
* ETH_MII_TXD1/ETH_RMII_TXD1 -------> PG14
* ETH_MII_CRS ----------------------> PH2
* ETH_MII_COL ----------------------> PH3
* ETH_MII_RXD2 ---------------------> PH6
* ETH_MII_RXD3 ---------------------> PH7
* ETH_MII_RX_ER --------------------> PI10
* STM32F7-SOM STM32F7-DISCO
* ETH_MII_RX_CLK/ETH_RMII_REF_CLK---> PA1 =
* ETH_MDIO -------------------------> PA2 =
* ETH_MII_RX_DV/ETH_RMII_CRS_DV ----> PA7 =
* ETH_PPS_OUT ----------------------> PB5 -
* ETH_MII_TXD3 ---------------------> PB8 -
* ETH_MDC --------------------------> PC1 =
* ETH_MII_TXD2 ---------------------> PC2 -
* ETH_MII_TX_CLK -------------------> PC3 -
* ETH_MII_RXD0/ETH_RMII_RXD0 -------> PC4 =
* ETH_MII_RXD1/ETH_RMII_RXD1 -------> PC5 =
* ETH_MII_TX_EN/ETH_RMII_TX_EN -----> PG11 =
* ETH_MII_TXD0/ETH_RMII_TXD0 -------> PG13 =
* ETH_MII_TXD1/ETH_RMII_TXD1 -------> PG14 =
* ETH_MII_CRS ----------------------> PH2 -
* ETH_MII_COL ----------------------> PH3 -
* ETH_MII_RXD2 ---------------------> PH6 -
* ETH_MII_RXD3 ---------------------> PH7 -
* ETH_MII_RX_ER --------------------> PI10 PG2
*/
static struct stm32f2_gpio_dsc mac_gpio[] = {
{STM32F2_GPIO_PORT_A, 1},
......@@ -356,7 +356,13 @@ static struct stm32f2_gpio_dsc mac_gpio[] = {
{STM32F2_GPIO_PORT_H, 6},
{STM32F2_GPIO_PORT_H, 7},
/* ETH_MII_RX_ER is different on STM32F7-{SOM,DISCO} */
#ifndef CONFIG_SYS_STM32F7_DISCO
{STM32F2_GPIO_PORT_I, 10}
#else
{STM32F2_GPIO_PORT_G, 2}
#endif
#endif
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment