From cb75d02ab13d71dda92e8925e8ec07d3890815bc Mon Sep 17 00:00:00 2001 From: Michael Walle Date: Wed, 17 Aug 2022 21:38:05 +0200 Subject: [PATCH] board: lsxl: convert to DM_ETH Just enabling the Kconfig option for DM_ETH and DM_MDIO is enough. Additionally, we can remove the old hardcoded config. Signed-off-by: Michael Walle Reviewed-by: Stefan Roese --- configs/lschlv2_defconfig | 2 ++ configs/lsxhl_defconfig | 2 ++ include/configs/lsxl.h | 8 -------- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/configs/lschlv2_defconfig b/configs/lschlv2_defconfig index 2146a33276..4e356fb150 100644 --- a/configs/lschlv2_defconfig +++ b/configs/lschlv2_defconfig @@ -61,6 +61,8 @@ CONFIG_MTD=y CONFIG_DM_SPI_FLASH=y CONFIG_SF_DEFAULT_SPEED=25000000 CONFIG_SPI_FLASH_STMICRO=y +CONFIG_DM_ETH=y +CONFIG_DM_MDIO=y CONFIG_MVGBE=y CONFIG_MII=y CONFIG_DM_REGULATOR=y diff --git a/configs/lsxhl_defconfig b/configs/lsxhl_defconfig index d8953128e0..6de0322bfa 100644 --- a/configs/lsxhl_defconfig +++ b/configs/lsxhl_defconfig @@ -62,6 +62,8 @@ CONFIG_MTD=y CONFIG_DM_SPI_FLASH=y CONFIG_SF_DEFAULT_SPEED=25000000 CONFIG_SPI_FLASH_STMICRO=y +CONFIG_DM_ETH=y +CONFIG_DM_MDIO=y CONFIG_MVGBE=y CONFIG_MII=y CONFIG_DM_REGULATOR=y diff --git a/include/configs/lsxl.h b/include/configs/lsxl.h index 4d5908d236..c82eb8b04b 100644 --- a/include/configs/lsxl.h +++ b/include/configs/lsxl.h @@ -59,12 +59,4 @@ "setenv autoload_old\0" \ "nc=setenv stdin nc; setenv stdout nc; setenv stderr nc\0" \ -/* - * Ethernet Driver configuration - */ -#ifdef CONFIG_CMD_NET -#define CONFIG_MVGBE_PORTS {0, 1} /* enable port 1 only */ -#define CONFIG_PHY_BASE_ADR 7 -#endif /* CONFIG_CMD_NET */ - #endif /* _CONFIG_LSXL_H */ -- 2.39.5