summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/inc/hw
diff options
context:
space:
mode:
authorAnthony Koo2017-05-04 20:09:09 +0200
committerAlex Deucher2017-09-27 00:06:59 +0200
commitfe626734711b5f402fca9df5d33cb0663b6c2fe5 (patch)
tree1e6cf58a866a409cdd1c5dbebfbc4edca209aa01 /drivers/gpu/drm/amd/display/dc/inc/hw
parentdrm/amd/display: Continue with stream enable if DP link training fails. (diff)
downloadkernel-qcow2-linux-fe626734711b5f402fca9df5d33cb0663b6c2fe5.tar.gz
kernel-qcow2-linux-fe626734711b5f402fca9df5d33cb0663b6c2fe5.tar.xz
kernel-qcow2-linux-fe626734711b5f402fca9df5d33cb0663b6c2fe5.zip
drm/amd/display: Implement support for backlight optimization
- Add functionality to get real hw backlight level as opposed to user level, meaning the level that takes into account backlight ramping over time and backlight reduction due to Varibright - Add backlight optimization which allows for a second OS state that is able to control ABM Signed-off-by: Anthony Koo <Anthony.Koo@amd.com> Reviewed-by: Aric Cyr <Aric.Cyr@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/inc/hw')
-rw-r--r--drivers/gpu/drm/amd/display/dc/inc/hw/abm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/abm.h b/drivers/gpu/drm/amd/display/dc/inc/hw/abm.h
index ceabbd3bf5f8..da465b3e98e8 100644
--- a/drivers/gpu/drm/amd/display/dc/inc/hw/abm.h
+++ b/drivers/gpu/drm/amd/display/dc/inc/hw/abm.h
@@ -40,6 +40,7 @@ struct abm_funcs {
unsigned int backlight_level,
unsigned int frame_ramp,
unsigned int controller_id);
+ unsigned int (*get_current_backlight_8_bit)(struct abm *abm);
bool (*is_dmcu_initialized)(struct abm *abm);
};