瀏覽代碼

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>
Stu Hsieh 7 年之前
父節點
當前提交
55b53f6f7c
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      drivers/gpu/drm/mediatek/mtk_disp_ovl.c

+ 5 - 0
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)
 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) {
 	switch (fmt) {
 	default:
 	default:
 	case DRM_FORMAT_RGB565:
 	case DRM_FORMAT_RGB565: