Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b658612 authored by Xuguang Yang's avatar Xuguang Yang Committed by Daniel Jacob Chittoor
Browse files

[FP4-306] iris pt lightup, dymamic switch pq_path_is_dsi_hs

parent 0e8f1ddd
Loading
Loading
Loading
Loading
+13 −5
Original line number Diff line number Diff line
@@ -3140,11 +3140,11 @@ int iris_enable(struct dsi_panel *panel, struct dsi_panel_cmd_set *on_cmds)
	int lightup_opt = iris_lightup_opt_get();
	u32 regs[] = {0xf1100808, 0xf1100818, 0xf1100a00, 0xf1100034, 0xf1100204};

	//we use PATH_I2C as the first path for pq update until panel on/off
	pcfg->pq_update_path = PATH_DSI;

	__iris_cont_splash_video_path_check(pcfg);
 
 //set pcfg->pq_update_is_dsi_hs to 1 after panel on/off
  pcfg->pq_update_is_dsi_hs = 1;

	IRIS_LOGI("%s(), lightup opt: 0x%x", __func__, lightup_opt);

	iris_lp_enable_pre();
@@ -3330,8 +3330,16 @@ static int _iris_cont_splash_video_lightup_thread_main(void *data)
	}
	__iris_cont_splash_video_path_check(pcfg);

#if 0
  //we use PATH_I2C as the first path for pq update until panel on/off
  pcfg->light_up_path = PATH_I2C;
  pcfg->pq_update_path = PATH_I2C;
  pcfg->single_ipopt_path = PATH_I2C;
  pcfg->path_backup_need_restore = 1;
#endif

  //set pcfg->pq_update_is_dsi_hs to 0 before panel on/off
  pcfg->pq_update_is_dsi_hs = 0;
 
	IRIS_LOGI("%s(%d) <<<<<<END<<<---", __func__, __LINE__);
	return 0;