drm/exynos: check NV12M format specific to Exynos properly
commit01ed812671c1163b35bf6ce9be221bd371bf9a8f
authorInki Dae <inki.dae@samsung.com>
Mon, 20 Aug 2012 11:05:56 +0000 (20 20:05 +0900)
committerInki Dae <inki.dae@samsung.com>
Thu, 4 Oct 2012 01:06:00 +0000 (4 10:06 +0900)
treef79d48db7a6ae3cda29beedb9a827e7ea45ba87f
parent3d05859fd78bbc0b04cca929aea494f5e6b8235b
drm/exynos: check NV12M format specific to Exynos properly

this patch adds buf_cnt variable in exynos_drm_fb structure and
that means a buffer count to drm framebuffer and also adds two
functions to get/set the buffer count from/to exynos_drm_fb structure.
if pixel format is not DRM_FORMAT_NV12MT then it gets a buffer count
to drm framebuffer refering to mode_cmd->handles and offsets.
but when booted, the buffer count will always be 1 because pixel
format of console framebuffer is RGB format.

Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_fb.c
drivers/gpu/drm/exynos/exynos_drm_fb.h
drivers/gpu/drm/exynos/exynos_drm_fbdev.c
drivers/gpu/drm/exynos/exynos_drm_plane.c