drm/amd/display: Set OPP default values in init_hw
authorAndrew Jiang <Andrew.Jiang@amd.com>
Tue, 14 Nov 2017 17:40:20 +0000 (12:40 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:48:14 +0000 (12:48 -0500)
commit621fd3e39fc0222d7c8d95ddb5a2dff6261a0a86
tree489363b1d1b1f5ce72670729d2873e8d5e7b2fe6
parenta2c7f9e893acb809a85db473d0c060073f72ca52
drm/amd/display: Set OPP default values in init_hw

On S3 resume, we do not reconstruct OPP, but we do need to
reinitialize some of its values to the default ones.
Therefore, move those lines out of the OPP constructor and
into init_hw.

Also reset the hubp power gated flag, since nothing is
power gated at init_hw.

Signed-off-by: Andrew Jiang <Andrew.Jiang@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>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_opp.c