diff options
-rw-r--r-- | drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 12 | ||||
-rw-r--r-- | drivers/gpu/drm/exynos/exynos7_drm_decon.c | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_fimd.c | 8 |
3 files changed, 13 insertions, 13 deletions
diff --git a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c index da183e05f267..f7c5e340bc71 100644 --- a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c +++ b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c | |||
@@ -288,7 +288,7 @@ static void decon_win_set_pixfmt(struct decon_context *ctx, unsigned int win, | |||
288 | return; | 288 | return; |
289 | } | 289 | } |
290 | 290 | ||
291 | DRM_DEBUG_KMS("bpp = %u\n", fb->format->cpp[0] * 8); | 291 | DRM_DEBUG_KMS("cpp = %u\n", fb->format->cpp[0]); |
292 | 292 | ||
293 | /* | 293 | /* |
294 | * In case of exynos, setting dma-burst to 16Word causes permanent | 294 | * In case of exynos, setting dma-burst to 16Word causes permanent |
@@ -331,7 +331,7 @@ static void decon_update_plane(struct exynos_drm_crtc *crtc, | |||
331 | struct decon_context *ctx = crtc->ctx; | 331 | struct decon_context *ctx = crtc->ctx; |
332 | struct drm_framebuffer *fb = state->base.fb; | 332 | struct drm_framebuffer *fb = state->base.fb; |
333 | unsigned int win = plane->index; | 333 | unsigned int win = plane->index; |
334 | unsigned int bpp = fb->format->cpp[0]; | 334 | unsigned int cpp = fb->format->cpp[0]; |
335 | unsigned int pitch = fb->pitches[0]; | 335 | unsigned int pitch = fb->pitches[0]; |
336 | dma_addr_t dma_addr = exynos_drm_fb_dma_addr(fb, 0); | 336 | dma_addr_t dma_addr = exynos_drm_fb_dma_addr(fb, 0); |
337 | u32 val; | 337 | u32 val; |
@@ -367,11 +367,11 @@ static void decon_update_plane(struct exynos_drm_crtc *crtc, | |||
367 | writel(val, ctx->addr + DECON_VIDW0xADD1B0(win)); | 367 | writel(val, ctx->addr + DECON_VIDW0xADD1B0(win)); |
368 | 368 | ||
369 | if (!(ctx->out_type & IFTYPE_HDMI)) | 369 | if (!(ctx->out_type & IFTYPE_HDMI)) |
370 | val = BIT_VAL(pitch - state->crtc.w * bpp, 27, 14) | 370 | val = BIT_VAL(pitch - state->crtc.w * cpp, 27, 14) |
371 | | BIT_VAL(state->crtc.w * bpp, 13, 0); | 371 | | BIT_VAL(state->crtc.w * cpp, 13, 0); |
372 | else | 372 | else |
373 | val = BIT_VAL(pitch - state->crtc.w * bpp, 29, 15) | 373 | val = BIT_VAL(pitch - state->crtc.w * cpp, 29, 15) |
374 | | BIT_VAL(state->crtc.w * bpp, 14, 0); | 374 | | BIT_VAL(state->crtc.w * cpp, 14, 0); |
375 | writel(val, ctx->addr + DECON_VIDW0xADD2(win)); | 375 | writel(val, ctx->addr + DECON_VIDW0xADD2(win)); |
376 | 376 | ||
377 | decon_win_set_pixfmt(ctx, win, fb); | 377 | decon_win_set_pixfmt(ctx, win, fb); |
diff --git a/drivers/gpu/drm/exynos/exynos7_drm_decon.c b/drivers/gpu/drm/exynos/exynos7_drm_decon.c index 3e88269fdc2e..4662d55ed988 100644 --- a/drivers/gpu/drm/exynos/exynos7_drm_decon.c +++ b/drivers/gpu/drm/exynos/exynos7_drm_decon.c | |||
@@ -321,7 +321,7 @@ static void decon_win_set_pixfmt(struct decon_context *ctx, unsigned int win, | |||
321 | break; | 321 | break; |
322 | } | 322 | } |
323 | 323 | ||
324 | DRM_DEBUG_KMS("bpp = %d\n", fb->format->cpp[0] * 8); | 324 | DRM_DEBUG_KMS("cpp = %d\n", fb->format->cpp[0]); |
325 | 325 | ||
326 | /* | 326 | /* |
327 | * In case of exynos, setting dma-burst to 16Word causes permanent | 327 | * In case of exynos, setting dma-burst to 16Word causes permanent |
@@ -398,7 +398,7 @@ static void decon_update_plane(struct exynos_drm_crtc *crtc, | |||
398 | unsigned int last_x; | 398 | unsigned int last_x; |
399 | unsigned int last_y; | 399 | unsigned int last_y; |
400 | unsigned int win = plane->index; | 400 | unsigned int win = plane->index; |
401 | unsigned int bpp = fb->format->cpp[0]; | 401 | unsigned int cpp = fb->format->cpp[0]; |
402 | unsigned int pitch = fb->pitches[0]; | 402 | unsigned int pitch = fb->pitches[0]; |
403 | 403 | ||
404 | if (ctx->suspended) | 404 | if (ctx->suspended) |
@@ -418,7 +418,7 @@ static void decon_update_plane(struct exynos_drm_crtc *crtc, | |||
418 | val = (unsigned long)exynos_drm_fb_dma_addr(fb, 0); | 418 | val = (unsigned long)exynos_drm_fb_dma_addr(fb, 0); |
419 | writel(val, ctx->regs + VIDW_BUF_START(win)); | 419 | writel(val, ctx->regs + VIDW_BUF_START(win)); |
420 | 420 | ||
421 | padding = (pitch / bpp) - fb->width; | 421 | padding = (pitch / cpp) - fb->width; |
422 | 422 | ||
423 | /* buffer size */ | 423 | /* buffer size */ |
424 | writel(fb->width + padding, ctx->regs + VIDW_WHOLE_X(win)); | 424 | writel(fb->width + padding, ctx->regs + VIDW_WHOLE_X(win)); |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index 60f93cad6643..ebc2077b1253 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c | |||
@@ -718,13 +718,13 @@ static void fimd_update_plane(struct exynos_drm_crtc *crtc, | |||
718 | unsigned long val, size, offset; | 718 | unsigned long val, size, offset; |
719 | unsigned int last_x, last_y, buf_offsize, line_size; | 719 | unsigned int last_x, last_y, buf_offsize, line_size; |
720 | unsigned int win = plane->index; | 720 | unsigned int win = plane->index; |
721 | unsigned int bpp = fb->format->cpp[0]; | 721 | unsigned int cpp = fb->format->cpp[0]; |
722 | unsigned int pitch = fb->pitches[0]; | 722 | unsigned int pitch = fb->pitches[0]; |
723 | 723 | ||
724 | if (ctx->suspended) | 724 | if (ctx->suspended) |
725 | return; | 725 | return; |
726 | 726 | ||
727 | offset = state->src.x * bpp; | 727 | offset = state->src.x * cpp; |
728 | offset += state->src.y * pitch; | 728 | offset += state->src.y * pitch; |
729 | 729 | ||
730 | /* buffer start address */ | 730 | /* buffer start address */ |
@@ -743,8 +743,8 @@ static void fimd_update_plane(struct exynos_drm_crtc *crtc, | |||
743 | state->crtc.w, state->crtc.h); | 743 | state->crtc.w, state->crtc.h); |
744 | 744 | ||
745 | /* buffer size */ | 745 | /* buffer size */ |
746 | buf_offsize = pitch - (state->crtc.w * bpp); | 746 | buf_offsize = pitch - (state->crtc.w * cpp); |
747 | line_size = state->crtc.w * bpp; | 747 | line_size = state->crtc.w * cpp; |
748 | val = VIDW_BUF_SIZE_OFFSET(buf_offsize) | | 748 | val = VIDW_BUF_SIZE_OFFSET(buf_offsize) | |
749 | VIDW_BUF_SIZE_PAGEWIDTH(line_size) | | 749 | VIDW_BUF_SIZE_PAGEWIDTH(line_size) | |
750 | VIDW_BUF_SIZE_OFFSET_E(buf_offsize) | | 750 | VIDW_BUF_SIZE_OFFSET_E(buf_offsize) | |