arm: Add support of updating dts before fix-up
[oweals/u-boot.git] / arch / arm / lib / bootm-fdt.c
index eaa817b9ac8ef08877cc1652a5fc1ee1e4aefecf..fcc2a0e2146eb7312f3f15d993c68b3bb465ae7e 100644 (file)
 
 DECLARE_GLOBAL_DATA_PTR;
 
+#ifdef CONFIG_FMAN_ENET
+__weak int fdt_update_ethernet_dt(void *blob)
+{
+       return 0;
+}
+#endif
+
 int arch_fixup_fdt(void *blob)
 {
        int ret = 0;
@@ -64,5 +71,10 @@ int arch_fixup_fdt(void *blob)
 #endif
 #endif
 
+#ifdef CONFIG_FMAN_ENET
+       ret = fdt_update_ethernet_dt(blob);
+       if (ret)
+               return ret;
+#endif
        return 0;
 }