Commit 561b0690 authored by Tomeu Vizoso's avatar Tomeu Vizoso Committed by Daniel Vetter

drm/bridge: analogix_dp: Add analogix_dp_psr_supported

So users know whether PSR should be enabled or not.

Cc: Yakir Yang <ykk@rock-chips.com>
Reviewed-by: default avatarSean Paul <seanpaul@chromium.org>
Signed-off-by: default avatarTomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: default avatarArchit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1474639600-30090-1-git-send-email-tomeu.vizoso@collabora.com
parent 74064893
...@@ -98,6 +98,14 @@ static int analogix_dp_detect_hpd(struct analogix_dp_device *dp) ...@@ -98,6 +98,14 @@ static int analogix_dp_detect_hpd(struct analogix_dp_device *dp)
return 0; return 0;
} }
int analogix_dp_psr_supported(struct device *dev)
{
struct analogix_dp_device *dp = dev_get_drvdata(dev);
return dp->psr_support;
}
EXPORT_SYMBOL_GPL(analogix_dp_psr_supported);
int analogix_dp_enable_psr(struct device *dev) int analogix_dp_enable_psr(struct device *dev)
{ {
struct analogix_dp_device *dp = dev_get_drvdata(dev); struct analogix_dp_device *dp = dev_get_drvdata(dev);
......
...@@ -38,6 +38,7 @@ struct analogix_dp_plat_data { ...@@ -38,6 +38,7 @@ struct analogix_dp_plat_data {
struct drm_connector *); struct drm_connector *);
}; };
int analogix_dp_psr_supported(struct device *dev);
int analogix_dp_enable_psr(struct device *dev); int analogix_dp_enable_psr(struct device *dev);
int analogix_dp_disable_psr(struct device *dev); int analogix_dp_disable_psr(struct device *dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment