dev: gcdb: add support to specify the DSI PLL from fastboot oem
For single/split DSI cases, depending on the DSI PHY version, there
is support to select DSI PLL0/PLL1 to drive the DSI controller/PHY.
Add support to specify this using fastboot oem command.
Example:
fastboot oem select-display-panel jdi_1080p_video:pll0
fastboot oem select-display-panel jdi_1080p_video:pll0:disable
fastboot oem select-display-panel jdi_1080p_video:pll1#sim-swte:disable
fastboot oem select-display-panel jdi_1080p_video:skip:pll1
Change-Id: Ie74710c3047ccca4addd9c00611682b726befb76
diff --git a/dev/gcdb/display/gcdb_display.h b/dev/gcdb/display/gcdb_display.h
index 0f38d5e..088aa05 100755
--- a/dev/gcdb/display/gcdb_display.h
+++ b/dev/gcdb/display/gcdb_display.h
@@ -64,6 +64,7 @@
struct msm_panel_info *pinfo, struct mdss_dsi_phy_ctrl *phy_db);
void set_panel_cmd_string(const char *panel_name);
struct oem_panel_data mdss_dsi_get_oem_data(void);
+struct oem_panel_data *mdss_dsi_get_oem_data_ptr(void);
struct panel_struct mdss_dsi_get_panel_data(void);
struct oem_panel_data {
@@ -73,6 +74,13 @@
bool skip;
uint32_t sim_mode;
char dsi_config[DSI_CFG_SIZE];
+ uint32_t dsi_pll_src;
+};
+
+enum {
+ DSI_PLL_DEFAULT,
+ DSI_PLL0,
+ DSI_PLL1,
};
#endif /*_GCDB_DISPLAY_H_ */