Skip to content
Snippets Groups Projects
Commit f831b3fe authored by Przemyslaw Marczak's avatar Przemyslaw Marczak Committed by Minkyu Kang
Browse files

video: exynos: fimd: add support for various display color modes


Now fimd BPP color mode depends on vl_bpp value in struct "panel_info".

There is only 16BPP mode check, default mode is 24BPP.
Other fimd modes are usually unneeded and also needs some fimd driver
modifications and tests.

Signed-off-by: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
Signed-off-by: default avatarMinkyu Kang <mk7.kang@samsung.com>
parent 903afe18
No related branches found
No related tags found
No related merge requests found
...@@ -73,18 +73,19 @@ static void exynos_fimd_set_par(unsigned int win_id) ...@@ -73,18 +73,19 @@ static void exynos_fimd_set_par(unsigned int win_id)
/* DATAPATH is DMA */ /* DATAPATH is DMA */
cfg |= EXYNOS_WINCON_DATAPATH_DMA; cfg |= EXYNOS_WINCON_DATAPATH_DMA;
if (pvid->logo_on) /* To get proprietary LOGO */ cfg |= EXYNOS_WINCON_HAWSWP_ENABLE;
cfg |= EXYNOS_WINCON_WSWP_ENABLE;
else /* To get output console on LCD */
cfg |= EXYNOS_WINCON_HAWSWP_ENABLE;
/* dma burst is 16 */ /* dma burst is 16 */
cfg |= EXYNOS_WINCON_BURSTLEN_16WORD; cfg |= EXYNOS_WINCON_BURSTLEN_16WORD;
if (pvid->logo_on) /* To get proprietary LOGO */ switch (pvid->vl_bpix) {
cfg |= EXYNOS_WINCON_BPPMODE_24BPP_888; case 4:
else /* To get output console on LCD */
cfg |= EXYNOS_WINCON_BPPMODE_16BPP_565; cfg |= EXYNOS_WINCON_BPPMODE_16BPP_565;
break;
default:
cfg |= EXYNOS_WINCON_BPPMODE_24BPP_888;
break;
}
writel(cfg, (unsigned int)&fimd_ctrl->wincon0 + writel(cfg, (unsigned int)&fimd_ctrl->wincon0 +
EXYNOS_WINCON(win_id)); EXYNOS_WINCON(win_id));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment