From patchwork Wed Dec 28 21:20: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: 9495151 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id ED73260414 for ; Tue, 3 Jan 2017 16:09:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D579E271BC for ; Tue, 3 Jan 2017 16:09:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CA59E2780C; Tue, 3 Jan 2017 16:09:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8B3BA271BC for ; Tue, 3 Jan 2017 16:09:50 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 62A406E5D4; Tue, 3 Jan 2017 16:09:42 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf0-x236.google.com (mail-lf0-x236.google.com [IPv6:2a00:1450:4010:c07::236]) by gabe.freedesktop.org (Postfix) with ESMTPS id 277F46E040 for ; Wed, 28 Dec 2016 21:20:37 +0000 (UTC) Received: by mail-lf0-x236.google.com with SMTP id c13so211109410lfg.0 for ; Wed, 28 Dec 2016 13:20:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:organization:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=3ZgHFu2HPB9gpcOCO/kcwJtzPLyAmY898lWxvjGgY4s=; b=uioOJZDQ7GsGfN1L2ForVhRRiE01PqqoVIqCboj0X698T3i8QBsHmM3fL/NN+zVweH J8JLEWGn2k9M1o4cZY/C7GxJONZi4JsbbTVjdBaIkJbgl8wLkFCsGRgo5WdRyprheeA/ 9t9uSw8tUKIZXpF/qX+fh2ZPLumK7lmzoX3qW/3TRzRsmfIP1zo92xD/Ivkoc82z/d4S GQUUHS8iQHwzEO6PzeI3tsPlL5ozCEWz3sWCLzZEKVk2KjCN3ekVmXhGiF8Y9IwMnCXG DZz5J2CqVbIDgcjHw9sfZZ+Z+X59wPHwzC1qZX/ejs+bDM4zC83AfUyvN3D0mKZmjJS4 NvnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=3ZgHFu2HPB9gpcOCO/kcwJtzPLyAmY898lWxvjGgY4s=; b=WaFIwIj+RrVgSW8pupdnwyeqVhA8dRSkdPoJFc/SO4jXqoKPB8h7ZAuBpCPy66BYuy AzYy4oYibCcWp7ijIm6VSPVvSjDAoyFR09uyAdR16u91H3iCm6BmqzaoHOWYc8e2aWdB 2NzXEFETaz9xdCy7bFmySao0KlbOSv8m/tGHHQxbaA1FV08y02W18M35/H5gXIVHlZjq 4MnTrgwEy+PLmK1cuRAW1aYmlWja8VnwbLx3WusT1K9utt+iE/eaiVTIUnVWUehvX3mB 0KQRtBJ+tcCANe9dxt0VnDXXvR+ni6fZgEDW7sPlspmgtjhdePAgtn507LZFlsB+qWyY EBUw== X-Gm-Message-State: AIkVDXKzLgGHzn+UKvAtMUFNdFzZLeCRB/Ej8B9yUwa+dO3lMMn9XJpPFfNY9n16zIXAMw== X-Received: by 10.25.159.78 with SMTP id i75mr13453161lfe.123.1482960035124; Wed, 28 Dec 2016 13:20:35 -0800 (PST) Received: from wasted.cogentembedded.com ([31.173.84.130]) by smtp.gmail.com with ESMTPSA id u77sm12383909lfg.22.2016.12.28.13.20.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Dec 2016 13:20:34 -0800 (PST) From: Sergei Shtylyov To: laurent.pinchart@ideasonboard.com, airlied@linux.ie, dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org Subject: [PATCH 2/2] drm: rcar-du: enable VSPD on R8A7794 Date: Thu, 29 Dec 2016 00:20:33 +0300 Message-ID: <1637352.TRSum6nTUx@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.8.13-100.fc23.x86_64; KDE/4.14.20; x86_64; ; ) In-Reply-To: <18781159.4YChoBxRU5@wasted.cogentembedded.com> References: <18781159.4YChoBxRU5@wasted.cogentembedded.com> MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 03 Jan 2017 16:03:01 +0000 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-Virus-Scanned: ClamAV using ClamSMTP We're going to use R8A7794 VSPD to control DU, so set the corresponding flag and the newly added field, 'num_vspds'... Signed-off-by: Sergei Shtylyov --- drivers/gpu/drm/rcar-du/rcar_du_drv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) Index: linux/drivers/gpu/drm/rcar-du/rcar_du_drv.c =================================================================== --- linux.orig/drivers/gpu/drm/rcar-du/rcar_du_drv.c +++ linux/drivers/gpu/drm/rcar-du/rcar_du_drv.c @@ -136,7 +136,8 @@ static const struct rcar_du_device_info static const struct rcar_du_device_info rcar_du_r8a7794_info = { .gen = 2, .features = RCAR_DU_FEATURE_CRTC_IRQ_CLOCK - | RCAR_DU_FEATURE_EXT_CTRL_REGS, + | RCAR_DU_FEATURE_EXT_CTRL_REGS + | RCAR_DU_FEATURE_VSP1_SOURCE, .num_crtcs = 2, .routes = { /* R8A7794 has two RGB outputs and one (currently unsupported) @@ -154,6 +155,7 @@ static const struct rcar_du_device_info }, }, .num_lvds = 0, + .num_vspds = 1, }; static const struct rcar_du_device_info rcar_du_r8a7795_info = {