|
@@ -62,6 +62,12 @@ enum dsi_dms_mode {
|
|
|
DSI_DMS_MODE_RES_SWITCH_IMMEDIATE,
|
|
|
};
|
|
|
|
|
|
+enum dsi_panel_physical_type {
|
|
|
+ DSI_DISPLAY_PANEL_TYPE_LCD = 0,
|
|
|
+ DSI_DISPLAY_PANEL_TYPE_OLED,
|
|
|
+ DSI_DISPLAY_PANEL_TYPE_MAX,
|
|
|
+};
|
|
|
+
|
|
|
struct dsi_dfps_capabilities {
|
|
|
enum dsi_dfps_type type;
|
|
|
u32 min_refresh_rate;
|
|
@@ -199,6 +205,7 @@ struct dsi_panel {
|
|
|
|
|
|
int panel_test_gpio;
|
|
|
int power_mode;
|
|
|
+ enum dsi_panel_physical_type panel_type;
|
|
|
};
|
|
|
|
|
|
static inline bool dsi_panel_ulps_feature_enabled(struct dsi_panel *panel)
|
|
@@ -221,6 +228,11 @@ static inline void dsi_panel_release_panel_lock(struct dsi_panel *panel)
|
|
|
mutex_unlock(&panel->panel_lock);
|
|
|
}
|
|
|
|
|
|
+static inline bool dsi_panel_is_type_oled(struct dsi_panel *panel)
|
|
|
+{
|
|
|
+ return (panel->panel_type == DSI_DISPLAY_PANEL_TYPE_OLED);
|
|
|
+}
|
|
|
+
|
|
|
struct dsi_panel *dsi_panel_get(struct device *parent,
|
|
|
struct device_node *of_node,
|
|
|
struct device_node *parser_node,
|