/***************************************** @brief process mipi sequence table @param table: lcd init code, count: sizeof(table), lcd_panel: lcd type mfd:mipi need ,tp: process mipi buffer. @return none ******************************************/ void process_mipi_table(struct msm_fb_data_type *mfd,struct dsi_buf *tp, struct sequence *table, size_t count, lcd_panel_type lcd_panel) { unsigned int i = 0; uint32 reg = 0; uint32 value = 0; uint32 time = 0; for (i = 0; i < count; i++) { reg = table[i].reg; value = table[i].value; time = table[i].time; switch(lcd_panel) { case MIPI_RSP61408_CHIMEI_WVGA: case MIPI_RSP61408_BYD_WVGA: case MIPI_RSP61408_TRULY_WVGA: case MIPI_HX8357C_TIANMA_IPS_HVGA: case MIPI_HX8357C_CHIMEI_HVGA: case MIPI_HX8357C_TIANMA_HVGA: case MIPI_HX8369A_TIANMA_WVGA: case MIPI_HX8357C_CHIMEI_IPS_HVGA: mipi_lcd_register_write(mfd,tp,reg,value,0); break; default: break; } if (time != 0) { LCD_MDELAY(time); } } }
/***************************************** @brief process mipi sequence table @param table: lcd init code, count: sizeof(table), lcd_panel: lcd type mfd:mipi need ,tp: process mipi buffer. @return none ******************************************/ void process_mipi_table(struct msm_fb_data_type *mfd,struct dsi_buf *tp, const struct sequence *table, size_t count, lcd_panel_type lcd_panel) { unsigned int i = 0; uint32 reg = 0; uint32 value = 0; uint32 time = 0; for (i = 0; i < count; i++) { reg = table[i].reg; value = table[i].value; time = table[i].time; mipi_lcd_register_write(mfd,tp,reg,value,0); if (time != 0) { LCD_MDELAY(time); } } }