aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/gpu/drm/amd/display/dc/inc/hw/abm.h
diff options
context:
space:
mode:
authorAnthony Koo <Anthony.Koo@amd.com>2017-11-13 10:54:59 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-12-06 12:48:13 -0500
commit404dfe1c564434cddf259b8bc1df34a55d05d934 (patch)
treed574f622afb54b28c8fc58d5a8cbd87f26852e41 /drivers/gpu/drm/amd/display/dc/inc/hw/abm.h
parentdrm/amd/display: Only program watermark for full update. (diff)
downloadwireguard-linux-404dfe1c564434cddf259b8bc1df34a55d05d934.tar.xz
wireguard-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.h10
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 {