diff options
author | Tom Rini | 2022-08-02 07:33:39 -0400 |
---|---|---|
committer | Tom Rini | 2022-08-20 21:18:15 -0400 |
commit | a34f971d97defcfa7daaa4971795827956a3a27d (patch) | |
tree | b31376af1a31ab93a60a5c21765eb5b2f6f7d2cc /board/freescale | |
parent | 0040ed7e0c7b655c7e9e60b12a203eb1463ceffe (diff) |
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>
Diffstat (limited to 'board/freescale')
-rw-r--r-- | board/freescale/mpc8548cds/mpc8548cds.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/board/freescale/mpc8548cds/mpc8548cds.c b/board/freescale/mpc8548cds/mpc8548cds.c index dac821f1acc..8886d8be335 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 |