diff options
author | Simon Glass <sjg@chromium.org> | 2023-02-22 09:34:16 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-03-03 09:49:02 -0500 |
commit | 06a1edda6cb35bc22f5aeed6a3d424bdbbc61b2d (patch) | |
tree | a5f8bf2fa0eb8b1d8b600534e14fc385982fe2c6 /arch/arm/cpu | |
parent | 7ffbb5b65921181774d29e5f3a2b35e01426c414 (diff) | |
download | u-boot-06a1edda6cb35bc22f5aeed6a3d424bdbbc61b2d.zip u-boot-06a1edda6cb35bc22f5aeed6a3d424bdbbc61b2d.tar.gz u-boot-06a1edda6cb35bc22f5aeed6a3d424bdbbc61b2d.tar.bz2 |
freescale: Drop old pre-DM_ETH code
This is used by ls1021atwr_sdcard_ifc_SECURE_BOOT with split config, but
is not needed anymore, since Ethernet migration is complete. Drop it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r-- | arch/arm/cpu/armv7/ls102xa/fdt.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/arm/cpu/armv7/ls102xa/fdt.c b/arch/arm/cpu/armv7/ls102xa/fdt.c index 599b7e1..a5c5c78 100644 --- a/arch/arm/cpu/armv7/ls102xa/fdt.c +++ b/arch/arm/cpu/armv7/ls102xa/fdt.c @@ -25,11 +25,7 @@ DECLARE_GLOBAL_DATA_PTR; void ft_fixup_enet_phy_connect_type(void *fdt) { -#ifdef CONFIG_DM_ETH struct udevice *dev; -#else - struct eth_device *dev; -#endif struct tsec_private *priv; const char *enet_path, *phy_path; char enet[16]; @@ -37,12 +33,8 @@ void ft_fixup_enet_phy_connect_type(void *fdt) int phy_node; int i = 0; uint32_t ph; -#ifdef CONFIG_DM_ETH char *name[3] = { "ethernet@2d10000", "ethernet@2d50000", "ethernet@2d90000" }; -#else - char *name[3] = { "eTSEC1", "eTSEC2", "eTSEC3" }; -#endif for (; i < ARRAY_SIZE(name); i++) { dev = eth_get_dev_by_name(name[i]); @@ -53,11 +45,7 @@ void ft_fixup_enet_phy_connect_type(void *fdt) continue; } -#ifdef CONFIG_DM_ETH priv = dev_get_priv(dev); -#else - priv = dev->priv; -#endif if (priv->flags & TSEC_SGMII) continue; |