summaryrefslogtreecommitdiff
path: root/samsung/exynos_drm_dsim.c
diff options
context:
space:
mode:
authorAdrian Salido <salidoa@google.com>2020-09-30 11:04:48 -0700
committerAdrian Salido <salidoa@google.com>2020-10-02 09:58:20 -0700
commit24add638061073152ab6d411245819d9ce98c415 (patch)
treeada7c79905a3b418d3ae62f6eb85041afd85bc40 /samsung/exynos_drm_dsim.c
parent5a132c4604a84f3d9127d9c48b09128d51198b4d (diff)
downloaddisplay-24add638061073152ab6d411245819d9ce98c415.tar.gz
samsung: port drm driver to gs-mainline
Make updates to build on top of android-gs-pixel-mainline branch: * Replace struct timeval with struct timespec64 * Remove usage of mode vrefresh * Update changed DRM/KMS framework APIs Signed-off-by: Adrian Salido <salidoa@google.com> Change-Id: I0e41b0c46cdd7427cd25112045c3d25d1a294588
Diffstat (limited to 'samsung/exynos_drm_dsim.c')
-rw-r--r--samsung/exynos_drm_dsim.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/samsung/exynos_drm_dsim.c b/samsung/exynos_drm_dsim.c
index cfa2aaf..d7a7311 100644
--- a/samsung/exynos_drm_dsim.c
+++ b/samsung/exynos_drm_dsim.c
@@ -40,7 +40,7 @@
#include <video/mipi_display.h>
#if defined(CONFIG_CPU_IDLE)
-#include <soc/samsung/exynos-cpupm.h>
+#include <soc/google/exynos-cpupm.h>
#endif
#include <dt-bindings/soc/google/gs101-devfreq.h>
@@ -491,7 +491,7 @@ static void dsim_adjust_video_timing(struct dsim_device *dsim,
p_timing->hfp = vm.hfront_porch;
p_timing->hbp = vm.hback_porch;
p_timing->hsa = vm.hsync_len;
- p_timing->vrefresh = mode->vrefresh;
+ p_timing->vrefresh = drm_mode_vrefresh(mode);
dsim_set_clock_mode(dsim, mode);
}
@@ -879,7 +879,7 @@ static int dsim_host_attach(struct mipi_dsi_host *host,
return PTR_ERR(panel);
}
- bridge = devm_drm_panel_bridge_add(host->dev, panel,
+ bridge = devm_drm_panel_bridge_add_typed(host->dev, panel,
DRM_MODE_CONNECTOR_DSI);
if (IS_ERR(bridge)) {
dsim_err(dsim, "failed to create panel bridge\n");
@@ -887,7 +887,7 @@ static int dsim_host_attach(struct mipi_dsi_host *host,
}
}
- ret = drm_bridge_attach(&dsim->encoder, bridge, dsim->encoder.bridge);
+ ret = drm_bridge_attach(&dsim->encoder, bridge, NULL, 0);
if (ret) {
dsim_err(dsim, "Unable to attach panel bridge\n");
} else {
@@ -1077,7 +1077,7 @@ static int dsim_write_data(struct dsim_device *dsim, u32 id, unsigned long d0,
case MIPI_DSI_DCS_SHORT_WRITE:
case MIPI_DSI_DCS_SHORT_WRITE_PARAM:
case MIPI_DSI_SET_MAXIMUM_RETURN_PACKET_SIZE:
- case MIPI_DSI_DCS_COMPRESSION_MODE:
+ case MIPI_DSI_COMPRESSION_MODE:
case MIPI_DSI_COLOR_MODE_OFF:
case MIPI_DSI_COLOR_MODE_ON:
case MIPI_DSI_SHUTDOWN_PERIPHERAL:
@@ -1097,7 +1097,7 @@ static int dsim_write_data(struct dsim_device *dsim, u32 id, unsigned long d0,
/* long packet types of packet types for command. */
case MIPI_DSI_GENERIC_LONG_WRITE:
case MIPI_DSI_DCS_LONG_WRITE:
- case MIPI_DSI_PPS_LONG_WRITE:
+ case MIPI_DSI_PICTURE_PARAMETER_SET:
dsim_long_data_wr(dsim, d0, d1);
dsim_reg_wr_tx_header(dsim->id, id, d1 & 0xff,
(d1 & 0xff00) >> 8, false);