]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/miiphyutil.c
common: do not compile common fastboot code when building the SPL
[people/ms/u-boot.git] / common / miiphyutil.c
index aca18db52a008baaf9b393625f7bfebe1e2abf9a..8eb0f761bb0164de32d4a47f69a8b19dd9f98756 100644 (file)
@@ -107,6 +107,18 @@ int mdio_register(struct mii_dev *bus)
        return 0;
 }
 
+int mdio_register_seq(struct mii_dev *bus, int seq)
+{
+       int ret;
+
+       /* Setup a unique name for each mdio bus */
+       ret = snprintf(bus->name, MDIO_NAME_LEN, "eth%d", seq);
+       if (ret < 0)
+               return ret;
+
+       return mdio_register(bus);
+}
+
 int mdio_unregister(struct mii_dev *bus)
 {
        if (!bus)