Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp417239ybi; Tue, 16 Jul 2019 22:54:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqwBlGGvfKnzNLD4IGEgtX7xBkVA7ayWNr0D0FESvmHKeWp9NSoxas0hWZZRMJlufKSBbaFz X-Received: by 2002:a63:e251:: with SMTP id y17mr10055557pgj.8.1563342876412; Tue, 16 Jul 2019 22:54:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563342876; cv=none; d=google.com; s=arc-20160816; b=zBTdD8ZQCaohPm7dxqA80g7Qevs6kf9wOBOwy5lUNXKva8QKMtogjlF+mywjbjSXDw ztMdBSY7ChzoS/xYjQ+/BJVTPpGwgbML2pVgk9ubZVqWFE6PJ2YN8lDtg5PAHSsVWA+n h+CcUZgYOcVIWPCcV4xHUvSdWhX8S5U04mgNg2JPRA2QCX/7DhCXlhwwNfjXeTL3NUq1 WCPSf6Az4DvUVSmhqvaAZrQBrNRcP7i0AubOLy/AC6OVYYM0imoW0OJ8X1kCSJ2EGIfo DS5rcyM2RD/XD5G3FB6OuaAN0+MOF9mFtsq3xwyzSlwxng0XdJCZa3fRpq4F2ynUU0Ix onYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=wNqhzBfjT0nXJu78/yzCjVm2e027XMv5IvevGgRMufA=; b=mKSQG5tGamFYv8mW7Hck+51Q9p8TEjE/gPcU0/SoYvtf0vMixEqyM16tEMnlbDtJ0e i6aegeNAmYDNhJnnBcpBnVlSLw4Cu/2MhLME8yGG3oJYNa6WTM+dy07ijjISOgRwYVUZ QaSd7J9je+D3jLbcY76T1hkcwUPMU8jsQzFkBoSOsBluIUidYSvNMUcxA5yiw53oDCEv N68D42dcUinkMri7+xBftdnGDXhdt6v4KEEjxhR7yhWxQ6HXYkqBULrEoAr0K5RlWhC6 x0Q6QJxl+BPi99HK4Xe3IMw5TpDsspxExjsvOEb6H6liSpQgyLDBUG/Z0AmtcB7ZIj0t DhYQ== 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 s19si23558395pgm.291.2019.07.16.22.54.19; Tue, 16 Jul 2019 22:54:36 -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 S1726207AbfGQFyB (ORCPT + 99 others); Wed, 17 Jul 2019 01:54:01 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:20499 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725294AbfGQFyA (ORCPT ); Wed, 17 Jul 2019 01:54:00 -0400 X-UUID: 6abfcd68318c4ea9953d429e360fc308-20190717 X-UUID: 6abfcd68318c4ea9953d429e360fc308-20190717 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 2052319071; Wed, 17 Jul 2019 13:53:50 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by MTKMBS31N2.mediatek.inc (172.27.4.87) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 17 Jul 2019 13:53:48 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 17 Jul 2019 13:53:48 +0800 Message-ID: <1563342828.29169.18.camel@mtksdaap41> Subject: Re: [PATCH v4, 21/33] drm/mediatek: add function to background color input select for ovl/ovl_2l direct link From: CK Hu To: CC: Philipp Zabel , Rob Herring , Matthias Brugger , "David Airlie" , Daniel Vetter , Mark Rutland , , , , , Date: Wed, 17 Jul 2019 13:53:48 +0800 In-Reply-To: <1562625253-29254-22-git-send-email-yongqiang.niu@mediatek.com> References: <1562625253-29254-1-git-send-email-yongqiang.niu@mediatek.com> <1562625253-29254-22-git-send-email-yongqiang.niu@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-SNTS-SMTP: C256F03D4194D5B33990FFB01DF1B7245E0181B5106E7E4F3FA6FAEC21AA3B8C2000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Yongqiang: On Tue, 2019-07-09 at 06:34 +0800, yongqiang.niu@mediatek.com wrote: > From: Yongqiang Niu > > This patch add function to background color input select for ovl/ovl_2l direct link > for ovl/ovl_2l direct link usecase, we need set background color > input select for these hardware. > this is preparation patch for ovl/ovl_2l usecase > Reviewed-by: CK Hu > Signed-off-by: Yongqiang Niu > --- > drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h b/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h > index a0ea8c9..ec6f329a 100644 > --- a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h > +++ b/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h > @@ -92,6 +92,8 @@ struct mtk_ddp_comp_funcs { > struct mtk_plane_state *state); > void (*gamma_set)(struct mtk_ddp_comp *comp, > struct drm_crtc_state *state); > + void (*bgclr_in_on)(struct mtk_ddp_comp *comp); > + void (*bgclr_in_off)(struct mtk_ddp_comp *comp); > }; > > struct mtk_ddp_comp { > @@ -172,6 +174,18 @@ static inline void mtk_ddp_gamma_set(struct mtk_ddp_comp *comp, > comp->funcs->gamma_set(comp, state); > } > > +static inline void mtk_ddp_comp_bgclr_in_on(struct mtk_ddp_comp *comp) > +{ > + if (comp->funcs && comp->funcs->bgclr_in_on) > + comp->funcs->bgclr_in_on(comp); > +} > + > +static inline void mtk_ddp_comp_bgclr_in_off(struct mtk_ddp_comp *comp) > +{ > + if (comp->funcs && comp->funcs->bgclr_in_off) > + comp->funcs->bgclr_in_off(comp); > +} > + > int mtk_ddp_comp_get_id(struct device_node *node, > enum mtk_ddp_comp_type comp_type); > int mtk_ddp_comp_init(struct device *dev, struct device_node *comp_node,