]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
layerscape: Disable CONFIG_FMAN_ENET on *aqds* platforms
authorTom Rini <trini@konsulko.com>
Tue, 9 Aug 2022 14:16:22 +0000 (10:16 -0400)
committerTom Rini <trini@konsulko.com>
Sun, 21 Aug 2022 01:18:15 +0000 (21:18 -0400)
The *aqds* platforms have not been migrated to be able to enable
CONFIG_DM_ETH with CONFIG_FMAN_ENET. Disable CONFIG_FMAN_ENET on these
platforms.

Cc: Mingkai Hu <mingkai.hu@nxp.com>
Cc: Rajesh Bhagat <rajesh.bhagat@nxp.com>
Cc: Pramod Kumar <pramod.kumar_1@nxp.com>
Cc: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
23 files changed:
arch/arm/cpu/armv8/fsl-layerscape/fdt.c
board/freescale/ls1043aqds/eth.c
board/freescale/ls1043aqds/ls1043aqds.c
board/freescale/ls1046aqds/eth.c
board/freescale/ls1046aqds/ls1046aqds.c
configs/ls1043aqds_defconfig
configs/ls1043aqds_lpuart_defconfig
configs/ls1043aqds_nand_defconfig
configs/ls1043aqds_nor_ddr3_defconfig
configs/ls1043aqds_qspi_defconfig
configs/ls1043aqds_sdcard_ifc_defconfig
configs/ls1043aqds_sdcard_qspi_defconfig
configs/ls1043aqds_tfa_SECURE_BOOT_defconfig
configs/ls1043aqds_tfa_defconfig
configs/ls1046aqds_SECURE_BOOT_defconfig
configs/ls1046aqds_defconfig
configs/ls1046aqds_lpuart_defconfig
configs/ls1046aqds_nand_defconfig
configs/ls1046aqds_qspi_defconfig
configs/ls1046aqds_sdcard_ifc_defconfig
configs/ls1046aqds_sdcard_qspi_defconfig
configs/ls1046aqds_tfa_SECURE_BOOT_defconfig
configs/ls1046aqds_tfa_defconfig

index 2fa7ebf163916a25881c4ba8219342e9525664f8..427de1cb339d30fbbd8fe0a84cd5beee8479b786 100644 (file)
@@ -671,7 +671,7 @@ void ft_cpu_setup(void *blob, struct bd_info *bd)
                               "clock-frequency", get_qman_freq(), 1);
 #endif
 
-#ifdef CONFIG_SYS_DPAA_FMAN
+#ifdef CONFIG_FMAN_ENET
        fdt_fixup_fman_firmware(blob);
 #endif
 #ifdef CONFIG_FSL_PFE
index e156ba010451070c9774096b91ebc50967196f8e..7bfbacde4fbd680e413080b5e180c16a04b68795 100644 (file)
@@ -30,8 +30,6 @@
 #define EMI1_SLOT4     5
 #define EMI2           6
 
