summaryrefslogtreecommitdiff
path: root/include/drm/bridge/dw_dp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/drm/bridge/dw_dp.h')
-rw-r--r--include/drm/bridge/dw_dp.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/drm/bridge/dw_dp.h b/include/drm/bridge/dw_dp.h
new file mode 100644
index 000000000..22105c3e8
--- /dev/null
+++ b/include/drm/bridge/dw_dp.h
@@ -0,0 +1,28 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+/*
+ * Copyright (c) 2025 Rockchip Electronics Co., Ltd.
+ */
+
+#ifndef __DW_DP__
+#define __DW_DP__
+
+#include <linux/device.h>
+
+struct drm_encoder;
+struct dw_dp;
+
+enum {
+ DW_DP_MP_SINGLE_PIXEL,
+ DW_DP_MP_DUAL_PIXEL,
+ DW_DP_MP_QUAD_PIXEL,
+};
+
+struct dw_dp_plat_data {
+ u32 max_link_rate;
+ u8 pixel_mode;
+};
+
+struct dw_dp *dw_dp_bind(struct device *dev, struct drm_encoder *encoder,
+ const struct dw_dp_plat_data *plat_data);
+void dw_dp_unbind(struct dw_dp *dp);
+#endif /* __DW_DP__ */