board/freescale: add the DM_ETH changes for the PPC DPAA platforms
authorMadalin Bucur <madalin.bucur@oss.nxp.com>
Thu, 30 Apr 2020 12:59:58 +0000 (15:59 +0300)
committerPriyanka Jain <priyanka.jain@nxp.com>
Wed, 3 Jun 2020 06:44:28 +0000 (12:14 +0530)
Add the required changes for compiling with DM_ETH on the PPC
DPAA platforms.

Signed-off-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
14 files changed:
arch/powerpc/cpu/mpc85xx/cpu_init.c
board/freescale/b4860qds/b4860qds.c
board/freescale/corenet_ds/corenet_ds.c
board/freescale/ls1043aqds/ls1043aqds.c
board/freescale/p1023rdb/p1023rdb.c
board/freescale/p2041rdb/p2041rdb.c
board/freescale/t102xqds/t102xqds.c
board/freescale/t102xrdb/t102xrdb.c
board/freescale/t1040qds/t1040qds.c
board/freescale/t104xrdb/t104xrdb.c
board/freescale/t208xqds/t208xqds.c
board/freescale/t208xrdb/t208xrdb.c
board/freescale/t4qds/t4240qds.c
board/freescale/t4rdb/t4240rdb.c

index 5a409e7a11c4e5c9e4b65900613ac07b9e147f78..e0f0f7ecda60f2e301a6ecd40590a805513b6c60 100644 (file)
@@ -963,8 +963,10 @@ int cpu_init_r(void)
 #endif
 
 #ifdef CONFIG_FMAN_ENET
+#ifndef CONFIG_DM_ETH
        fman_enet_init();
 #endif
+#endif
 
 #if defined(CONFIG_NXP_ESBC) && defined(CONFIG_FSL_CORENET)
        if (pamu_init() < 0)
index e10f948ae5e8aab5f4cbb9db088c632ccdbaed8a..cc8ff11ba47be54d42225806c25bf771b3a18e64 100644 (file)
@@ -1219,7 +1219,9 @@ int ft_board_setup(void *blob, bd_t *bd)
 #endif
 
 #ifdef CONFIG_SYS_DPAA_FMAN
+#ifndef CONFIG_DM_ETH
        fdt_fixup_fman_ethernet(blob);
+#endif
        fdt_fixup_board_enet(blob);
 #endif
 
index f0c7bed68f0c7550b54805963cf7de04faf7de68..d11c6c02fa5fedc38157dd3f866097bd1f705fee 100644 (file)
@@ -207,7 +207,9 @@ int ft_board_setup(void *blob, bd_t *bd)
        fsl_fdt_fixup_dr_usb(blob, bd);
 
 #ifdef CONFIG_SYS_DPAA_FMAN
+#ifndef CONFIG_DM_ETH
        fdt_fixup_fman_ethernet(blob);
+#endif
        fdt_fixup_board_enet(blob);
 #endif
 
index 6d923cc6e8c6537af27fa63d5d446efecfc7c798..870d0683d68a91e48bac52e5692f592a01f7ba21 100644 (file)
@@ -576,7 +576,9 @@ int ft_board_setup(void *blob, bd_t *bd)
        ft_cpu_setup(blob, bd);
 
 #ifdef CONFIG_SYS_DPAA_FMAN
+#ifndef CONFIG_DM_ETH
        fdt_fixup_fman_ethernet(blob);
+#endif
        fdt_fixup_board_enet(blob);
 #endif
 
index 13df3e86379cb3eb60e02ebbe5ee0dc45a13d7ff..4380ece0984b312aab7269188a754b1f6445806e 100644 (file)
@@ -150,8 +150,11 @@ int ft_board_setup(void *blob, bd_t *bd)
        fsl_fdt_fixup_dr_usb(blob, bd);
 #endif
 
+#ifdef CONFIG_SYS_DPAA_FMAN
+#ifndef CONFIG_DM_ETH
        fdt_fixup_fman_ethernet(blob);
-
+#endif
+#endif
        return 0;
 }
 #endif
index 076e63a35734f7ba7b42950c2c44e9e065ae6c59..4d0ac908a54d5aa846712d82d2159dbab8a3466e 100644 (file)
@@ -237,7 +237,9 @@ int ft_board_setup(void *blob, bd_t *bd)
 
        fdt_fixup_liodn(blob);
 #ifdef CONFIG_SYS_DPAA_FMAN
+#ifndef CONFIG_DM_ETH
        fdt_fixup_fman_ethernet(blob);
