From patchwork Fri May 11 10:00:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 10393839 X-Patchwork-Delegate: geert@linux-m68k.org 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 ABF87602B1 for ; Fri, 11 May 2018 10:01:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E5E428E62 for ; Fri, 11 May 2018 10:01:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 631F828E69; Fri, 11 May 2018 10:01:22 +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=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F7A928E62 for ; Fri, 11 May 2018 10:01:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752991AbeEKKBU (ORCPT ); Fri, 11 May 2018 06:01:20 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:33521 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752977AbeEKKBT (ORCPT ); Fri, 11 May 2018 06:01:19 -0400 Received: from w540.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 5DD71200002; Fri, 11 May 2018 12:01:18 +0200 (CEST) From: Jacopo Mondi To: niklas.soderlund@ragnatech.se Cc: Jacopo Mondi , linux-renesas-soc@vger.kernel.org Subject: [PATCH 3/5] gen3-links: Support linking for digital input Date: Fri, 11 May 2018 12:00:37 +0200 Message-Id: <1526032839-14536-4-git-send-email-jacopo@jmondi.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1526032839-14536-1-git-send-email-jacopo@jmondi.org> References: <1526032839-14536-1-git-send-email-jacopo@jmondi.org> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for linking the digital subdevice to a vin instance. This is useful for D3 board. Signed-off-by: Jacopo Mondi Acked-by: Niklas Söderlund --- gen3-links.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/gen3-links.sh b/gen3-links.sh index cfcdeb7..0ec30e4 100755 --- a/gen3-links.sh +++ b/gen3-links.sh @@ -8,8 +8,14 @@ source $base/scripts/vin-tests.sh source $base/scripts/boards.sh mc_reset -mc_set_link "$csi40name" 1 "$vinname0" 1 -mc_set_link "$csi20name" 1 "$vinname1" 1 -mc_propagate_hdmi "$vinname0" -mc_propagate_cvbs "$vinname1" +if [[ $digital -eq 1 ]]; then + mc_set_link "$hdminame" 1 "$vinname4" 1 + mc_propagate_hdmi_digital "$vinname4" +else + mc_set_link "$csi40name" 1 "$vinname0" 1 + mc_set_link "$csi20name" 1 "$vinname1" 1 + + mc_propagate_hdmi "$vinname0" + mc_propagate_cvbs "$vinname1" +fi