board: ls1088aqds: transition to DM_ETH
authorIoana Ciornei <ioana.ciornei@nxp.com>
Fri, 15 May 2020 06:56:49 +0000 (09:56 +0300)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 19 May 2020 03:52:08 +0000 (09:22 +0530)
In case CONFIG_DM_ETH is enabled, no hardcoding is necessary for DPAA2
Ethernet devices. Compile out any unnecessary setup when CONFIG_DM_ETH
is activated.  Also, force the PCI devices to be enumerated at probe
time.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
board/freescale/ls1088a/eth_ls1088aqds.c

index c0bcf7129929d75a6b426ef9d08fef3fa3747135..7456f67f3d609f833c854bd40ab5b739d4b8a1d7 100644 (file)
@@ -24,6 +24,7 @@
 
 #include "ls1088a_qixis.h"
 
 
 #include "ls1088a_qixis.h"
 
+#ifndef CONFIG_DM_ETH
 #ifdef CONFIG_FSL_MC_ENET
 
 #define SFP_TX         0
 #ifdef CONFIG_FSL_MC_ENET
 
 #define SFP_TX         0
@@ -735,6 +736,7 @@ int board_eth_init(bd_t *bis)
        error = pci_eth_init(bis);
        return error;
 }
        error = pci_eth_init(bis);
        return error;
 }
+#endif // !CONFIG_DM_ETH
 
 #if defined(CONFIG_RESET_PHY_R)
 void reset_phy(void)
 
 #if defined(CONFIG_RESET_PHY_R)
 void reset_phy(void)