summaryrefslogtreecommitdiff
path: root/include/mipi_dsi.h
diff options
context:
space:
mode:
authorNeil Armstrong <narmstrong@baylibre.com>2020-10-02 11:16:08 +0200
committerAnatolij Gustschin <agust@denx.de>2020-10-18 10:35:06 +0200
commitb53c122631d3e88280909c04102d7859c311cdfe (patch)
treee9b782015c9dd85a26633fcd7abfbbdb82b38e7c /include/mipi_dsi.h
parent3d19a7ee8ca7af01f75ff24622ea3c9840cd5bca (diff)
downloadu-boot-b53c122631d3e88280909c04102d7859c311cdfe.tar.gz
u-boot-b53c122631d3e88280909c04102d7859c311cdfe.tar.bz2
u-boot-b53c122631d3e88280909c04102d7859c311cdfe.zip
video: dw-mipi-dsi: driver-specific configuration of phy timings
The timing values for dw-dsi are often dependent on the used display and according to Philippe Cornu will most likely also depend on the used phy technology in the soc-specific implementation. To solve this and allow specific implementations to define them as needed add a new get_timing callback to phy_ops and call this from the dphy_timing function to retrieve the necessary values for the specific mode. This is based on the Linux commit [1] and adapted to the U-Boot driver. [1] 25ed8aeb9c39 ("drm/bridge/synopsys: dsi: driver-specific configuration of phy timings") Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Diffstat (limited to 'include/mipi_dsi.h')
-rw-r--r--include/mipi_dsi.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/mipi_dsi.h b/include/mipi_dsi.h
index c8a7d3daef..55c7ab3328 100644
--- a/include/mipi_dsi.h
+++ b/include/mipi_dsi.h
@@ -97,6 +97,20 @@ struct mipi_dsi_host_ops {
};
/**
+ * struct mipi_dsi_phy_timing - DSI host phy timings
+ * @data_hs2lp: High Speed to Low Speed Data Transition Time
+ * @data_lp2hs: Low Speed to High Speed Data Transition Time
+ * @clk_hs2lp: High Speed to Low Speed Clock Transition Time
+ * @clk_lp2hs: Low Speed to High Speed Clock Transition Time
+ */
+struct mipi_dsi_phy_timing {
+ u16 data_hs2lp;
+ u16 data_lp2hs;
+ u16 clk_hs2lp;
+ u16 clk_lp2hs;
+};
+
+/**
* struct mipi_dsi_phy_ops - DSI host physical operations
* @init: initialized host physical part
* @get_lane_mbps: get lane bitrate per lane (mbps)
@@ -107,6 +121,8 @@ struct mipi_dsi_phy_ops {
int (*get_lane_mbps)(void *priv_data, struct display_timing *timings,
u32 lanes, u32 format, unsigned int *lane_mbps);
void (*post_set_mode)(void *priv_data, unsigned long mode_flags);
+ int (*get_timing)(void *priv_data, unsigned int lane_mbps,
+ struct mipi_dsi_phy_timing *timing);
};
/**