aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/phy/phy.h
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@bootlin.com>2018-12-07 14:55:30 +0100
committerKishon Vijay Abraham I <kishon@ti.com>2018-12-12 10:01:50 +0530
commit2ed869990e14bc5528aeb00c45e42793c5406637 (patch)
tree4231323abad1a1984b6144b046ab88ed505bf16e /include/linux/phy/phy.h
parentphy: Add configuration interface (diff)
downloadwireguard-linux-2ed869990e14bc5528aeb00c45e42793c5406637.tar.xz
wireguard-linux-2ed869990e14bc5528aeb00c45e42793c5406637.zip
phy: Add MIPI D-PHY configuration options
Now that we have some infrastructure for it, allow the MIPI D-PHY phy's to be configured through the generic functions through a custom structure added to the generic union. The parameters added here are the ones defined in the MIPI D-PHY spec, plus the number of lanes in use. The current set of parameters should cover all the potential users. Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'include/linux/phy/phy.h')
-rw-r--r--include/linux/phy/phy.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h
index 04476c026b5a..1fdefadf150a 100644
--- a/include/linux/phy/phy.h
+++ b/include/linux/phy/phy.h
@@ -20,6 +20,8 @@
#include <linux/pm_runtime.h>
#include <linux/regulator/consumer.h>
+#include <linux/phy/phy-mipi-dphy.h>
+
struct phy;
enum phy_mode {
@@ -44,8 +46,12 @@ enum phy_mode {
/**
* union phy_configure_opts - Opaque generic phy configuration
+ *
+ * @mipi_dphy: Configuration set applicable for phys supporting
+ * the MIPI_DPHY phy mode.
*/
union phy_configure_opts {
+ struct phy_configure_opts_mipi_dphy mipi_dphy;
};
/**