board: lsxl: convert to DM_ETH
authorMichael Walle <michael@walle.cc>
Wed, 17 Aug 2022 19:38:05 +0000 (21:38 +0200)
committerStefan Roese <sr@denx.de>
Tue, 23 Aug 2022 10:40:11 +0000 (12:40 +0200)
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 <michael@walle.cc>
Reviewed-by: Stefan Roese <sr@denx.de>
configs/lschlv2_defconfig
configs/lsxhl_defconfig
include/configs/lsxl.h

index 2146a33276872b046083b83c38bec137427114fb..4e356fb150510d2fce52735c0d2e7e8b3afee2fa 100644 (file)
@@ -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
index d8953128e0820cf1456f11214e57d388c0e0a7ac..6de0322bfad53e3a24973865480ee94f7ce708b1 100644 (file)
@@ -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
index 4d5908d23605a6c071e76b37d746b11338f84259..c82eb8b04bf83f42a4b9bb8edaa6aa3d50e92b37 100644 (file)
                "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 */