+#endif
 #endif
 
        return 0;
index 84db2fa9bcdfccbfdb31f99c7b2e890961ea6366..fd489851db4b6ec0177b32e73dc9d90fb29dd8fb 100644 (file)
@@ -474,7 +474,9 @@ int ft_board_setup(void *blob, bd_t *bd)
 #endif
 
 #ifdef CONFIG_SYS_DPAA_FMAN
+#ifndef CONFIG_DM_ETH
        fdt_fixup_fman_ethernet(blob);
+#endif
        fdt_fixup_board_enet(blob);
 #endif
        fdt_fixup_spi_mux(blob);
index 754fcb0ad55cd61493308cea80d18cd5b6e4d4e8..edf3a33dfb2492c870bfd09f0fd4339f572f9e7b 100644 (file)
@@ -203,7 +203,9 @@ int ft_board_setup(void *blob, bd_t *bd)
        fsl_fdt_fixup_dr_usb(blob, bd);
 
 #ifdef CONFIG_SYS_DPAA_FMAN
+#ifndef CONFIG_DM_ETH
        fdt_fixup_fman_ethernet(blob);
+#endif
        fdt_fixup_board_enet(blob);
 #endif
 
index c166403ba4c71882d9022b94c55dc4720b02a4d5..cf38d843ac4b8502800b2397377e76440e61c3dc 100644 (file)
@@ -278,7 +278,9 @@ int ft_board_setup(void *blob, bd_t *bd)
 #endif
 
 #ifdef CONFIG_SYS_DPAA_FMAN
+#ifndef CONFIG_DM_ETH
        fdt_fixup_fman_ethernet(blob);
+#endif
        fdt_fixup_board_enet(blob);
 #endif
 
index 6a4b35106845a100a6204bf52b4d120bb7ce4ca4..04b23085f83603dac459134daba8786c794cbe46 100644 (file)
@@ -152,7 +152,9 @@ int ft_board_setup(void *blob, bd_t *bd)
 #endif
 
 #ifdef CONFIG_SYS_DPAA_FMAN
+#ifndef CONFIG_DM_ETH
        fdt_fixup_fman_ethernet(blob);
+#endif
 #endif
 
        if (hwconfig("qe-tdm"))
index 4979085e1947e55f81e5948777654113949bb195..4d980e1eefcc38f443a86154ab7f57a0fac08240 100644 (file)
@@ -481,7 +481,9 @@ int ft_board_setup(void *blob, bd_t *bd)
        fsl_fdt_fixup_dr_usb(blob, bd);
 
 #ifdef CONFIG_SYS_DPAA_FMAN
+#ifndef CONFIG_DM_ETH
        fdt_fixup_fman_ethernet(blob);
+#endif
        fdt_fixup_board_enet(blob);
 #endif
 
index 24f0d0764cec3f113ef520d168a449c91715bcf3..5ba1682888c6f5e280e71fc7bce6751b959df71b 100644 (file)
@@ -134,7 +134,9 @@ int ft_board_setup(void *blob, bd_t *bd)
        fsl_fdt_fixup_dr_usb(blob, bd);
 
 #ifdef CONFIG_SYS_DPAA_FMAN
+#ifndef CONFIG_DM_ETH
        fdt_fixup_fman_ethernet(blob);
+#endif
        fdt_fixup_board_enet(blob);
 #endif
 
index 8d1a66f223a2dc48d6b3df747b0b140c521155ea..543a2cb6e2835cae26f3793792993ab3926a9a27 100644 (file)
@@ -736,7 +736,9 @@ int ft_board_setup(void *blob, bd_t *bd)
        fsl_fdt_fixup_dr_usb(blob, bd);
 
 #ifdef CONFIG_SYS_DPAA_FMAN
+#ifndef CONFIG_DM_ETH
        fdt_fixup_fman_ethernet(blob);
+#endif
        fdt_fixup_board_enet(blob);
 #endif
 
index d801f2c7a1b550dad5c993a96c07019f43eac097..c84de554d34afde066c8096879a9a68aa294c2be 100644 (file)
@@ -113,7 +113,9 @@ int ft_board_setup(void *blob, bd_t *bd)
        fsl_fdt_fixup_dr_usb(blob, bd);
 
 #ifdef CONFIG_SYS_DPAA_FMAN
+#ifndef CONFIG_DM_ETH
        fdt_fixup_fman_ethernet(blob);
+#endif
        fdt_fixup_board_enet(blob);
 #endif