drm/amd: Query and use ACPI backlight caps
authorDavid Francis <David.Francis@amd.com>
Mon, 26 Nov 2018 16:44:06 +0000 (11:44 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 26 Nov 2018 20:54:39 +0000 (15:54 -0500)
commit206bbafe00dcacccf40e6f09e624329ec124201b
tree3324c64471524c6ea4c95add3ff2ee6bc9fe4114
parent7349a3afaaea4600be86b2663a3b9e775f9590eb
drm/amd: Query and use ACPI backlight caps

ACPI ATIF has a function called query
backlight transfer characteristics.  Among the
information returned by this function is
the minimum and maximum input signals for the
backlight

Call that function on ACPI init.  When DM
backlight device is updated, copy over the
backlight caps into DM, but only once.  Use
the backlight caps in the backlight-to-dc
calculation

Signed-off-by: David Francis <David.Francis@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
drivers/gpu/drm/amd/include/amd_acpi.h