summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/drm.h
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2017-09-11 14:29:52 +0200
committerThierry Reding <treding@nvidia.com>2017-10-20 14:19:54 +0200
commitfb83be8873909ba7c089d1c5cb72873cc2cce7d1 (patch)
tree1e20d25f0278a82b32780ca998861257edfde498 /drivers/gpu/drm/tegra/drm.h
parenta2f2f7403e1ea192ce79584d7050c46e455409dd (diff)
downloadblackbird-op-linux-fb83be8873909ba7c089d1c5cb72873cc2cce7d1.tar.gz
blackbird-op-linux-fb83be8873909ba7c089d1c5cb72873cc2cce7d1.zip
drm/tegra: hdmi: Add cec-notifier support
In order to support CEC the HDMI driver has to inform the CEC driver whenever the physical address changes. So when the EDID is read the CEC driver has to be informed and whenever the hotplug detect goes away. This is done through the cec-notifier framework. The link between the HDMI driver and the CEC driver is done through the hdmi-phandle property in the tegra-cec node in the device tree. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/drm.h')
-rw-r--r--drivers/gpu/drm/tegra/drm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/drm.h b/drivers/gpu/drm/tegra/drm.h
index 9bb6e8ebe40c..ddae331ad8b6 100644
--- a/drivers/gpu/drm/tegra/drm.h
+++ b/drivers/gpu/drm/tegra/drm.h
@@ -119,6 +119,8 @@ void *tegra_drm_alloc(struct tegra_drm *tegra, size_t size, dma_addr_t *iova);
void tegra_drm_free(struct tegra_drm *tegra, size_t size, void *virt,
dma_addr_t iova);
+struct cec_notifier;
+
struct tegra_output {
struct device_node *of_node;
struct device *dev;
@@ -126,6 +128,7 @@ struct tegra_output {
struct drm_panel *panel;
struct i2c_adapter *ddc;
const struct edid *edid;
+ struct cec_notifier *notifier;
unsigned int hpd_irq;
int hpd_gpio;
enum of_gpio_flags hpd_gpio_flags;
OpenPOWER on IntegriCloud