aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/dp.h
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2015-07-21 16:38:11 +0200
committerThierry Reding <treding@nvidia.com>2019-10-28 11:18:52 +0100
commit01f09f242eb5cb194a88cef669a099fa10fcb3f0 (patch)
treedcde81cee2ec727c77eb0bd790b956a32d33e133 /drivers/gpu/drm/tegra/dp.h
parentdrm/tegra: dp: Enable alternate scrambler reset when supported (diff)
downloadlinux-dev-01f09f242eb5cb194a88cef669a099fa10fcb3f0.tar.xz
linux-dev-01f09f242eb5cb194a88cef669a099fa10fcb3f0.zip
drm/tegra: dp: Add drm_dp_link_choose() helper
This helper chooses an appropriate configuration, according to the bitrate requirements of the video mode and the capabilities of the DisplayPort sink. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/dp.h')
-rw-r--r--drivers/gpu/drm/tegra/dp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/dp.h b/drivers/gpu/drm/tegra/dp.h
index 1fe2d4f45ba3..e07b9a1e43d8 100644
--- a/drivers/gpu/drm/tegra/dp.h
+++ b/drivers/gpu/drm/tegra/dp.h
@@ -9,6 +9,8 @@
#include <linux/types.h>
+struct drm_display_info;
+struct drm_display_mode;
struct drm_dp_aux;
/**
@@ -91,5 +93,8 @@ int drm_dp_link_probe(struct drm_dp_aux *aux, struct drm_dp_link *link);
int drm_dp_link_power_up(struct drm_dp_aux *aux, struct drm_dp_link *link);
int drm_dp_link_power_down(struct drm_dp_aux *aux, struct drm_dp_link *link);
int drm_dp_link_configure(struct drm_dp_aux *aux, struct drm_dp_link *link);
+int drm_dp_link_choose(struct drm_dp_link *link,
+ const struct drm_display_mode *mode,
+ const struct drm_display_info *info);
#endif