diff mbox series

[13/15] imx: Convert some boards to DM_ETH

Message ID 20220310014404.1251636-13-trini@konsulko.com
State Superseded
Delegated to: Tom Rini
Headers show
Series [01/15] Convert CONFIG_ARMV7_SECURE_BASE et al to Kconfig | expand

Commit Message

Tom Rini March 10, 2022, 1:44 a.m. UTC
A small number of i.MX6/7 and vf610 boards have not enabled DM_ETH yet.
Given the state of the rest of the platform, enable DM_ETH.

Cc: Alison Wang <alison.wang@nxp.com>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Richard Hu <richard.hu@technexion.com>
Cc: Troy Kisky <troy.kisky@boundarydevices.com>
Cc: Uri Mashiach <uri.mashiach@compulab.co.il>
Signed-off-by: Tom Rini <trini@konsulko.com>
---
I would very much welcome tested and perhaps slightly more complete
migrations for these platforms as the deadline passed with v2020.07.
But, in order to do more Kconfig migrations as well, I did this quick
pass.
---
 board/boundary/nitrogen6x/nitrogen6x.c | 4 ----
 configs/cl-som-imx7_defconfig          | 1 +
 configs/mx6qsabrelite_defconfig        | 1 +
 configs/mx6sxsabreauto_defconfig       | 1 +
 configs/mx6sxsabresd_defconfig         | 1 +
 configs/nitrogen6dl2g_defconfig        | 1 +
 configs/nitrogen6dl_defconfig          | 1 +
 configs/nitrogen6q2g_defconfig         | 1 +
 configs/nitrogen6q_defconfig           | 1 +
 configs/nitrogen6s1g_defconfig         | 1 +
 configs/nitrogen6s_defconfig           | 1 +
 configs/pico-dwarf-imx6ul_defconfig    | 1 +
 configs/pico-hobbit-imx6ul_defconfig   | 1 +
 configs/pico-pi-imx6ul_defconfig       | 1 +
 configs/vf610twr_defconfig             | 1 +
 configs/vf610twr_nand_defconfig        | 1 +
 16 files changed, 15 insertions(+), 4 deletions(-)

Comments

Troy Kisky March 10, 2022, 2:07 a.m. UTC | #1
On 3/9/2022 5:44 PM, Tom Rini wrote:
> A small number of i.MX6/7 and vf610 boards have not enabled DM_ETH yet.
> Given the state of the rest of the platform, enable DM_ETH.
> 
> Cc: Alison Wang <alison.wang@nxp.com>
> Cc: Fabio Estevam <festevam@gmail.com>
> Cc: Richard Hu <richard.hu@technexion.com>
> Cc: Troy Kisky <troy.kisky@boundarydevices.com>
> Cc: Uri Mashiach <uri.mashiach@compulab.co.il>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> I would very much welcome tested and perhaps slightly more complete
> migrations for these platforms as the deadline passed with v2020.07.
> But, in order to do more Kconfig migrations as well, I did this quick
> pass.
> ---

If I remember correctly,
CONFIG_CI_UDC=y

has trouble with DM_ETH. Has this been fixed?

BR
Troy
Tom Rini March 10, 2022, 2:33 a.m. UTC | #2
On Wed, Mar 09, 2022 at 06:07:44PM -0800, Troy Kisky wrote:
> On 3/9/2022 5:44 PM, Tom Rini wrote:
> > A small number of i.MX6/7 and vf610 boards have not enabled DM_ETH yet.
> > Given the state of the rest of the platform, enable DM_ETH.
> > 
> > Cc: Alison Wang <alison.wang@nxp.com>
> > Cc: Fabio Estevam <festevam@gmail.com>
> > Cc: Richard Hu <richard.hu@technexion.com>
> > Cc: Troy Kisky <troy.kisky@boundarydevices.com>
> > Cc: Uri Mashiach <uri.mashiach@compulab.co.il>
> > Signed-off-by: Tom Rini <trini@konsulko.com>
> > ---
> > I would very much welcome tested and perhaps slightly more complete
> > migrations for these platforms as the deadline passed with v2020.07.
> > But, in order to do more Kconfig migrations as well, I did this quick
> > pass.
> > ---
> 
> If I remember correctly,
> CONFIG_CI_UDC=y
> 
> has trouble with DM_ETH. Has this been fixed?

