drm/amd/display: update dpp dto phase and modulo.
authorYongqiang Sun <yongqiang.sun@amd.com>
Mon, 26 Oct 2020 16:33:24 +0000 (12:33 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Nov 2020 19:25:38 +0000 (14:25 -0500)
commitc07cbc1f04ecba00f99e313de3190db5e7438e81
treede356f48949e4c740b236539cbe607a43ec49b64
parentc6160900239e20d32ee9025fca7d926f8744f448
drm/amd/display: update dpp dto phase and modulo.

[Why & How]
Program modulo with ref dpp clk Mhz/10.
Program phase with pipe dpp clk Mhz /10.
DMUB FW could use these value to determine optimization clk
for PSR power saving.

Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Bindu Ramamurthy <bindu.r@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c
drivers/gpu/drm/amd/display/dc/dcn21/Makefile
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_dccg.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_dccg.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c