[PATCH 13/21] mpc8548cds: Guard old ethernet code with !DM_ETH
Tom Rini
trini at konsulko.com
Tue Aug 2 13:33:39 CEST 2022
There is some code here for the legacy non-DM_ETH case, add a guard
around it.
Cc: Priyanka Jain <priyanka.jain at nxp.com>
Cc: Peng Fan <peng.fan at nxp.com>
Signed-off-by: Tom Rini <trini at konsulko.com>
---
board/freescale/mpc8548cds/mpc8548cds.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/board/freescale/mpc8548cds/mpc8548cds.c b/board/freescale/mpc8548cds/mpc8548cds.c
index cfb5b0b38bbe..5cb16b5082b5 100644
--- a/board/freescale/mpc8548cds/mpc8548cds.c
+++ b/board/freescale/mpc8548cds/mpc8548cds.c
@@ -168,7 +168,8 @@ void lbc_sdram_init(void)
#endif /* enable SDRAM init */
}
-void configure_rgmii(void)
+#ifndef CONFIG_DM_ETH
+static void configure_rgmii(void)
{
unsigned short temp;
@@ -247,3 +248,4 @@ int board_eth_init(struct bd_info *bis)
return pci_eth_init(bis);
}
+#endif
--
2.25.1
More information about the U-Boot
mailing list