[PATCH v2 9/9] media: cros-ec-cec: Add Dibbi to the match table

From: Reka Norman
Date: Thu Aug 24 2023 - 22:54:38 EST


Dibbi has two HDMI ports which support CEC:
Port D is EC port 0
Port B is EC port 1

Signed-off-by: Reka Norman <rekanorman@xxxxxxxxxxxx>
---

Changes in v2:
- Use a NULL-terminated conns array for the Dibbi match table entry

drivers/media/cec/platform/cros-ec/cros-ec-cec.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/drivers/media/cec/platform/cros-ec/cros-ec-cec.c b/drivers/media/cec/platform/cros-ec/cros-ec-cec.c
index 993deb85d3e2..21361eff50ff 100644
--- a/drivers/media/cec/platform/cros-ec/cros-ec-cec.c
+++ b/drivers/media/cec/platform/cros-ec/cros-ec-cec.c
@@ -295,6 +295,7 @@ struct cec_dmi_match {
};

static const char *const fizz_conns[] = { "Port B", NULL };
+static const char *const dibbi_conns[] = { "Port D", "Port B", NULL };

static const struct cec_dmi_match cec_dmi_match_table[] = {
/* Google Fizz */
@@ -313,6 +314,8 @@ static const struct cec_dmi_match cec_dmi_match_table[] = {
{ "Google", "Gladios", "0000:00:02.0", fizz_conns },
/* Google Lisbon */
{ "Google", "Lisbon", "0000:00:02.0", fizz_conns },
+ /* Google Dibbi */
+ { "Google", "Dibbi", "0000:00:02.0", dibbi_conns },
};

static struct device *cros_ec_cec_find_hdmi_dev(struct device *dev,
--
2.42.0.rc2.253.gd59a3bf2b4-goog