Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7194704ybi; Mon, 8 Jul 2019 16:38:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqymxZRqhZyDcyym/EWBoHoPteg0S7c13RTj+ZATF9YnktdxG0BriMV9gOHJ32AT7tGGHaKE X-Received: by 2002:a17:902:9897:: with SMTP id s23mr27963295plp.47.1562629121134; Mon, 08 Jul 2019 16:38:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562629121; cv=none; d=google.com; s=arc-20160816; b=E9Bd3An2ktAHNP52le2zI7doELCVCHogxNL/DjnmqFEKF/xRsbaILFygkS5OhqyPpI S3pRiiTrnVygC3+k9EHVPPmlT8PfdKTRwDIkQVL7goDtyT6T5NkHFr/6Q9zvVB99Pv2C GMVpD3BpMXCS2E5fHOts5J9e7upBKiQGb8GnG7oA92kFRPh3tU9e2yfUUCKRiIXPt9tf FMHnVzaMZc3k48WNn+BLIkV0KlUg0UOR+xIPv6Q81sSSjJJP/lHHsxMc2jErOCMi8Pq1 +O2/tG0H7Zg5Oup1I2mon3Nc4SMHhgr2wDKEBX2abNPDE81j+3okUi8OOZnDuyitqhDk fpcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=v+hxr35dshMzlGUNs9hEvFqogwis/sjo3zsGZ87jeo4=; b=godcustqvkyUi+UtKk8ZLBUOCOvbUbUyA29/sbEI0lLmpn8zGPss0LZEQJierzajKM zXCagD1axW0vxzwVqUnxdbtdlBHEPhmGVfAIN40kaZ5tiqU2FD+QrpSOHz+jDhLutyhU R65pTLc2QGYTh1VJPbfLARb5C5rzxFcghC+2hLQg8Odg6fCvOPAmgIJFFoRANvJHByE3 l/uFHB+1SZiRlVfyNVU1WSvGbSwJTMBUxjdrsuldh/krcrtIpvcZQybPuNIoC+uYcFAZ YYPEiEvrYSbpgt5aX4OYe1o6MvsHQi4j09kpk0sjTOoFf3uNWmVueTLGlkiJj9X5mLc3 Dr0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h11si20316905plr.34.2019.07.08.16.38.26; Mon, 08 Jul 2019 16:38:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728268AbfGHWgX (ORCPT + 99 others); Mon, 8 Jul 2019 18:36:23 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:44939 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727349AbfGHWek (ORCPT ); Mon, 8 Jul 2019 18:34:40 -0400 X-UUID: fdeafbdf9c22410f886fbf0f04f424c0-20190709 X-UUID: fdeafbdf9c22410f886fbf0f04f424c0-20190709 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 2038621960; Tue, 09 Jul 2019 06:34:35 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 9 Jul 2019 06:34:34 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 9 Jul 2019 06:34:34 +0800 From: To: CK Hu , Philipp Zabel , Rob Herring , Matthias Brugger CC: David Airlie , Daniel Vetter , Mark Rutland , , , , , , Yongqiang Niu Subject: [PATCH v4, 16/33] drm/mediatek: add commponent OVL_2L0 Date: Tue, 9 Jul 2019 06:33:56 +0800 Message-ID: <1562625253-29254-17-git-send-email-yongqiang.niu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1562625253-29254-1-git-send-email-yongqiang.niu@mediatek.com> References: <1562625253-29254-1-git-send-email-yongqiang.niu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yongqiang Niu This patch add commponent OVL_2L0 Signed-off-by: Yongqiang Niu Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 2 ++ drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c index b357b24..bcbf673 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c @@ -227,6 +227,7 @@ static void mtk_gamma_set(struct mtk_ddp_comp *comp, static const char * const mtk_ddp_comp_stem[MTK_DDP_COMP_TYPE_MAX] = { [MTK_DISP_OVL] = "ovl", + [MTK_DISP_OVL_2L] = "ovl_2l", [MTK_DISP_RDMA] = "rdma", [MTK_DISP_WDMA] = "wdma", [MTK_DISP_COLOR] = "color", @@ -266,6 +267,7 @@ struct mtk_ddp_comp_match { [DDP_COMPONENT_OD1] = { MTK_DISP_OD, 1, &ddp_od }, [DDP_COMPONENT_OVL0] = { MTK_DISP_OVL, 0, NULL }, [DDP_COMPONENT_OVL1] = { MTK_DISP_OVL, 1, NULL }, + [DDP_COMPONENT_OVL_2L0] = { MTK_DISP_OVL_2L, 0, NULL }, [DDP_COMPONENT_PWM0] = { MTK_DISP_PWM, 0, NULL }, [DDP_COMPONENT_PWM1] = { MTK_DISP_PWM, 1, NULL }, [DDP_COMPONENT_PWM2] = { MTK_DISP_PWM, 2, NULL }, diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h b/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h index bd5fcc9..8f586d0 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h +++ b/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h @@ -25,6 +25,7 @@ enum mtk_ddp_comp_type { MTK_DISP_OVL, + MTK_DISP_OVL_2L, MTK_DISP_RDMA, MTK_DISP_WDMA, MTK_DISP_COLOR, @@ -58,6 +59,7 @@ enum mtk_ddp_comp_id { DDP_COMPONENT_OD0, DDP_COMPONENT_OD1, DDP_COMPONENT_OVL0, + DDP_COMPONENT_OVL_2L0, DDP_COMPONENT_OVL1, DDP_COMPONENT_PWM0, DDP_COMPONENT_PWM1, -- 1.8.1.1.dirty