From patchwork Mon Jun 15 12:19:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 11604709 X-Patchwork-Delegate: kieran@bingham.xyz Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 93C0092A for ; Mon, 15 Jun 2020 12:16:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7BDE8206D7 for ; Mon, 15 Jun 2020 12:16:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729883AbgFOMQ3 (ORCPT ); Mon, 15 Jun 2020 08:16:29 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:33351 "EHLO relay11.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729879AbgFOMQ2 (ORCPT ); Mon, 15 Jun 2020 08:16:28 -0400 Received: from uno.lan (93-34-118-233.ip49.fastwebnet.it [93.34.118.233]) (Authenticated sender: jacopo@jmondi.org) by relay11.mail.gandi.net (Postfix) with ESMTPSA id C3A82100008; Mon, 15 Jun 2020 12:16:25 +0000 (UTC) From: Jacopo Mondi To: niklas.soderlund@ragnatech.se Cc: Jacopo Mondi , kieran.bingham+renesas@ideasonboard.com, laurent.pinchart@ideasonboard.com, linux-renesas-soc@vger.kernel.org Subject: [PATCH 3/3] scripts/boards.sh: Add support for E3 SoC Date: Mon, 15 Jun 2020 14:19:35 +0200 Message-Id: <20200615121935.108142-4-jacopo@jmondi.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200615121935.108142-1-jacopo@jmondi.org> References: <20200615121935.108142-1-jacopo@jmondi.org> MIME-Version: 1.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Add support for R-Car E3 R8A77990 SoC in scripts/boards.sh. The E3 SoC features VIN4 and VIN5 instances only, so add them to yavta-hdmi and yavta-cvbs to support capture from there. Signed-off-by: Jacopo Mondi --- scripts/boards.sh | 15 ++++++++++++--- yavta-cvbs | 10 ++++++++++ yavta-hdmi | 10 ++++++++++ 3 files changed, 32 insertions(+), 3 deletions(-) diff --git a/scripts/boards.sh b/scripts/boards.sh index 84361d9..69a4d77 100644 --- a/scripts/boards.sh +++ b/scripts/boards.sh @@ -3,6 +3,11 @@ info=$(strings /proc/device-tree/model) case $info in + "Renesas Ebisu board based on r8a77990") + gen="gen3" + vins="4 5" + csis="40" + ;; "Renesas Salvator-X board based on r8a7795 ES1.x") gen="gen3" vins="0 1 2 3 4 5 6 7" @@ -65,17 +70,21 @@ if [[ "$gen" == "gen3" ]]; then esac done - if [[ "$info" == "Renesas Eagle board based on r8a77970" ]]; then + case "$info" in + "Renesas Eagle board based on r8a77970" | \ + "Renesas Ebisu board based on r8a77990") cvbsname="adv748x 0-0070 afe" hdminame="adv748x 0-0070 hdmi" txaname="adv748x 0-0070 txa" txbname="adv748x 0-0070 txb" - else + ;; + *) cvbsname="adv748x 4-0070 afe" hdminame="adv748x 4-0070 hdmi" txaname="adv748x 4-0070 txa" txbname="adv748x 4-0070 txb" - fi + ;; + esac fi diff --git a/yavta-cvbs b/yavta-cvbs index 823db48..c32df1c 100755 --- a/yavta-cvbs +++ b/yavta-cvbs @@ -33,6 +33,16 @@ case $vc in dev=/dev/$vin3 csipad=4 ;; + 4) + vinname=$vinname4 + dev=/dev/$vin4 + csipad=1 + ;; + 5) + vinname=$vinname5 + dev=/dev/$vin5 + csipad=2 + ;; *) echo "Unkown VC '$vc'" exit 1 diff --git a/yavta-hdmi b/yavta-hdmi index b371d3b..62adf00 100755 --- a/yavta-hdmi +++ b/yavta-hdmi @@ -33,6 +33,16 @@ case $vc in dev=/dev/$vin3 csipad=4 ;; + 4) + vinname=$vinname4 + dev=/dev/$vin4 + csipad=1 + ;; + 5) + vinname=$vinname5 + dev=/dev/$vin5 + csipad=2 + ;; *) echo "Unkown VC '$vc'" exit 1