mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 18:13:04 +00:00
7216436420
Some panels only accept bpc (bit per color) 6-bit. But, the default bpc in mt8173 display data path is 8-bit. If we didn't enable dithering function to convert bpc, display cannot show the smooth grayscale image. In mt8173, the dithering function in OD (OverDrive) and GAMMA module, we have to config them with connector->display_mode.bpc when CRTC initial. 1. Clear the default value at *_DITHER_5 and *_DITHER_7 register. 2. Calculate the LSB_ERR_SHIFT bits and ADD_LSHIFT bits two values. i.e. Input bpc of OD is 10 bits, we assume the bpc of panel is 6-bit, so, we need to set 4-bit to LSB_ERR_SHIFT and ADD_LSHIFT bits respectively. 3. Then, set the OD or GAMMA to dithering mode depends on path-1 or path-2. Signed-off-by: Bibby Hsieh <bibby.hsieh@mediatek.com> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
mtk_cec.c | ||
mtk_cec.h | ||
mtk_disp_ovl.c | ||
mtk_disp_rdma.c | ||
mtk_dpi_regs.h | ||
mtk_dpi.c | ||
mtk_drm_crtc.c | ||
mtk_drm_crtc.h | ||
mtk_drm_ddp_comp.c | ||
mtk_drm_ddp_comp.h | ||
mtk_drm_ddp.c | ||
mtk_drm_ddp.h | ||
mtk_drm_drv.c | ||
mtk_drm_drv.h | ||
mtk_drm_fb.c | ||
mtk_drm_fb.h | ||
mtk_drm_gem.c | ||
mtk_drm_gem.h | ||
mtk_drm_plane.c | ||
mtk_drm_plane.h | ||
mtk_dsi.c | ||
mtk_hdmi_ddc.c | ||
mtk_hdmi_regs.h | ||
mtk_hdmi.c | ||
mtk_hdmi.h | ||
mtk_mipi_tx.c | ||
mtk_mt8173_hdmi_phy.c |