generic-phy: Add a list of phy mode
Although this is not supported by the current API,
a phy may support more than one mode.
This is going to be required by the phy of mt8183.
Add a list of phy mode to generic-phy.
Signed-off-by: Alexandre Bailon <abailon@baylibre.com>
diff --git a/include/generic-phy.h b/include/generic-phy.h
index 947c582..9bb7a5f 100644
--- a/include/generic-phy.h
+++ b/include/generic-phy.h
@@ -26,6 +26,26 @@
unsigned long id;
};
+enum phy_mode {
+ PHY_MODE_INVALID,
+ PHY_MODE_USB_HOST,
+ PHY_MODE_USB_HOST_LS,
+ PHY_MODE_USB_HOST_FS,
+ PHY_MODE_USB_HOST_HS,
+ PHY_MODE_USB_HOST_SS,
+ PHY_MODE_USB_DEVICE,
+ PHY_MODE_USB_DEVICE_LS,
+ PHY_MODE_USB_DEVICE_FS,
+ PHY_MODE_USB_DEVICE_HS,
+ PHY_MODE_USB_DEVICE_SS,
+ PHY_MODE_USB_OTG,
+ PHY_MODE_SGMII,
+ PHY_MODE_2500SGMII,
+ PHY_MODE_10GKR,
+ PHY_MODE_UFS_HS_A,
+ PHY_MODE_UFS_HS_B,
+};
+
/*
* struct udevice_ops - set of function pointers for phy operations
* @init: operation to be performed for initializing phy (optional)