From 2466346b7ae14089fbaf31e9b4863a1897812e2e Mon Sep 17 00:00:00 2001
From: Damian Hobson-Garcia <dhobsong@igel.co.jp>
Date: Fri, 15 Apr 2022 16:55:23 +0900
Subject: [PATCH] drm-lease: add drm-lease-manager configuration for R-Car

Add a drm-lease-manager configuration file that reflects
the available outputs on the renesas R-Car.  Also
adds the extra HDMI output from the kingfisher board if
available.

Bug-AGL: SPEC-3815

Change-Id: Idfccd63cbbba8e118df501e575625769f0ced293
Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
---
 .../drm-lease-manager/drm-lease-manager-init.bbappend              | 2 ++
 .../drm-lease-manager/drm-lease-manager-init/drm-lease-manager.ini | 7 +++++++
 2 files changed, 9 insertions(+)
 create mode 100644 meta-agl-drm-lease/dynamic-layers/meta-rcar-gen3/recipes-graphics/drm-lease-manager/drm-lease-manager-init.bbappend
 create mode 100644 meta-agl-drm-lease/dynamic-layers/meta-rcar-gen3/recipes-graphics/drm-lease-manager/drm-lease-manager-init/drm-lease-manager.ini

diff --git a/meta-agl-drm-lease/dynamic-layers/meta-rcar-gen3/recipes-graphics/drm-lease-manager/drm-lease-manager-init.bbappend b/meta-agl-drm-lease/dynamic-layers/meta-rcar-gen3/recipes-graphics/drm-lease-manager/drm-lease-manager-init.bbappend
new file mode 100644
index 00000000..371f6539
--- /dev/null
+++ b/meta-agl-drm-lease/dynamic-layers/meta-rcar-gen3/recipes-graphics/drm-lease-manager/drm-lease-manager-init.bbappend
@@ -0,0 +1,2 @@
+FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
+SRC_URI = "file://drm-lease-manager.ini"
diff --git a/meta-agl-drm-lease/dynamic-layers/meta-rcar-gen3/recipes-graphics/drm-lease-manager/drm-lease-manager-init/drm-lease-manager.ini b/meta-agl-drm-lease/dynamic-layers/meta-rcar-gen3/recipes-graphics/drm-lease-manager/drm-lease-manager-init/drm-lease-manager.ini
new file mode 100644
index 00000000..f804343c
--- /dev/null
+++ b/meta-agl-drm-lease/dynamic-layers/meta-rcar-gen3/recipes-graphics/drm-lease-manager/drm-lease-manager-init/drm-lease-manager.ini
@@ -0,0 +1,7 @@
+[[lease]]
+name="lease0"
+connectors=["HDMI-A-1", "LVDS-1"]
+
+[[lease]]
+name="lease1"
+connectors=["HDMI-A-2"]
-- 
2.16.6