diff options
author | Anthony Koo <Anthony.Koo@amd.com> | 2017-11-13 10:54:59 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-12-06 12:48:13 -0500 |
commit | 404dfe1c564434cddf259b8bc1df34a55d05d934 (patch) | |
tree | d574f622afb54b28c8fc58d5a8cbd87f26852e41 /drivers/gpu/drm/amd/display/dc/inc/hw/abm.h | |
parent | 8980aa3c9ed63f703fd5e0bff6a53b6ba1356ae1 (diff) | |
download | linux-404dfe1c564434cddf259b8bc1df34a55d05d934.tar.gz linux-404dfe1c564434cddf259b8bc1df34a55d05d934.tar.bz2 linux-404dfe1c564434cddf259b8bc1df34a55d05d934.zip |
drm/amd/display: DMCU and ABM maintenance and refactor
Remove some globals that should really be per block state.
Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@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/abm.h')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/inc/hw/abm.h | 10 |
1 files changed, 10 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 c93b9b9a817c..48217ecfabd4 100644 --- a/drivers/gpu/drm/amd/display/dc/inc/hw/abm.h +++ b/drivers/gpu/drm/amd/display/dc/inc/hw/abm.h @@ -27,9 +27,19 @@ #include "dm_services_types.h" +struct abm_backlight_registers { + unsigned int BL_PWM_CNTL; + unsigned int BL_PWM_CNTL2; + unsigned int BL_PWM_PERIOD_CNTL; + unsigned int LVTMA_PWRSEQ_REF_DIV_BL_PWM_REF_DIV; +}; + struct abm { struct dc_context *ctx; const struct abm_funcs *funcs; + + /* registers setting needs to be saved and restored at InitBacklight */ + struct abm_backlight_registers stored_backlight_registers; }; struct abm_funcs { |