OSDN Git Service

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)
commitbbf854dc3570eb0a2b9d851f21e363e1570c717e
tree8054c47f49da1c8241373c6330dfbab136cd1917
parent51f1f6f51712aade68cabb145ed8bab4a6c3997e
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]