mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
display/dsi:add new lcd backlight align type for bit11_4
display/backlight: add new lcd backlight align type for bit11_4 Change-Id: I4f17cd5bc0668d49c998d322abd44908c4be1dce Signed-off-by: hujing3 <[email protected]> Reviewed-on: https://gerrit.mot.com/2368834 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wang Wang <[email protected]> Submit-Approved: Jira Key
This commit is contained in:
parent
6416a48b6b
commit
031a6e371f
2 changed files with 9 additions and 4 deletions
|
|
@ -715,10 +715,14 @@ static int dsi_panel_update_backlight(struct dsi_panel *panel,
|
|||
dsi->mode_flags |= MIPI_DSI_MODE_LPM;
|
||||
}
|
||||
|
||||
if (panel->bl_config.bl_level_align == DSI_BACKLIGHT_LEVEL_ALIGN_BIT15_8_BIT3_0){
|
||||
DSI_ERR("dsi_panel_update_backlight cqh bl_level_align == DSI_BACKLIGHT_LEVEL_ALIGN_BIT15_8_BIT3_0\n");
|
||||
bl_lvl = ((((bl_lvl >> 3) & 0xff) << 8) | ((bl_lvl << 1) & 0x0e));
|
||||
}
|
||||
if (panel->bl_config.bl_level_align == DSI_BACKLIGHT_LEVEL_ALIGN_BIT15_8_BIT3_0){
|
||||
DSI_ERR("dsi_panel_update_backlight cqh bl_level_align == DSI_BACKLIGHT_LEVEL_ALIGN_BIT15_8_BIT3_0\n");
|
||||
bl_lvl = ((((bl_lvl >> 3) & 0xff) << 8) | ((bl_lvl << 1) & 0x0e));
|
||||
}
|
||||
else if (DSI_BACKLIGHT_LEVEL_ALIGN_BIT11_4_BYTE0 == panel->bl_config.bl_level_align) {
|
||||
bl_lvl = (((bl_lvl & 0xff0) << 4) | (bl_lvl & 0x0f));
|
||||
DSI_DEBUG("case BIT11_4, trans bl_lvl=0x%04x\n", bl_lvl);
|
||||
}
|
||||
|
||||
if (panel->bl_config.bl_inverted_dbv)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -95,6 +95,7 @@ enum bl_update_flag {
|
|||
enum dsi_backlight_level_align_type {
|
||||
DSI_BACKLIGHT_LEVEL_ALIGN_NORMAL = 0,
|
||||
DSI_BACKLIGHT_LEVEL_ALIGN_BIT15_8_BIT3_0 = 1,
|
||||
DSI_BACKLIGHT_LEVEL_ALIGN_BIT11_4_BYTE0 = 2,
|
||||
};
|
||||
|
||||
enum {
|
||||
|
|
|
|||
Loading…
Reference in a new issue