aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-08-02 07:33:39 -0400
committerTom Rini <trini@konsulko.com>2022-08-20 19:16:43 -0400
commit203de2db9c7290ef24ed2a79f480f9ce951a531e (patch)
tree6a389c3a8be464412d5c67864e060b4e72fa4fa5
parent40a69a2fea62bc0764dd7f1de2b77c2e17c223af (diff)
downloadu-boot-203de2db9c7290ef24ed2a79f480f9ce951a531e.zip
u-boot-203de2db9c7290ef24ed2a79f480f9ce951a531e.tar.gz
u-boot-203de2db9c7290ef24ed2a79f480f9ce951a531e.tar.bz2
mpc8548cds: Guard old ethernet code with !DM_ETH
There is some code here for the legacy non-DM_ETH case, add a guard around it. Cc: Priyanka Jain <priyanka.jain@nxp.com> Cc: Peng Fan <peng.fan@nxp.com> Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r--board/freescale/mpc8548cds/mpc8548cds.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/board/freescale/mpc8548cds/mpc8548cds.c b/board/freescale/mpc8548cds/mpc8548cds.c
index dac821f..8886d8b 100644
--- a/board/freescale/mpc8548cds/mpc8548cds.c
+++ b/board/freescale/mpc8548cds/mpc8548cds.c
@@ -169,7 +169,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;
@@ -248,3 +249,4 @@ int board_eth_init(struct bd_info *bis)
return pci_eth_init(bis);
}
+#endif