aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dc_link.h
diff options
context:
space:
mode:
authorWenjing Liu <Wenjing.Liu@amd.com>2019-03-21 13:05:36 -0400
committerAlex Deucher <alexander.deucher@amd.com>2019-04-10 13:53:27 -0500
commite49f69363adf8920883fff7e8ffecb802d897c6b (patch)
tree8ee70b90ae26c7bd2cb7f9a94befdd2ed58da32c /drivers/gpu/drm/amd/display/dc/dc_link.h
parentdrm/amd/display: fix dp_hdmi_max_pixel_clk units (diff)
downloadlinux-dev-e49f69363adf8920883fff7e8ffecb802d897c6b.tar.xz
linux-dev-e49f69363adf8920883fff7e8ffecb802d897c6b.zip
drm/amd/display: use proper formula to calculate bandwidth from timing
[why] The existing calculation uses a wrong formula to calculate bandwidth from timing. [how] Expose the existing proper function that calculates the bandwidth, so dc_link can use it to calculate timing bandwidth correctly. Signed-off-by: Wenjing Liu <Wenjing.Liu@amd.com> Reviewed-by: Jun Lei <Jun.Lei@amd.com> Acked-by: Leo Li <sunpeng.li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc_link.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dc_link.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc_link.h b/drivers/gpu/drm/amd/display/dc/dc_link.h
index 8fc223defed4..a83e1c60f9db 100644
--- a/drivers/gpu/drm/amd/display/dc/dc_link.h
+++ b/drivers/gpu/drm/amd/display/dc/dc_link.h
@@ -252,4 +252,6 @@ bool dc_submit_i2c(
uint32_t link_index,
struct i2c_command *cmd);
+uint32_t dc_bandwidth_in_kbps_from_timing(
+ const struct dc_crtc_timing *timing);
#endif /* DC_LINK_H_ */