Given commit cd18f1e6e614 ("imx: ventana: enable dm support for PCI and
FEC ethernet") I don't know if it was fixed or simply dropped from the
platform as part of the DM_ETH conversion.
diff mbox series

Patch

diff --git a/board/boundary/nitrogen6x/nitrogen6x.c b/board/boundary/nitrogen6x/nitrogen6x.c
index 84e14d1124fc..8566c22a98f7 100644
--- a/board/boundary/nitrogen6x/nitrogen6x.c
+++ b/board/boundary/nitrogen6x/nitrogen6x.c
@@ -356,10 +356,6 @@  int board_eth_init(struct bd_info *bis)
 		goto free_phydev;
 #endif
 
-#ifdef CONFIG_CI_UDC
-	/* For otg ethernet*/
-	usb_eth_initialize(bis);
-#endif
 	return 0;
 
 free_phydev:
diff --git a/configs/cl-som-imx7_defconfig b/configs/cl-som-imx7_defconfig
index 3779e57c60ff..7c708257b486 100644
--- a/configs/cl-som-imx7_defconfig
+++ b/configs/cl-som-imx7_defconfig
@@ -84,6 +84,7 @@  CONFIG_SPI_FLASH_SST=y
 CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_ATHEROS=y
+CONFIG_DM_ETH=y
 CONFIG_FEC_MXC=y
 CONFIG_MII=y
 CONFIG_POWER_LEGACY=y
diff --git a/configs/mx6qsabrelite_defconfig b/configs/mx6qsabrelite_defconfig
index 954379f7213f..656ef0d04dab 100644
--- a/configs/mx6qsabrelite_defconfig
+++ b/configs/mx6qsabrelite_defconfig
@@ -64,6 +64,7 @@  CONFIG_SPI_FLASH_SST=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
 CONFIG_PHY_MICREL_KSZ90X1=y
+CONFIG_DM_ETH=y
 CONFIG_FEC_MXC=y
 CONFIG_MII=y
 CONFIG_PINCTRL=y
diff --git a/configs/mx6sxsabreauto_defconfig b/configs/mx6sxsabreauto_defconfig
index 790624ed8162..30194a8cde48 100644
--- a/configs/mx6sxsabreauto_defconfig
+++ b/configs/mx6sxsabreauto_defconfig
@@ -52,6 +52,7 @@  CONFIG_SF_DEFAULT_SPEED=40000000
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_ATHEROS=y
+CONFIG_DM_ETH=y
 CONFIG_FEC_MXC=y
 CONFIG_MII=y
 CONFIG_PINCTRL=y
diff --git a/configs/mx6sxsabresd_defconfig b/configs/mx6sxsabresd_defconfig
index cc11d0495a40..b5b0b374f2e5 100644
--- a/configs/mx6sxsabresd_defconfig
+++ b/configs/mx6sxsabresd_defconfig
@@ -54,6 +54,7 @@  CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_ATHEROS=y
+CONFIG_DM_ETH=y
 CONFIG_FEC_MXC=y
 CONFIG_MII=y
 CONFIG_PCI=y
diff --git a/configs/nitrogen6dl2g_defconfig b/configs/nitrogen6dl2g_defconfig
index 9a9d0b33556b..848bafeba1e7 100644
--- a/configs/nitrogen6dl2g_defconfig
+++ b/configs/nitrogen6dl2g_defconfig
@@ -70,6 +70,7 @@  CONFIG_SPI_FLASH_SST=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
 CONFIG_PHY_MICREL_KSZ90X1=y
+CONFIG_DM_ETH=y
 CONFIG_FEC_MXC=y
 CONFIG_MII=y
 CONFIG_PINCTRL=y
diff --git a/configs/nitrogen6dl_defconfig b/configs/nitrogen6dl_defconfig
index ec7185bd49ef..fa88c0ce289b 100644
--- a/configs/nitrogen6dl_defconfig
+++ b/configs/nitrogen6dl_defconfig
@@ -70,6 +70,7 @@  CONFIG_SPI_FLASH_SST=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
 CONFIG_PHY_MICREL_KSZ90X1=y
+CONFIG_DM_ETH=y
 CONFIG_FEC_MXC=y
 CONFIG_MII=y
 CONFIG_PINCTRL=y
diff --git a/configs/nitrogen6q2g_defconfig b/configs/nitrogen6q2g_defconfig
index 46786ba73fe5..8401881c632d 100644
--- a/configs/nitrogen6q2g_defconfig
+++ b/configs/nitrogen6q2g_defconfig
@@ -72,6 +72,7 @@  CONFIG_SPI_FLASH_SST=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
 CONFIG_PHY_MICREL_KSZ90X1=y
+CONFIG_DM_ETH=y
 CONFIG_FEC_MXC=y
 CONFIG_MII=y
 CONFIG_PINCTRL=y
diff --git a/configs/nitrogen6q_defconfig b/configs/nitrogen6q_defconfig
index 32570b683f25..fe82c0f2f5c4 100644
--- a/configs/nitrogen6q_defconfig
+++ b/configs/nitrogen6q_defconfig
@@ -72,6 +72,7 @@  CONFIG_SPI_FLASH_SST=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
 CONFIG_PHY_MICREL_KSZ90X1=y
+CONFIG_DM_ETH=y
 CONFIG_FEC_MXC=y
 CONFIG_MII=y
 CONFIG_PINCTRL=y
diff --git a/configs/nitrogen6s1g_defconfig b/configs/nitrogen6s1g_defconfig
index 4336b1b628ae..8743e32afa97 100644
--- a/configs/nitrogen6s1g_defconfig
+++ b/configs/nitrogen6s1g_defconfig
@@ -70,6 +70,7 @@  CONFIG_SPI_FLASH_SST=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
 CONFIG_PHY_MICREL_KSZ90X1=y
+CONFIG_DM_ETH=y
 CONFIG_FEC_MXC=y
 CONFIG_MII=y
 CONFIG_PINCTRL=y
diff --git a/configs/nitrogen6s_defconfig b/configs/nitrogen6s_defconfig
index 38950194370e..5bf3c16a491b 100644
--- a/configs/nitrogen6s_defconfig
+++ b/configs/nitrogen6s_defconfig
@@ -70,6 +70,7 @@  CONFIG_SPI_FLASH_SST=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
 CONFIG_PHY_MICREL_KSZ90X1=y
+CONFIG_DM_ETH=y
 CONFIG_FEC_MXC=y
 CONFIG_MII=y
 CONFIG_PINCTRL=y
diff --git a/configs/pico-dwarf-imx6ul_defconfig b/configs/pico-dwarf-imx6ul_defconfig
index 8d63f16c69e9..7bb7cf1edad8 100644
--- a/configs/pico-dwarf-imx6ul_defconfig
+++ b/configs/pico-dwarf-imx6ul_defconfig
@@ -54,6 +54,7 @@  CONFIG_SYS_I2C_MXC=y
 CONFIG_FSL_USDHC=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
+CONFIG_DM_ETH=y
 CONFIG_FEC_MXC=y
 CONFIG_MII=y
 CONFIG_PINCTRL=y
diff --git a/configs/pico-hobbit-imx6ul_defconfig b/configs/pico-hobbit-imx6ul_defconfig
index 1ce17e603835..e5d09368730a 100644
--- a/configs/pico-hobbit-imx6ul_defconfig
+++ b/configs/pico-hobbit-imx6ul_defconfig
@@ -57,6 +57,7 @@  CONFIG_FSL_USDHC=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
 CONFIG_PHY_MICREL_KSZ8XXX=y
+CONFIG_DM_ETH=y
 CONFIG_FEC_MXC=y
 CONFIG_MII=y
 CONFIG_PINCTRL=y
diff --git a/configs/pico-pi-imx6ul_defconfig b/configs/pico-pi-imx6ul_defconfig
index 5e18dccc84b3..1e540bd484ed 100644
--- a/configs/pico-pi-imx6ul_defconfig
+++ b/configs/pico-pi-imx6ul_defconfig
@@ -57,6 +57,7 @@  CONFIG_FSL_USDHC=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
 CONFIG_PHY_MICREL_KSZ8XXX=y
+CONFIG_DM_ETH=y
 CONFIG_FEC_MXC=y
 CONFIG_MII=y
 CONFIG_PINCTRL=y
diff --git a/configs/vf610twr_defconfig b/configs/vf610twr_defconfig
index 2fb69c1be2f6..1d93ffe53d0e 100644
--- a/configs/vf610twr_defconfig
+++ b/configs/vf610twr_defconfig
@@ -53,6 +53,7 @@  CONFIG_SYS_NAND_BUSWIDTH_16BIT=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
 CONFIG_PHY_MICREL_KSZ8XXX=y
+CONFIG_DM_ETH=y
 CONFIG_FEC_MXC=y
 CONFIG_MII=y
 CONFIG_DM_SERIAL=y
diff --git a/configs/vf610twr_nand_defconfig b/configs/vf610twr_nand_defconfig
index 6af2839f9327..c9ec55fd9a3d 100644
--- a/configs/vf610twr_nand_defconfig
+++ b/configs/vf610twr_nand_defconfig
@@ -53,6 +53,7 @@  CONFIG_SYS_NAND_BUSWIDTH_16BIT=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
 CONFIG_PHY_MICREL_KSZ8XXX=y
+CONFIG_DM_ETH=y
 CONFIG_FEC_MXC=y
 CONFIG_MII=y
 CONFIG_DM_SERIAL=y