-static int mdio_mux[NUM_FM_PORTS];
-
 static const char * const mdio_names[] = {
        "LS1043AQDS_MDIO_RGMII1",
        "LS1043AQDS_MDIO_RGMII2",
@@ -43,7 +41,11 @@ static const char * const mdio_names[] = {
 };
 
 /* Map SerDes1 4 lanes to default slot, will be initialized dynamically */
+#ifdef CONFIG_FMAN_ENET
+static int mdio_mux[NUM_FM_PORTS];
+
 static u8 lane_to_slot[] = {1, 2, 3, 4};
+#endif
 
 static const char *ls1043aqds_mdio_name_for_muxval(u8 muxval)
 {
@@ -75,6 +77,7 @@ struct mii_dev *mii_dev_for_muxval(u8 muxval)
        return bus;
 }
 
+#ifdef CONFIG_FMAN_ENET
 struct ls1043aqds_mdio {
        u8 muxval;
        struct mii_dev *realbus;
@@ -296,7 +299,6 @@ void fdt_fixup_board_enet(void *fdt)
 
 int board_eth_init(struct bd_info *bis)
 {
-#ifdef CONFIG_FMAN_ENET
        int i, idx, lane, slot, interface;
        struct memac_mdio_info dtsec_mdio_info;
        struct memac_mdio_info tgec_mdio_info;
@@ -493,7 +495,7 @@ int board_eth_init(struct bd_info *bis)
        }
 
        cpu_eth_init(bis);
-#endif /* CONFIG_FMAN_ENET */
 
        return pci_eth_init(bis);
 }
+#endif /* CONFIG_FMAN_ENET */
index 13359f947bb56a83562166a804b0f944a8f81b47..7ac2c1ae901d9fe57eb68b9684cce0bb9e498c8d 100644 (file)
@@ -556,10 +556,7 @@ int ft_board_setup(void *blob, struct bd_info *bd)
        fdt_fixup_memory_banks(blob, base, size, 2);
        ft_cpu_setup(blob, bd);
 
-#ifdef CONFIG_SYS_DPAA_FMAN
-#ifndef CONFIG_DM_ETH
-       fdt_fixup_fman_ethernet(blob);
-#endif
+#ifdef CONFIG_FMAN_ENET
        fdt_fixup_board_enet(blob);
 #endif
 
index 8233f5461ee3adf9d74882f3282713f4662d1f61..13207a1a37d569b8e7bdde8c848aa9077263a8c9 100644 (file)
@@ -27,8 +27,6 @@
 #define EMI1_SLOT2     3
 #define EMI1_SLOT4     4
 
-static int mdio_mux[NUM_FM_PORTS];
-
 static const char * const mdio_names[] = {
        "LS1046AQDS_MDIO_RGMII1",
        "LS1046AQDS_MDIO_RGMII2",
@@ -39,7 +37,11 @@ static const char * const mdio_names[] = {
 };
 
 /* Map SerDes 1 & 2 lanes to default slot. */
+#ifdef CONFIG_FMAN_ENET
+static int mdio_mux[NUM_FM_PORTS];
+
 static u8 lane_to_slot[] = {1, 1, 1, 1, 0, 4, 0 , 0};
+#endif
 
 static const char *ls1046aqds_mdio_name_for_muxval(u8 muxval)
 {
@@ -71,6 +73,7 @@ struct mii_dev *mii_dev_for_muxval(u8 muxval)
        return bus;
 }
 
+#ifdef CONFIG_FMAN_ENET
 struct ls1046aqds_mdio {
        u8 muxval;
        struct mii_dev *realbus;
@@ -263,7 +266,6 @@ void fdt_fixup_board_enet(void *fdt)
 
 int board_eth_init(struct bd_info *bis)
 {
-#ifdef CONFIG_FMAN_ENET
        int i, idx, lane, slot, interface;
        struct memac_mdio_info dtsec_mdio_info;
        struct ccsr_gur *gur = (void *)(CONFIG_SYS_FSL_GUTS_ADDR);
@@ -423,7 +425,7 @@ int board_eth_init(struct bd_info *bis)
        }
 
        cpu_eth_init(bis);
-#endif /* CONFIG_FMAN_ENET */
 
        return pci_eth_init(bis);
 }
+#endif /* CONFIG_FMAN_ENET */
index e5b5441e2c3fd1901ee147da016916ec6fc44ea6..aa6e30e6b2a6da648255e55163779785b32a5557 100644 (file)
@@ -439,10 +439,7 @@ int ft_board_setup(void *blob, struct bd_info *bd)
        fdt_fixup_memory_banks(blob, base, size, 2);
        ft_cpu_setup(blob, bd);
 
-#ifdef CONFIG_SYS_DPAA_FMAN
-#ifndef CONFIG_DM_ETH
-       fdt_fixup_fman_ethernet(blob);
-#endif
+#ifdef CONFIG_FMAN_ENET
        fdt_fixup_board_enet(blob);
 #endif
 
index d7ff7e2970fb72df42215069680032f9f7230e3a..ea95a68be2591175a17688dc75375152b425259e 100644 (file)
@@ -95,7 +95,6 @@ CONFIG_PHYLIB_10G=y
 CONFIG_PHY_REALTEK=y
 CONFIG_PHY_VITESSE=y
 CONFIG_E1000=y
-CONFIG_FMAN_ENET=y
 CONFIG_SYS_FMAN_FW_ADDR=0x60900000
 CONFIG_NVME_PCI=y
 CONFIG_PCI=y
index 462fad1cd48fb76711cd747984b2d26514d337b5..84f65780077d6ca2922ba38865ebfd78baf81cb8 100644 (file)
@@ -95,7 +95,6 @@ CONFIG_PHYLIB_10G=y
 CONFIG_PHY_REALTEK=y
 CONFIG_PHY_VITESSE=y
 CONFIG_E1000=y
-CONFIG_FMAN_ENET=y
 CONFIG_SYS_FMAN_FW_ADDR=0x60900000
 CONFIG_NVME_PCI=y
 CONFIG_PCI=y
index 63287ca533b3f6f7fbaeaaaa50a52ceb22531543..1b49f53abed9096024dae36b130df6f150d64d66 100644 (file)
@@ -125,7 +125,6 @@ CONFIG_PHYLIB_10G=y
 CONFIG_PHY_REALTEK=y
 CONFIG_PHY_VITESSE=y
 CONFIG_E1000=y
-CONFIG_FMAN_ENET=y
 CONFIG_SYS_FMAN_FW_ADDR=0x900000
 CONFIG_NVME_PCI=y
 CONFIG_PCI=y
index fc72f4cdaf649c96778beae40b5f4caa74f02e75..6a04b063aa83c3c61816e6e1fddfd0b1e8ddd5af 100644 (file)
@@ -96,7 +96,6 @@ CONFIG_PHYLIB_10G=y
 CONFIG_PHY_REALTEK=y
 CONFIG_PHY_VITESSE=y
 CONFIG_E1000=y
-CONFIG_FMAN_ENET=y
 CONFIG_SYS_FMAN_FW_ADDR=0x60900000
 CONFIG_NVME_PCI=y
 CONFIG_PCI=y
index 30cc15a12f3d5ed68cfda4161ccb32a349dee2b9..0ef4fe3db3793e5de87aa24e92dce9321469b221 100644 (file)
@@ -85,7 +85,6 @@ CONFIG_PHYLIB_10G=y
 CONFIG_PHY_REALTEK=y
 CONFIG_PHY_VITESSE=y
 CONFIG_E1000=y
-CONFIG_FMAN_ENET=y
 CONFIG_SYS_FMAN_FW_ADDR=0x40900000
 CONFIG_NVME_PCI=y
 CONFIG_PCI=y
index 172ab723c61b6cf98297ae000f5ce89d5c224da8..cf9fd13777c6cedc61d64a0dcb9b82dfb7732d7b 100644 (file)
@@ -122,7 +122,6 @@ CONFIG_PHYLIB_10G=y
 CONFIG_PHY_REALTEK=y
 CONFIG_PHY_VITESSE=y
 CONFIG_E1000=y
-CONFIG_FMAN_ENET=y
 CONFIG_SYS_FMAN_FW_ADDR=0x900000
 CONFIG_NVME_PCI=y
 CONFIG_PCI=y
index 447a51513fe3be73e08f72816c2054fbb1d8ef29..cacd85e4cf5c61fe9eed878002d69dfb2be97c19 100644 (file)
@@ -110,7 +110,6 @@ CONFIG_PHYLIB_10G=y
 CONFIG_PHY_REALTEK=y
 CONFIG_PHY_VITESSE=y
 CONFIG_E1000=y
-CONFIG_FMAN_ENET=y
 CONFIG_SYS_FMAN_FW_ADDR=0x900000
 CONFIG_NVME_PCI=y
 CONFIG_PCI=y
index b414d400e6a1e8d0fcefe4d816fd2fd8ffa668f1..e057464544956658f6f9f300b37c0136977b3c08 100644 (file)
@@ -94,7 +94,6 @@ CONFIG_PHYLIB_10G=y
 CONFIG_PHY_REALTEK=y
 CONFIG_PHY_VITESSE=y
 CONFIG_E1000=y
-CONFIG_FMAN_ENET=y
 CONFIG_SYS_FMAN_FW_ADDR=0x900000
 CONFIG_NVME_PCI=y
 CONFIG_PCI=y
index 9bac24a27b30ee66ad75a9bd55741ea48a5e9e30..c67876b9520da9dc3f270176df4c7c6f7d22a58b 100644 (file)
@@ -103,7 +103,6 @@ CONFIG_PHYLIB_10G=y
 CONFIG_PHY_REALTEK=y
 CONFIG_PHY_VITESSE=y
 CONFIG_E1000=y
-CONFIG_FMAN_ENET=y
 CONFIG_SYS_FMAN_FW_ADDR=0x900000
 CONFIG_NVME_PCI=y
 CONFIG_PCI=y
index 3a71185b865ae114f5956d68b82f39a0ffa7c8b7..7a0b786be75d3d259556cae41f66acc33cd51ee8 100644 (file)
@@ -93,7 +93,6 @@ CONFIG_PHYLIB_10G=y
 CONFIG_PHY_REALTEK=y
 CONFIG_PHY_VITESSE=y
 CONFIG_E1000=y
-CONFIG_FMAN_ENET=y
 CONFIG_SYS_FMAN_FW_ADDR=0x60900000
 CONFIG_NVME_PCI=y
 CONFIG_PCI=y
index 35abfb323f653b028487b3f67507467cea6cc999..d582f61d4eeec6a2c0505f802817ac6d8ec20783 100644 (file)
@@ -96,7 +96,6 @@ CONFIG_PHYLIB_10G=y
 CONFIG_PHY_REALTEK=y
 CONFIG_PHY_VITESSE=y
 CONFIG_E1000=y
-CONFIG_FMAN_ENET=y
 CONFIG_SYS_FMAN_FW_ADDR=0x60900000
 CONFIG_NVME_PCI=y
 CONFIG_PCI=y
index 5316c80c83d2a9bfbf31fda5800c8b456c3dd1f8..9731b85b0c4d88689d3bd789e6aadb4457009318 100644 (file)
@@ -96,7 +96,6 @@ CONFIG_PHYLIB_10G=y
 CONFIG_PHY_REALTEK=y
 CONFIG_PHY_VITESSE=y
 CONFIG_E1000=y
-CONFIG_FMAN_ENET=y
 CONFIG_SYS_FMAN_FW_ADDR=0x60900000
 CONFIG_NVME_PCI=y
 CONFIG_PCI=y
index 8550190d22952ef2ffa33057fe1feb0d89bd9be8..bd58d3a90f7495c1bf6ad9654900b67f4098d404 100644 (file)
@@ -124,7 +124,6 @@ CONFIG_PHYLIB_10G=y
 CONFIG_PHY_REALTEK=y
 CONFIG_PHY_VITESSE=y
 CONFIG_E1000=y
-CONFIG_FMAN_ENET=y
 CONFIG_SYS_FMAN_FW_ADDR=0x900000
 CONFIG_NVME_PCI=y
 CONFIG_PCI=y
index 049cf1e56f981e02adecc78a657cf1bb82075165..0dca44a8b0bde8ca4f1e5199d2179212b3bf337a 100644 (file)
@@ -86,7 +86,6 @@ CONFIG_PHYLIB_10G=y
 CONFIG_PHY_REALTEK=y
 CONFIG_PHY_VITESSE=y
 CONFIG_E1000=y
-CONFIG_FMAN_ENET=y
 CONFIG_SYS_FMAN_FW_ADDR=0x40900000
 CONFIG_NVME_PCI=y
 CONFIG_PCI=y
index 6cdc78da3f0f2ef56b980a6d1bb0d25f60b21b2f..d023f534210cfe8fb60c1b85af3dc506a25e2718 100644 (file)
@@ -124,7 +124,6 @@ CONFIG_PHYLIB_10G=y
 CONFIG_PHY_REALTEK=y
 CONFIG_PHY_VITESSE=y
 CONFIG_E1000=y
-CONFIG_FMAN_ENET=y
 CONFIG_SYS_FMAN_FW_ADDR=0x900000
 CONFIG_NVME_PCI=y
 CONFIG_PCI=y
index 68aae882a8078d2f2e119ef56c43782dd99e67b6..aed01d44f1c4543f69fba91b023516be377c3ca1 100644 (file)
@@ -112,7 +112,6 @@ CONFIG_PHYLIB_10G=y
 CONFIG_PHY_REALTEK=y
 CONFIG_PHY_VITESSE=y
 CONFIG_E1000=y
-CONFIG_FMAN_ENET=y
 CONFIG_SYS_FMAN_FW_ADDR=0x900000
 CONFIG_NVME_PCI=y
 CONFIG_PCI=y
index 7efa5cbebd0724a407d05585471c954d5efb5533..e8676e2ca1eac4212bcecfce22dadf91d23533f6 100644 (file)
@@ -94,7 +94,6 @@ CONFIG_PHYLIB_10G=y
 CONFIG_PHY_REALTEK=y
 CONFIG_PHY_VITESSE=y
 CONFIG_E1000=y
-CONFIG_FMAN_ENET=y
 CONFIG_SYS_FMAN_FW_ADDR=0x900000
 CONFIG_NVME_PCI=y
 CONFIG_PCI=y
index 3846b95e71d57f0aa96699dd4d6b8f84173aeb93..8faeeb4773ea65501a2e7dbeda1affda61db6e74 100644 (file)
@@ -104,7 +104,6 @@ CONFIG_PHYLIB_10G=y
 CONFIG_PHY_REALTEK=y
 CONFIG_PHY_VITESSE=y
 CONFIG_E1000=y
-CONFIG_FMAN_ENET=y
 CONFIG_SYS_FMAN_FW_ADDR=0x900000
 CONFIG_NVME_PCI=y
 CONFIG_PCI=y