diff options
author | Thierry Reding <treding@nvidia.com> | 2013-11-15 16:06:05 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2014-04-04 09:12:50 +0200 |
commit | 6b6b604215c64666fbf0fed939a5c312cc7b12fe (patch) | |
tree | 965dec0ece2b01700f4f68b4e75542219ee37bec /drivers/gpu/drm/tegra/output.c | |
parent | 64400c3791d9fcebf23318a289f9da964547a6f3 (diff) | |
download | linux-6b6b604215c64666fbf0fed939a5c312cc7b12fe.tar.gz linux-6b6b604215c64666fbf0fed939a5c312cc7b12fe.tar.bz2 linux-6b6b604215c64666fbf0fed939a5c312cc7b12fe.zip |
drm/tegra: Add eDP support
Add support for eDP functionality found on Tegra124 and later SoCs. Only
fast link training is currently supported.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/output.c')
-rw-r--r-- | drivers/gpu/drm/tegra/output.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/output.c b/drivers/gpu/drm/tegra/output.c index 57cecbd18ca8..a3e4f1eca6f7 100644 --- a/drivers/gpu/drm/tegra/output.c +++ b/drivers/gpu/drm/tegra/output.c @@ -77,6 +77,9 @@ tegra_connector_detect(struct drm_connector *connector, bool force) struct tegra_output *output = connector_to_output(connector); enum drm_connector_status status = connector_status_unknown; + if (output->ops->detect) + return output->ops->detect(output); + if (gpio_is_valid(output->hpd_gpio)) { if (gpio_get_value(output->hpd_gpio) == 0) status = connector_status_disconnected; @@ -292,6 +295,11 @@ int tegra_output_init(struct drm_device *drm, struct tegra_output *output) encoder = DRM_MODE_ENCODER_DSI; break; + case TEGRA_OUTPUT_EDP: + connector = DRM_MODE_CONNECTOR_eDP; + encoder = DRM_MODE_ENCODER_TMDS; + break; + default: connector = DRM_MODE_CONNECTOR_Unknown; encoder = DRM_MODE_ENCODER_NONE; |