diff options
author | Przemyslaw Marczak <p.marczak@samsung.com> | 2014-01-22 11:24:15 +0100 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2014-02-03 15:36:14 +0900 |
commit | f831b3fe0f532a4f877b2e5877183e16b64cb11a (patch) | |
tree | c48d35a18d6fa073f1f547dfeb3f3e7a3bcc8499 /drivers/video/exynos_fimd.c | |
parent | 903afe18bb272d6d5c12e0be22b0f8fd35fa6f1b (diff) | |
download | u-boot-imx-f831b3fe0f532a4f877b2e5877183e16b64cb11a.zip u-boot-imx-f831b3fe0f532a4f877b2e5877183e16b64cb11a.tar.gz u-boot-imx-f831b3fe0f532a4f877b2e5877183e16b64cb11a.tar.bz2 |
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: Przemyslaw Marczak <p.marczak@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'drivers/video/exynos_fimd.c')
-rw-r--r-- | drivers/video/exynos_fimd.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/video/exynos_fimd.c b/drivers/video/exynos_fimd.c index f962c4f..cebbba7 100644 --- a/drivers/video/exynos_fimd.c +++ b/drivers/video/exynos_fimd.c @@ -73,18 +73,19 @@ static void exynos_fimd_set_par(unsigned int win_id) /* DATAPATH is DMA */ cfg |= EXYNOS_WINCON_DATAPATH_DMA; - if (pvid->logo_on) /* To get proprietary LOGO */ - cfg |= EXYNOS_WINCON_WSWP_ENABLE; - else /* To get output console on LCD */ - cfg |= EXYNOS_WINCON_HAWSWP_ENABLE; + cfg |= EXYNOS_WINCON_HAWSWP_ENABLE; /* dma burst is 16 */ cfg |= EXYNOS_WINCON_BURSTLEN_16WORD; - if (pvid->logo_on) /* To get proprietary LOGO */ - cfg |= EXYNOS_WINCON_BPPMODE_24BPP_888; - else /* To get output console on LCD */ + switch (pvid->vl_bpix) { + case 4: cfg |= EXYNOS_WINCON_BPPMODE_16BPP_565; + break; + default: + cfg |= EXYNOS_WINCON_BPPMODE_24BPP_888; + break; + } writel(cfg, (unsigned int)&fimd_ctrl->wincon0 + EXYNOS_WINCON(win_id)); |