summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/inc
diff options
context:
space:
mode:
authorEric Bernstein <eric.bernstein@amd.com>2018-05-18 17:49:33 +0300
committerAlex Deucher <alexander.deucher@amd.com>2018-06-15 20:24:57 +0300
commite9522309efb31423a450c32f433dd95bfb8b5787 (patch)
tree4064e5c6d849778a8017b92ea9c6c3fe4a0584ff /drivers/gpu/drm/amd/display/dc/inc
parent12036586a368b8c949d4e6e57ae3b40c41daf17a (diff)
downloadlinux-e9522309efb31423a450c32f433dd95bfb8b5787.tar.xz
drm/amd/display: Add num_opp to resource_caps
Number of OPPs to be instantiated is based on number of timing generators, not number of pipes. Signed-off-by: Eric Bernstein <eric.bernstein@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-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/resource.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/resource.h b/drivers/gpu/drm/amd/display/dc/inc/resource.h
index 640a647f4611..e92facbd038f 100644
--- a/drivers/gpu/drm/amd/display/dc/inc/resource.h
+++ b/drivers/gpu/drm/amd/display/dc/inc/resource.h
@@ -38,6 +38,7 @@ enum dce_version resource_parse_asic_id(
struct resource_caps {
int num_timing_generator;
+ int num_opp;
int num_video_plane;
int num_audio;
int num_stream_encoder;