diff mbox

[3/5] gen3-links: Support linking for digital input

Message ID 1526032839-14536-4-git-send-email-jacopo@jmondi.org (mailing list archive)
State Not Applicable
Delegated to: Geert Uytterhoeven
Headers show

Commit Message

Jacopo Mondi May 11, 2018, 10 a.m. UTC
Add support for linking the digital subdevice to a vin instance. This is
useful for D3 board.

Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
---
 gen3-links.sh | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

Comments

Niklas Söderlund May 11, 2018, 11:20 a.m. UTC | #1
Hi Jacopo,


On 2018-05-11 12:00:37 +0200, Jacopo Mondi wrote:
> Add support for linking the digital subdevice to a vin instance. This is
> useful for D3 board.
> 
> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>

As you might have noticed the vin-tests are in need of a big rework. But 
for now I'm happy with the digital property in board.sh. Or maybe we 
should start the renaming process of s/digital/parallel/ as it was a 
really bad name on my behalf to begin with. In any case.

Acked-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>

> ---
>  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
> -- 
> 2.7.4
>
diff mbox

Patch

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