summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/inc
diff options
context:
space:
mode:
authorDavid Francis2018-11-26 17:38:33 +0100
committerAlex Deucher2018-11-26 21:47:53 +0100
commitbbf854dc3570eb0a2b9d851f21e363e1570c717e (patch)
tree8054c47f49da1c8241373c6330dfbab136cd1917 /drivers/gpu/drm/amd/display/dc/inc
parentdrm/amdgpu: Fix static checker warning (diff)
downloadkernel-qcow2-linux-bbf854dc3570eb0a2b9d851f21e363e1570c717e.tar.gz
kernel-qcow2-linux-bbf854dc3570eb0a2b9d851f21e363e1570c717e.tar.xz
kernel-qcow2-linux-bbf854dc3570eb0a2b9d851f21e363e1570c717e.zip
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>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/inc')
-rw-r--r--drivers/gpu/drm/amd/display/dc/inc/hw/dmcu.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/dmcu.h b/drivers/gpu/drm/amd/display/dc/inc/hw/dmcu.h
index 4550747fb61c..cb85eaa9857f 100644
--- a/drivers/gpu/drm/amd/display/dc/inc/hw/dmcu.h
+++ b/drivers/gpu/drm/amd/display/dc/inc/hw/dmcu.h
@@ -32,6 +32,13 @@ enum dmcu_state {
DMCU_RUNNING = 1
};
+struct dmcu_version {
+ unsigned int date;
+ unsigned int month;
+ unsigned int year;
+ unsigned int interface_version;
+};
+
struct dmcu {
struct dc_context *ctx;
const struct dmcu_funcs *funcs;