malta: Rename CONFIG_MALTA to CONFIG_TARGET_MALTA
[platform/kernel/u-boot.git] / include / mipi_dsi.h
index c8a7d3d..4ca05f7 100644 (file)
@@ -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,9 @@ 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);
+       void (*get_esc_clk_rate)(void *priv_data, unsigned int *esc_clk_rate);
 };
 
 /**