Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c95e523 authored by Kirill A. Shutemov's avatar Kirill A. Shutemov Committed by Dave Airlie
Browse files

gma500: mdfld_dsi_dpi_mode_set() do not corrupt DSPSTRIDE



The proper stride value set in mdfld__intel_pipe_set_base().

TODO: move tc35876x support to separate driver and get rid of all
if (mdfld_get_panel_type(dev, pipe) == TC35876X) { ... }

Signed-off-by: default avatarKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 6e079d53
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -869,7 +869,6 @@ void mdfld_dsi_dpi_mode_set(struct drm_encoder *encoder,
		mdfld_set_pipe_timing(dsi_config, pipe);
		mdfld_set_pipe_timing(dsi_config, pipe);


		REG_WRITE(DSPABASE, 0x00);
		REG_WRITE(DSPABASE, 0x00);
		REG_WRITE(DSPASTRIDE, (mode->hdisplay * 4));
		REG_WRITE(DSPASIZE,
		REG_WRITE(DSPASIZE,
			((mode->vdisplay - 1) << 16) | (mode->hdisplay - 1));
			((mode->vdisplay - 1) << 16) | (mode->hdisplay - 1));