From patchwork Wed Dec 14 20:37:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9477151 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 D24D560827 for ; Fri, 16 Dec 2016 00:38:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D4BCE28780 for ; Fri, 16 Dec 2016 00:38:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C670F28828; Fri, 16 Dec 2016 00:38:00 +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 3AC4F28780 for ; Fri, 16 Dec 2016 00:38:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E00696EACE; Fri, 16 Dec 2016 00:37:57 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) by gabe.freedesktop.org (Postfix) with ESMTPS id AC70089149 for ; Wed, 14 Dec 2016 20:37:12 +0000 (UTC) Received: by mail-wm0-x22f.google.com with SMTP id t79so13329338wmt.0 for ; Wed, 14 Dec 2016 12:37:12 -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 :mime-version:content-transfer-encoding; bh=m8+c2wXIWyYTWlAxb1AVktIusmE4GRiBywoxjA9HzW4=; b=zlC1/XQQq9OOu4ak0ruoXqdlTHlMBSqr6CzmUL79UULEuWyolvsDjdyc3oUUHfEnmM Kd5LFRXXH3TuwP0OXGydbRMOR5OM4DAMNy5NsLI2O182bVJmxLAeG2mkGaw+MU0w1Sw8 D6Of9w+yP/cQ8UCTRuxENE/qKyITM2CszjI3kUPZMFzt6cecOcCRfZBKSP9KjX66NR6y YP4a66MI7BjHqBi71GCX5mixV9IKl0HEpjE5NupNX7RD2gjYun8jwLLO/7AmUW4U6uAd CcgGOgrhmbAEfdCIOzqwWNFhZyDLbtKjW/ML/H68WG0XXFCK0VpnFmQ7ZFNOYTKpIWFp nOEw== 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:mime-version:content-transfer-encoding; bh=m8+c2wXIWyYTWlAxb1AVktIusmE4GRiBywoxjA9HzW4=; b=sjKCANq0by+qZnAB/T6ll+7TBZYYEkGjgtURZOdhyeB+HJTmFHCi4Bw3pUltTxFX5u 1GX7YzUyT9bBozzYQ3TV2LrF1dtHgpPmnqg9AEjCatAx4kgo89+jg5YVcPfyDBDPAMh5 +LI8dcZTdrMupLr3OxGbZr2rorZ/1BeActj/cR25uV9tRuytGI2OcT8Ub9k88ajomldI F6b/mJf26XUbjWLAbw+N9aaVW4YRyI11W6bcmIxBRWVQT5tXR2eC22GDSEC4rO514iH0 U1YuYjIDyUdRbbTeQdzxMWAiBvhuXuQGp9RbU2xehAftkL0+6p86N/NXg0do2dZAGId+ cI2w== X-Gm-Message-State: AKaTC01RPjgOovbLHBp+aZ5TJ5xf/+IbVeDIJvBVIEF4OmwksrItX2eG5WzUT3vf+vb/hA== X-Received: by 10.25.228.88 with SMTP id b85mr36473441lfh.100.1481747830897; Wed, 14 Dec 2016 12:37:10 -0800 (PST) Received: from wasted.cogentembedded.com ([31.173.86.118]) by smtp.gmail.com with ESMTPSA id 5sm11036365ljf.18.2016.12.14.12.37.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Dec 2016 12:37:10 -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] drm: rcar-du: enable VSPDs on R8A7791 Date: Wed, 14 Dec 2016 23:37:08 +0300 Message-ID: <4947043.txDs5ZU4mH@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; ; ) MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 16 Dec 2016 00:32:30 +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 R8A7791 VSPDs to control DU, so set the corresponding flag. Signed-off-by: Sergei Shtylyov --- The patch is against David Airlie's 'linux.git' repo's 'drm-next' branch. drivers/gpu/drm/rcar-du/rcar_du_drv.c | 3 ++- 1 file changed, 2 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 @@ -90,7 +90,8 @@ static const struct rcar_du_device_info static const struct rcar_du_device_info rcar_du_r8a7791_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 = { /* R8A779[13] has one RGB output, one LVDS output and one