drm/exynos: Name the connector properly.
authorStéphane Marchesin <marcheu@chromium.org>
Fri, 17 Aug 2012 01:06:55 +0000 (18:06 -0700)
committerGerrit <chrome-bot@google.com>
Fri, 17 Aug 2012 02:38:58 +0000 (19:38 -0700)
If the connector isn't recognized, it won't be named properly, and Chrome
will not pick it up as a laptop LCD (and won't handle it as a laptop,
including detecting the projection). Fix this by identifying our connector
as eDP.

BUG=none
TEST=by hand, run xrandr on an exynos device, and check that the output
TEST=is now named "eDP-1" not "None-1".

Change-Id: Ief7f45818407dfa140540517e994bd0edc5479f9
Reviewed-on: https://gerrit.chromium.org/gerrit/30638
Commit-Ready: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Tested-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Benson Leung <bleung@chromium.org>
drivers/gpu/drm/exynos/exynos_drm_connector.c

index 732c65a..55c050b 100644 (file)
@@ -322,6 +322,9 @@ struct drm_connector *exynos_drm_connector_create(struct drm_device *dev,
                type = DRM_MODE_CONNECTOR_VIRTUAL;
                connector->polled = DRM_CONNECTOR_POLL_HPD;
                break;
+       case EXYNOS_DISPLAY_TYPE_LCD:
+               type = DRM_MODE_CONNECTOR_eDP;
+               break;
        default:
                type = DRM_MODE_CONNECTOR_Unknown;
                break;