drm/amd/display: Expose target backlight level
authorAnthony Koo <Anthony.Koo@amd.com>
Thu, 18 Oct 2018 19:03:56 +0000 (15:03 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Nov 2018 19:21:43 +0000 (14:21 -0500)
commitba45df4cb7193570e9fa4979b198ec313899417c
tree638df0381cdd3dc7d835443959772017736572bd
parentf41a895026b8cb6f765190de7d2e7bc3ccbbd183
drm/amd/display: Expose target backlight level

[Why]
DM may want to understand any backlight optimizations
applied, so DM needs a way to query from the HW both
the real current backlight, which may be value during
transition.
And also target backlight, which may be after some
backlight optimizations applied.

[How]
Add interface to query current and target backlight levels
Target level may indicate backlight level after backlight
optimization and reductions are applied.

Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_abm.c
drivers/gpu/drm/amd/display/dc/inc/hw/abm.h