From 19b5f0a98b0d85eedde01178eebaf8f006f33b83 Mon Sep 17 00:00:00 2001
From: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Date: Thu, 12 May 2022 08:07:22 +0900
Subject: [PATCH] Create drm lease configuration for AGL IC container
 integration in R-Car H3 and M3 environment

The drm-lease-manager improved multi connector support in one lease.  A meta-drm-lease
layer has example config for generic use case only.

This patch add drm lease config for AGL IC integrations.
Currently rpi4 and qemu support is under working, this patch support only a
R-Car H3 and M3 environment.

Bug-AGL: SPEC-4370

Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Change-Id: I25113be28a541adc073637caf9180810eedd7ea9
---
 .../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-lxc/dynamic-layers/meta-rcar-gen3/recipes-graphics/drm-lease-manager/drm-lease-manager-init.bbappend
 create mode 100644 meta-agl-lxc/dynamic-layers/meta-rcar-gen3/recipes-graphics/drm-lease-manager/drm-lease-manager-init/drm-lease-manager.ini

diff --git a/meta-agl-lxc/dynamic-layers/meta-rcar-gen3/recipes-graphics/drm-lease-manager/drm-lease-manager-init.bbappend b/meta-agl-lxc/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-lxc/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-lxc/dynamic-layers/meta-rcar-gen3/recipes-graphics/drm-lease-manager/drm-lease-manager-init/drm-lease-manager.ini b/meta-agl-lxc/dynamic-layers/meta-rcar-gen3/recipes-graphics/drm-lease-manager/drm-lease-manager-init/drm-lease-manager.ini
new file mode 100644
index 00000000..0848f20d
--- /dev/null
+++ b/meta-agl-lxc/dynamic-layers/meta-rcar-gen3/recipes-graphics/drm-lease-manager/drm-lease-manager-init/drm-lease-manager.ini
@@ -0,0 +1,7 @@
+[[lease]]
+name="lease-ivi"
+connectors=["HDMI-A-1", "LVDS-1"]
+
+[[lease]]
+name="lease-cluster"
+connectors=["HDMI-A-2"]
-- 
2.16.6