drm/amd/display: refactor init_hw to isolate pipe related init
authorAnthony Koo <Anthony.Koo@amd.com>
Sun, 20 Jan 2019 06:23:07 +0000 (01:23 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Feb 2019 18:31:22 +0000 (13:31 -0500)
commitfb55546ea4b50f04ef41c196b8ac1824e26bc48c
treeff85e381a2d761983efc63759830ca99d50779bc
parent9c0fb8d45bfcf2e8f080489913db443c1fd241ed
drm/amd/display: refactor init_hw to isolate pipe related init

[Why]
Pipe related init is possible to optimized if we know what we
intend to program, and if we can determine it matches what is
already programmed for the pipe.

[How]
First step is to isolate the pipe related init code

Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h