diff mbox series

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

Message ID 20230825024735.1443836-10-rekanorman@chromium.org
State Accepted
Commit 8d3e6030e30fd1f2fad74265219f4ba39170a4ba
Headers show
Series media: cros-ec-cec: Add support for multiple ports | expand

Commit Message

Reka Norman Aug. 25, 2023, 2:44 a.m. UTC
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@chromium.org>
---

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 mbox series

Patch

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,