drm/amd/display: report cursor size base on the ASIC

Signed-off-by: Tony Cheng <tony.cheng@amd.com>
Reviewed-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Tony Cheng 2017-02-08 22:13:52 -05:00 committed by Alex Deucher
parent 27e947b0e1
commit a37656b99a
5 changed files with 6 additions and 0 deletions

View File

@ -47,6 +47,8 @@ struct dc_caps {
uint32_t max_slave_planes;
uint32_t max_downscale_ratio;
uint32_t i2c_speed_in_khz;
unsigned int max_cursor_size;
};

View File

@ -984,6 +984,7 @@ static bool construct(
pool->base.pipe_count = res_cap.num_timing_generator;
dc->public.caps.max_downscale_ratio = 200;
dc->public.caps.i2c_speed_in_khz = 40;
dc->public.caps.max_cursor_size = 128;
for (i = 0; i < pool->base.pipe_count; i++) {
pool->base.timing_generators[i] =

View File

@ -1274,6 +1274,7 @@ static bool construct(
dc->public.caps.max_downscale_ratio = 150;
dc->public.caps.i2c_speed_in_khz = 100;
dc->public.caps.max_cursor_size = 128;
/*************************************************
* Create resources *

View File

@ -1256,6 +1256,7 @@ static bool construct(
pool->base.pipe_count = pool->base.res_cap->num_timing_generator;
dc->public.caps.max_downscale_ratio = 200;
dc->public.caps.i2c_speed_in_khz = 100;
dc->public.caps.max_cursor_size = 128;
/*************************************************
* Create resources *

View File

@ -935,6 +935,7 @@ static bool construct(
pool->base.pipe_count = res_cap.num_timing_generator;
dc->public.caps.max_downscale_ratio = 200;
dc->public.caps.i2c_speed_in_khz = 40;
dc->public.caps.max_cursor_size = 128;
/*************************************************
* Create resources *