提交 6a4c32da 编写于 作者: H Harry Wentland 提交者: Alex Deucher

drm/amd/display: DCE12 num_timing_generators should be 6

We should also use it to determine pipe count.
Signed-off-by: NHarry Wentland <harry.wentland@amd.com>
Reviewed-by: NTony Cheng <Tony.Cheng@amd.com>
Acked-by: NHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 f46661dd
...@@ -426,7 +426,7 @@ static const struct bios_registers bios_regs = { ...@@ -426,7 +426,7 @@ static const struct bios_registers bios_regs = {
}; };
static const struct resource_caps res_cap = { static const struct resource_caps res_cap = {
.num_timing_generator = 3, .num_timing_generator = 6,
.num_audio = 7, .num_audio = 7,
.num_stream_encoder = 6, .num_stream_encoder = 6,
.num_pll = 6, .num_pll = 6,
...@@ -909,7 +909,7 @@ static bool construct( ...@@ -909,7 +909,7 @@ static bool construct(
pool->base.funcs = &dce120_res_pool_funcs; pool->base.funcs = &dce120_res_pool_funcs;
/* TODO: Fill more data from GreenlandAsicCapability.cpp */ /* TODO: Fill more data from GreenlandAsicCapability.cpp */
pool->base.pipe_count = 6; pool->base.pipe_count = res_cap.num_timing_generator;
pool->base.underlay_pipe_index = NO_UNDERLAY_PIPE; pool->base.underlay_pipe_index = NO_UNDERLAY_PIPE;
dc->public.caps.max_downscale_ratio = 200; dc->public.caps.max_downscale_ratio = 200;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册