summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/meson/meson_encoder_hdmi.h
diff options
context:
space:
mode:
authorNeil Armstrong <narmstrong@baylibre.com>2021-10-20 14:39:44 +0200
committerNeil Armstrong <narmstrong@baylibre.com>2021-11-12 10:09:19 +0100
commite67f6037ae1be34b2b686bab72caa41d57714534 (patch)
tree0ef71fa249927a597300b55f14fce612ae40c22b /drivers/gpu/drm/meson/meson_encoder_hdmi.h
parentd235a7c426b1a4867d2db8f640b46843251edd26 (diff)
drm/meson: split out encoder from meson_dw_hdmi
This moves all the non-DW-HDMI code where it should be: an encoder in the drm/meson core driver. The bridge functions are copied as-is, except: - the encoder init uses the simple kms helper - the mode_set has been moved to atomic_enable() - debug prints are converted to dev_debg() For now the bridge attach flags is 0, DRM_BRIDGE_ATTACH_NO_CONNECTOR will be handled later. The meson dw-hdmi glue is slightly fixed to live without the encoder in the same driver. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Acked-by: Sam Ravnborg <sam@ravnborg.org> Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> [narmstrong: fixed warning because missing meson_encoder_hdmi.h include] Link: https://patchwork.freedesktop.org/patch/msgid/20211020123947.2585572-4-narmstrong@baylibre.com
Diffstat (limited to 'drivers/gpu/drm/meson/meson_encoder_hdmi.h')
-rw-r--r--drivers/gpu/drm/meson/meson_encoder_hdmi.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/drm/meson/meson_encoder_hdmi.h b/drivers/gpu/drm/meson/meson_encoder_hdmi.h
new file mode 100644
index 000000000000..ed19494f0956
--- /dev/null
+++ b/drivers/gpu/drm/meson/meson_encoder_hdmi.h
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+/*
+ * Copyright (C) 2021 BayLibre, SAS
+ * Author: Neil Armstrong <narmstrong@baylibre.com>
+ */
+
+#ifndef __MESON_ENCODER_HDMI_H
+#define __MESON_ENCODER_HDMI_H
+
+int meson_encoder_hdmi_init(struct meson_drm *priv);
+
+#endif /* __MESON_ENCODER_HDMI_H */