]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Load DMCU IRAM
authorDavid Francis <David.Francis@amd.com>
Mon, 26 Nov 2018 16:38:33 +0000 (11:38 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 26 Nov 2018 20:47:53 +0000 (15:47 -0500)
commit94e1a5e59d9c5dde14daf623291a66aa08a1f539
tree8054c47f49da1c8241373c6330dfbab136cd1917
parent78a3e921fd6d70f6abbe6124f713b97417aecb28
drm/amd/display: Load DMCU IRAM

DMCU IRAM must be loaded by the driver before DMCU
can function.

Move the IRAM code out of the shadows and into a new file
modules/power/power_helpers.c

The IRAM table contains the backlight curve and ABM parameters

Add this new file to the Makefiles

Call dmcu_load_iram in late init of DM

Move struct dmcu_version from dc.h to dmcu.h to allow
dmcu to be included on its own

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/display/Makefile
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/inc/hw/dmcu.h
drivers/gpu/drm/amd/display/modules/power/Makefile [new file with mode: 0644]
drivers/gpu/drm/amd/display/modules/power/power_helpers.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/modules/power/power_helpers.h [new file with mode: 0644]