]> Git Repo - u-boot.git/blobdiff - drivers/phy/phy-uclass.c
phy: sun4i-usb: Remove a couple of debug messages
[u-boot.git] / drivers / phy / phy-uclass.c
index ef03e3a5025f351cad6a199b65c9728b084f53eb..59683a080cd7fa226060463a8bdedf380c9fab8e 100644 (file)
@@ -4,6 +4,8 @@
  * Written by Jean-Jacques Hiblot  <[email protected]>
  */
 
+#define LOG_CATEGORY UCLASS_PHY
+
 #include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
@@ -204,6 +206,17 @@ int generic_phy_power_off(struct phy *phy)
        return ret;
 }
 
+int generic_phy_configure(struct phy *phy, void *params)
+{
+       struct phy_ops const *ops;
+
+       if (!generic_phy_valid(phy))
+               return 0;
+       ops = phy_dev_ops(phy->dev);
+
+       return ops->configure ? ops->configure(phy, params) : 0;
+}
+
 int generic_phy_get_bulk(struct udevice *dev, struct phy_bulk *bulk)
 {
        int i, ret, count;
This page took 0.027962 seconds and 4 git commands to generate.