mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 08:08:54 +00:00
drm/amd/display: Move OPP mpc tree initialization to hw_init
Move OPP initialization of mpc tree parameters to hw_init function. 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>
This commit is contained in:
parent
043b19bded
commit
f23d558466
3 changed files with 3 additions and 7 deletions
|
@ -782,6 +782,8 @@ static void dcn10_init_hw(struct dc *dc)
|
||||||
hubp->opp_id = 0xf;
|
hubp->opp_id = 0xf;
|
||||||
hubp->power_gated = false;
|
hubp->power_gated = false;
|
||||||
|
|
||||||
|
dc->res_pool->opps[i]->mpc_tree_params.opp_id = dc->res_pool->opps[i]->inst;
|
||||||
|
dc->res_pool->opps[i]->mpc_tree_params.opp_list = NULL;
|
||||||
dc->res_pool->opps[i]->mpcc_disconnect_pending[i] = true;
|
dc->res_pool->opps[i]->mpcc_disconnect_pending[i] = true;
|
||||||
pipe_ctx->stream_res.opp = dc->res_pool->opps[i];
|
pipe_ctx->stream_res.opp = dc->res_pool->opps[i];
|
||||||
|
|
||||||
|
|
|
@ -330,18 +330,11 @@ void dcn10_opp_construct(struct dcn10_opp *oppn10,
|
||||||
const struct dcn10_opp_shift *opp_shift,
|
const struct dcn10_opp_shift *opp_shift,
|
||||||
const struct dcn10_opp_mask *opp_mask)
|
const struct dcn10_opp_mask *opp_mask)
|
||||||
{
|
{
|
||||||
int i;
|
|
||||||
|
|
||||||
oppn10->base.ctx = ctx;
|
oppn10->base.ctx = ctx;
|
||||||
oppn10->base.inst = inst;
|
oppn10->base.inst = inst;
|
||||||
oppn10->base.funcs = &dcn10_opp_funcs;
|
oppn10->base.funcs = &dcn10_opp_funcs;
|
||||||
|
|
||||||
oppn10->base.mpc_tree_params.opp_id = inst;
|
|
||||||
oppn10->base.mpc_tree_params.opp_list = NULL;
|
|
||||||
|
|
||||||
for (i = 0; i < MAX_PIPES; i++)
|
|
||||||
oppn10->base.mpcc_disconnect_pending[i] = false;
|
|
||||||
|
|
||||||
oppn10->regs = regs;
|
oppn10->regs = regs;
|
||||||
oppn10->opp_shift = opp_shift;
|
oppn10->opp_shift = opp_shift;
|
||||||
oppn10->opp_mask = opp_mask;
|
oppn10->opp_mask = opp_mask;
|
||||||
|
|
|
@ -300,6 +300,7 @@ struct opp_funcs {
|
||||||
struct output_pixel_processor *opp,
|
struct output_pixel_processor *opp,
|
||||||
bool enable,
|
bool enable,
|
||||||
bool polarity);
|
bool polarity);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue