From 04dd17822334871b23ea2862f7798fb0e0007777 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Sat, 11 May 2024 08:53:19 +0000
Subject: [PATCH] change otg to host mode
---
kernel/drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.h | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/kernel/drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.h b/kernel/drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.h
index cf4dc12..ec10660 100644
--- a/kernel/drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.h
+++ b/kernel/drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.h
@@ -3,17 +3,24 @@
struct dw_hdmi;
+#define CEC_EN BIT(0)
+#define CEC_WAKE BIT(1)
+
struct dw_hdmi_cec_ops {
void (*write)(struct dw_hdmi *hdmi, u8 val, int offset);
u8 (*read)(struct dw_hdmi *hdmi, int offset);
void (*enable)(struct dw_hdmi *hdmi);
void (*disable)(struct dw_hdmi *hdmi);
+ void (*mod)(struct dw_hdmi *hdmi, u8 data, u8 mask, unsigned int reg);
};
struct dw_hdmi_cec_data {
struct dw_hdmi *hdmi;
const struct dw_hdmi_cec_ops *ops;
int irq;
+ int wake_irq;
};
+void dw_hdmi_hpd_wake_up(struct platform_device *pdev);
+
#endif
--
Gitblit v1.6.2