drm/amd: Add ucode DMCU support
authorDavid Francis <David.Francis@amd.com>
Tue, 11 Sep 2018 17:41:01 +0000 (13:41 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Sep 2018 21:29:09 +0000 (16:29 -0500)
commit01fcfc83fe07ae42af707c3217f533fb350d4c19
tree7ebe0342d2fdddbb5b07b45cb1d8952c0d42e88c
parent240cd9a64226e013ac1a608ebf720a1813790196
drm/amd: Add ucode DMCU support

DMCU (Display Microcontroller Unit) is a GPU chip involved in
eDP features like Adaptive Backlight Modulation and Panel Self
Refresh.

DMCU has two pieces of firmware: the ERAM and the interrupt
vectors, which must be loaded seperately.

To this end, the DMCU firmware has a custom header and parsing
logic similar to MEC, to extract the two ucodes from a single
struct firmware.

Signed-off-by: David Francis <David.Francis@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h