Commit a37656b9 authored by Tony Cheng's avatar Tony Cheng Committed by Alex Deucher

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

Signed-off-by: default avatarTony Cheng <tony.cheng@amd.com>
Reviewed-by: default avatarYongqiang Sun <yongqiang.sun@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 27e947b0
...@@ -47,6 +47,8 @@ struct dc_caps { ...@@ -47,6 +47,8 @@ struct dc_caps {
uint32_t max_slave_planes; uint32_t max_slave_planes;
uint32_t max_downscale_ratio; uint32_t max_downscale_ratio;
uint32_t i2c_speed_in_khz; uint32_t i2c_speed_in_khz;
unsigned int max_cursor_size;
}; };
......
...@@ -984,6 +984,7 @@ static bool construct( ...@@ -984,6 +984,7 @@ static bool construct(
pool->base.pipe_count = res_cap.num_timing_generator; pool->base.pipe_count = res_cap.num_timing_generator;
dc->public.caps.max_downscale_ratio = 200; dc->public.caps.max_downscale_ratio = 200;
dc->public.caps.i2c_speed_in_khz = 40; dc->public.caps.i2c_speed_in_khz = 40;
dc->public.caps.max_cursor_size = 128;
for (i = 0; i < pool->base.pipe_count; i++) { for (i = 0; i < pool->base.pipe_count; i++) {
pool->base.timing_generators[i] = pool->base.timing_generators[i] =
......
...@@ -1274,6 +1274,7 @@ static bool construct( ...@@ -1274,6 +1274,7 @@ static bool construct(
dc->public.caps.max_downscale_ratio = 150; dc->public.caps.max_downscale_ratio = 150;
dc->public.caps.i2c_speed_in_khz = 100; dc->public.caps.i2c_speed_in_khz = 100;
dc->public.caps.max_cursor_size = 128;
/************************************************* /*************************************************
* Create resources * * Create resources *
......
...@@ -1256,6 +1256,7 @@ static bool construct( ...@@ -1256,6 +1256,7 @@ static bool construct(
pool->base.pipe_count = pool->base.res_cap->num_timing_generator; pool->base.pipe_count = pool->base.res_cap->num_timing_generator;
dc->public.caps.max_downscale_ratio = 200; dc->public.caps.max_downscale_ratio = 200;
dc->public.caps.i2c_speed_in_khz = 100; dc->public.caps.i2c_speed_in_khz = 100;
dc->public.caps.max_cursor_size = 128;
/************************************************* /*************************************************
* Create resources * * Create resources *
......
...@@ -935,6 +935,7 @@ static bool construct( ...@@ -935,6 +935,7 @@ static bool construct(
pool->base.pipe_count = res_cap.num_timing_generator; pool->base.pipe_count = res_cap.num_timing_generator;
dc->public.caps.max_downscale_ratio = 200; dc->public.caps.max_downscale_ratio = 200;
dc->public.caps.i2c_speed_in_khz = 40; dc->public.caps.i2c_speed_in_khz = 40;
dc->public.caps.max_cursor_size = 128;
/************************************************* /*************************************************
* Create resources * * Create resources *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment