drm/amd/display: update clk for various HDMI color depths
authorMikita Lipski <mikita.lipski@amd.com>
Fri, 13 Jul 2018 13:07:35 +0000 (09:07 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 6 Aug 2018 20:57:29 +0000 (15:57 -0500)
commit81aca8e75c1b046865fb2badef95a0dcff6f73de
treee3d8aa50dabf89fb2906a1953ecabd97b5084438
parent99326ee3624b90d176a8f7e2aa3d15dfaa59c8f1
drm/amd/display: update clk for various HDMI color depths

[why]
When programming tonga's connector's backend we didn't take
in account that HDMI's colour depth might be more than 8bpc
therefore we need to add a switch statement that would adjust
the pixel clock accordingly.

[how]
Add a switch statement updating clock by its appropriate
coefficient.

Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/bios/command_table.c