disp: msm: dsi: Add "bl_ctrl_dummy" to panel bl type
Add a new display's backlight type "bl_ctrl_dummy". With this backlight type, the panel backlight driver will ignore any backlight requests. This new backlight type will be used with a bare_board or no-display configuration and the display driver doesn't need to have any communication with panel. Port from: cfb2acd Change-Id: I2108d7477009d06ac350ca49c380b64c9d004f65 Signed-off-by: Bang Nguyen <bangnguyen@motorola.com> Reviewed-on: https://gerrit.mot.com/1442424 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Submit-Approved: Jira Key Reviewed-on: https://gerrit.mot.com/1509792 Reviewed-by: Hua Tan <tanhua1@motorola.com>
This commit is contained in:
1 parent
0ce5683cb1
commit
82dd11b2b6
2 files changed
+10
No files matched your search
@@ -755,6 +755,9 @@ int dsi_panel_set_backlight(struct dsi_panel *panel, u32 bl_lvl)
|
||||
case DSI_BACKLIGHT_DCS:
|
||||
rc = dsi_panel_update_backlight(panel, bl_lvl);
|
||||
break;
|
||||
case DSI_BACKLIGHT_DUMMY:
|
||||
rc = 0;
|
||||
break;
|
||||
case DSI_BACKLIGHT_EXTERNAL:
|
||||
break;
|
||||
case DSI_BACKLIGHT_PWM:
|
||||
@@ -834,6 +837,8 @@ static int dsi_panel_bl_register(struct dsi_panel *panel)
|
||||
break;
|
||||
case DSI_BACKLIGHT_DCS:
|
||||
break;
|
||||
case DSI_BACKLIGHT_DUMMY:
|
||||
break;
|
||||
case DSI_BACKLIGHT_EXTERNAL:
|
||||
break;
|
||||
case DSI_BACKLIGHT_PWM:
|
||||
@@ -869,6 +874,8 @@ static int dsi_panel_bl_unregister(struct dsi_panel *panel)
|
||||
break;
|
||||
case DSI_BACKLIGHT_DCS:
|
||||
break;
|
||||
case DSI_BACKLIGHT_DUMMY:
|
||||
break;
|
||||
case DSI_BACKLIGHT_EXTERNAL:
|
||||
break;
|
||||
case DSI_BACKLIGHT_PWM:
|
||||
@@ -2361,6 +2368,8 @@ static int dsi_panel_parse_bl_config(struct dsi_panel *panel)
|
||||
panel->bl_config.type = DSI_BACKLIGHT_WLED;
|
||||
} else if (!strcmp(bl_type, "bl_ctrl_dcs")) {
|
||||
panel->bl_config.type = DSI_BACKLIGHT_DCS;
|
||||
} else if (!strcmp(bl_type, "bl_ctrl_dummy")) {
|
||||
panel->bl_config.type = DSI_BACKLIGHT_DUMMY;
|
||||
} else if (!strcmp(bl_type, "bl_ctrl_external")) {
|
||||
panel->bl_config.type = DSI_BACKLIGHT_EXTERNAL;
|
||||
} else {
|
||||
|
||||
@@ -46,6 +46,7 @@ enum dsi_backlight_type {
|
||||
DSI_BACKLIGHT_PWM = 0,
|
||||
DSI_BACKLIGHT_WLED,
|
||||
DSI_BACKLIGHT_DCS,
|
||||
DSI_BACKLIGHT_DUMMY,
|
||||
DSI_BACKLIGHT_EXTERNAL,
|
||||
DSI_BACKLIGHT_UNKNOWN,
|
||||
DSI_BACKLIGHT_MAX,
|
||||
|
||||
Reference in new issue
Block a user