From patchwork Thu Apr 28 21:05:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 8978221 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 30B52BF29F for ; Fri, 29 Apr 2016 07:58:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5D13320155 for ; Fri, 29 Apr 2016 07:58:42 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 2A55320256 for ; Fri, 29 Apr 2016 07:58:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0B7FC6E1A5; Fri, 29 Apr 2016 07:58:24 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf0-x233.google.com (mail-lf0-x233.google.com [IPv6:2a00:1450:4010:c07::233]) by gabe.freedesktop.org (Postfix) with ESMTPS id 536686EDF3 for ; Thu, 28 Apr 2016 21:05:38 +0000 (UTC) Received: by mail-lf0-x233.google.com with SMTP id u64so98105661lff.3 for ; Thu, 28 Apr 2016 14:05:38 -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=MGqF8H9nzqGppRzwHLdpf0KMyN13o3wUSX3r8ofLLIk=; b=n/e078BZh1Y/SNF0DSABL3F9ztk3IdyqVUtVeTwiknkr6qnO3JXmBjYPY7PGZCs3dB uabe78/CAsKHHnl16Lf6zD34HfRyL/i4VHYah7qjl4a6YwIYz900vwDUW0xb5qJ9LEGu upcy3YxFfLczEARHHxwSXTGHptQV6Bx/zXZENLiAOzwSKTKAigVgW3Is68iEFLwYfEAW QIelF6uB0YojuF+t7pe3xF9ku0fPc5b3DgthMXpDAP774lYDSv3WRE5CNh4uBHfCWQbG DiA7KQ3T/h0loAaWxreC/kjqad+/nXxLQ6Vf6A7kPnu5EDeFM9HwXGiKh/MGdhilH0f+ KbNA== 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=MGqF8H9nzqGppRzwHLdpf0KMyN13o3wUSX3r8ofLLIk=; b=R2W+vx/fDvdL5cu/CxD9gySDyZRJWxJYyHg34OAyv2EJJ05V088PxZIiOXONUwazGF w8nzkUlDDPMGqc28Q90qfheFaUU8/yrhxHIlmzdNIa6ydgSGO2MW14l6jw5PmE43smKb UgJMiJh2kWUN+fjYB8Vsjm5eD/aNJO8ohovsPIImA01LckafcWpabWWfYkVA2nYHY+JV gpMU/mbvpic4XtpfdNdkuaRNbZq2AxPafHbW8cIdebi2+JwgrcFG9n3KnsDuNQPgnB7m 0OBaGpDu5TWmuchXFUERF6/+EfoV7DiNBddaXfWBv7yEu7tsjAxWOwuKHf9hfv8wsEOW rwww== X-Gm-Message-State: AOPr4FVwQ78WQ4oHuhVJ2QK/7ZrmrzWN8lDZ0Cm0ZdJtwfsizGPgQTB70+WoIwev8ZtWAA== X-Received: by 10.112.73.40 with SMTP id i8mr6895550lbv.101.1461877535554; Thu, 28 Apr 2016 14:05:35 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.83.119]) by smtp.gmail.com with ESMTPSA id 74sm1929696lfz.14.2016.04.28.14.05.34 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Apr 2016 14:05:34 -0700 (PDT) From: Sergei Shtylyov To: laurent.pinchart@ideasonboard.com, airlied@linux.ie, dri-devel@lists.freedesktop.org Subject: [PATCH 4/4] rcar-du: add R8A7794 TCON support Date: Fri, 29 Apr 2016 00:05:33 +0300 Message-ID: <3056907.Acy0t71QPW@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 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=unavailable 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 Now that we have the TCON encoder driver, we can start enabling TCON support for the R-Car SoCs. We have only tested the code on R8A7794 so far, so let it be the first supported SoC... Based on a large patch by Andrey Gusakov. Signed-off-by: Andrey Gusakov Signed-off-by: Sergei Shtylyov --- drivers/gpu/drm/rcar-du/rcar_du_drv.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) Index: renesas/drivers/gpu/drm/rcar-du/rcar_du_drv.c =================================================================== --- renesas.orig/drivers/gpu/drm/rcar-du/rcar_du_drv.c +++ renesas/drivers/gpu/drm/rcar-du/rcar_du_drv.c @@ -116,9 +116,7 @@ static const struct rcar_du_device_info | RCAR_DU_FEATURE_EXT_CTRL_REGS, .num_crtcs = 2, .routes = { - /* R8A7794 has two RGB outputs and one (currently unsupported) - * TCON output. - */ + /* R8A7794 has two RGB outputs and one TCON output. */ [RCAR_DU_OUTPUT_DPAD0] = { .possible_crtcs = BIT(0), .encoder_type = DRM_MODE_ENCODER_NONE, @@ -129,8 +127,14 @@ static const struct rcar_du_device_info .encoder_type = DRM_MODE_ENCODER_NONE, .port = 1, }, + [RCAR_DU_OUTPUT_TCON] = { + .possible_crtcs = BIT(0), + .encoder_type = DRM_MODE_ENCODER_TCON, + .port = 2, + }, }, .num_lvds = 0, + .num_tcon = 1, }; static const struct rcar_du_device_info rcar_du_r8a7795_info = {