From patchwork Thu Apr 28 21:02:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 8978201 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9F4ADBF29F for ; Fri, 29 Apr 2016 07:58:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C550B2024D for ; Fri, 29 Apr 2016 07:58:38 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id CB34620259 for ; Fri, 29 Apr 2016 07:58:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 846C26E185; Fri, 29 Apr 2016 07:58:23 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf0-x22e.google.com (mail-lf0-x22e.google.com [IPv6:2a00:1450:4010:c07::22e]) by gabe.freedesktop.org (Postfix) with ESMTPS id 946946E056 for ; Thu, 28 Apr 2016 21:02:19 +0000 (UTC) Received: by mail-lf0-x22e.google.com with SMTP id u64so98016677lff.3 for ; Thu, 28 Apr 2016 14:02:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=s7WJ6P1BmgjFOyrNj50LIjEGmzMUPAJqz5PMwmKZfAw=; b=fYGBDTdz92n8cMtNHrAmMml8BQQwGHCJPob94C/xrQYIaFwKYcs0dTwlgQpPtIURGC GpbRhwr/2DQ+FhRsyBTjmeW28T4mf6hqy8paTXqGMME0RketVA/1+Xx9zQpbM0GXDvID FAEFsPfu/szdjrLstiBlQhpmhV+7lBPbshemKIFYj1X6pU0gsyazxEaa60CPtk4P+ivr XxBmPxnAEklSaWtiB3xj1ikFt0CD9uzk7HAyGSC1a3wow/SsabMa1YiKldU0tHbHdyCT JFNqXC/BPq91ia9IwbqXsQwhgbkMEpPyq2gydL/UYHQVKBJ/fcWkOjqzsOFWpnyJB4PM vDOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=s7WJ6P1BmgjFOyrNj50LIjEGmzMUPAJqz5PMwmKZfAw=; b=DeK6TJjCMdLinsDxsJ2LBiWbcA/W51ekQLhisELQzeYs6EDtfZv8pUW8QEVkxFOx1+ o8uDaAPqeOEOJ92AfD4wiiCy4QNTFP+3k9x2Z+tcbJ7Qu65MI5XvNHsYEVahwTwm+HaZ zR5otfztIRbnE05xvvRx45omnpP3Vpvc3S5mYQQdwlqG6salNtk1Nrf21Bm9cqjX2G9T U+04zumkB3jSPLC+gJ2vW6Qu7KaIYTnH5rMqvjmyYCPuWWVjE+L1q90Z4lIIBZvO73RE BDgCvZN5UhUNl2h3nMsbg6p3C5c/zLI4iWugTpl0XRSfC1qvh3rG0r11IDrdkIUZWlrY uc7g== X-Gm-Message-State: AOPr4FWjCK3+lnmFfmKKa6/snqca/i2DVAQj5TCMyjSzsj6/yPtNtFRxhl8bBA7o+J4m4Q== X-Received: by 10.25.218.75 with SMTP id r72mr7127218lfg.139.1461877337267; Thu, 28 Apr 2016 14:02:17 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.83.119]) by smtp.gmail.com with ESMTPSA id i204sm1903567lfg.47.2016.04.28.14.02.16 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Apr 2016 14:02:16 -0700 (PDT) From: Sergei Shtylyov To: airlied@linux.ie, dri-devel@lists.freedesktop.org Subject: [PATCH 1/4] drm_mode: add TCON encoder/connector Date: Fri, 29 Apr 2016 00:02:15 +0300 Message-ID: <19760070.fVPA1G30uu@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.4.6-201.fc22.x86_64; KDE/4.14.17; x86_64; ; ) In-Reply-To: <1787748.qAADjKK4gv@wasted.cogentembedded.com> References: <1787748.qAADjKK4gv@wasted.cogentembedded.com> MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 29 Apr 2016 07:58:21 +0000 Cc: linux-renesas-soc@vger.kernel.org, laurent.pinchart@ideasonboard.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP TCON (Timing Controller) usually means a chip that drives a LCD panel. In our case, such controller is a part of the Renesas R-Car SoCs. Add the TCON encoder/connector #define's to be used by the TCON support code in the Renesas R-Car Display Unit (DU) driver. Signed-off-by: Sergei Shtylyov --- include/uapi/drm/drm_mode.h | 2 ++ 1 file changed, 2 insertions(+) Index: linux/include/uapi/drm/drm_mode.h =================================================================== --- linux.orig/include/uapi/drm/drm_mode.h +++ linux/include/uapi/drm/drm_mode.h @@ -202,6 +202,7 @@ struct drm_mode_get_plane_res { #define DRM_MODE_ENCODER_VIRTUAL 5 #define DRM_MODE_ENCODER_DSI 6 #define DRM_MODE_ENCODER_DPMST 7 +#define DRM_MODE_ENCODER_TCON 8 struct drm_mode_get_encoder { __u32 encoder_id; @@ -241,6 +242,7 @@ struct drm_mode_get_encoder { #define DRM_MODE_CONNECTOR_eDP 14 #define DRM_MODE_CONNECTOR_VIRTUAL 15 #define DRM_MODE_CONNECTOR_DSI 16 +#define DRM_MODE_CONNECTOR_TCON 17 struct drm_mode_get_connector {