summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorStu Hsieh <stu.hsieh@mediatek.com>2018-08-09 04:15:42 +0200
committerCK Hu <ck.hu@mediatek.com>2018-08-27 05:24:36 +0200
commit55b53f6f7ccf0990ad83acf4fdb0436ff79fdfb6 (patch)
treed127a722130ac2a576f45f61e4af563ddba731b1 /drivers/gpu
parentdrm/mediatek: add RGB color format support for RDMA (diff)
downloadlinux-55b53f6f7ccf0990ad83acf4fdb0436ff79fdfb6.tar.xz
linux-55b53f6f7ccf0990ad83acf4fdb0436ff79fdfb6.zip
drm/mediatek: add the comment about color format setting for OVL
This patch add the comment about color format setting for OVL Signed-off-by: Stu Hsieh <stu.hsieh@mediatek.com> Signed-off-by: CK Hu <ck.hu@mediatek.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/mediatek/mtk_disp_ovl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/mediatek/mtk_disp_ovl.c b/drivers/gpu/drm/mediatek/mtk_disp_ovl.c
index 978782a77629..0facd823c552 100644
--- a/drivers/gpu/drm/mediatek/mtk_disp_ovl.c
+++ b/drivers/gpu/drm/mediatek/mtk_disp_ovl.c
@@ -157,6 +157,11 @@ static void mtk_ovl_layer_off(struct mtk_ddp_comp *comp, unsigned int idx)
static unsigned int ovl_fmt_convert(struct mtk_disp_ovl *ovl, unsigned int fmt)
{
+ /* The return value in switch "MEM_MODE_INPUT_FORMAT_XXX"
+ * is defined in mediatek HW data sheet.
+ * The alphabet order in XXX is no relation to data
+ * arrangement in memory.
+ */
switch (fmt) {
default:
case DRM_FORMAT_RGB565: