summaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorFancy Fang <chen.fang@nxp.com>2018-06-06 23:32:56 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:32:06 +0800
commitbeb9d163c755fe7ae960b79d85c0c1436a8dc057 (patch)
tree9d0fb378f8430cc587ca3f20d50c71274c34d4e6 /include/drm
parentdae914b351853add6d506925cc0c9742ee698bc4 (diff)
MLK-18535-7 drm/bridge: sec-dsim: add bridge driver support
This is the abstracted bridge driver for Samsung MIPI DSIM controller. This driver only foucses on the DSIM controller itself configurations and never care about any config about the platforms. So it can be shared by different platforms without any modifications. Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/bridge/sec_mipi_dsim.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/include/drm/bridge/sec_mipi_dsim.h b/include/drm/bridge/sec_mipi_dsim.h
new file mode 100644
index 000000000000..b112d434b5c7
--- /dev/null
+++ b/include/drm/bridge/sec_mipi_dsim.h
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2018 NXP
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef __SEC_MIPI_DSIM_H__
+#define __SEC_MIPI_DSIM_H__
+
+#include <drm/drmP.h>
+
+struct sec_mipi_dsim_plat_data {
+ uint32_t version;
+ uint32_t max_data_lanes;
+ uint64_t max_data_rate;
+ enum drm_mode_status (*mode_valid)(struct drm_connector *connector,
+ struct drm_display_mode *mode);
+};
+
+int sec_mipi_dsim_bind(struct device *dev, struct device *master, void *data,
+ struct drm_encoder *encoder, struct resource *res,
+ int irq, const struct sec_mipi_dsim_plat_data *pdata);
+void sec_mipi_dsim_unbind(struct device *dev, struct device *master, void *data);
+
+void sec_mipi_dsim_suspend(struct device *dev);
+void sec_mipi_dsim_resume(struct device *dev);
+
+#endif