linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: yongqiang.niu <yongqiang.niu@mediatek.com>
To: Matthias Brugger <matthias.bgg@gmail.com>,
	Chun-Kuang Hu <chunkuang.hu@kernel.org>
Cc: Rob Herring <robh+dt@kernel.org>,
	Philipp Zabel <p.zabel@pengutronix.de>,
	 David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>,
	Jassi Brar <jassisinghbrar@gmail.com>,
	Fabien Parent <fparent@baylibre.com>,
	"Dennis YC Hsieh" <dennis-yc.hsieh@mediatek.com>,
	<devicetree@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-mediatek@lists.infradead.org>,
	 <linux-kernel@vger.kernel.org>,
	<dri-devel@lists.freedesktop.org>,
	<Project_Global_Chrome_Upstream_Group@mediatek.com>,
	Hsin-Yi Wang <hsinyi@chromium.org>, CK Hu <ck.hu@mediatek.com>
Subject: Re: [PATCH v10, 4/5] soc: mediatek: add mtk mutex support for MT8192
Date: Mon, 8 Nov 2021 18:56:50 +0800	[thread overview]
Message-ID: <d08bcbc965c1f8c929cdecf66e8567cd9eca6d41.camel@mediatek.com> (raw)
In-Reply-To: <1ec3cefb-12cd-86e8-fff2-1ab0d10034b6@gmail.com>

On Fri, 2021-10-08 at 13:27 +0200, Matthias Brugger wrote:
> 
> On 30/09/2021 17:52, Yongqiang Niu wrote:
> > Add mtk mutex support for MT8192 SoC.
> > 
> > Signed-off-by: Yongqiang Niu <yongqiang.niu@mediatek.com>
> > Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
> > Reviewed-by: CK Hu <ck.hu@mediatek.com>
> 
> Applied to v5.15-next/soc
> 
> Thanks!

please help review other patches of this serial, tks



> 
> > ---
> >   drivers/soc/mediatek/mtk-mutex.c | 35
> > ++++++++++++++++++++++++++++++++
> >   1 file changed, 35 insertions(+)
> > 
> > diff --git a/drivers/soc/mediatek/mtk-mutex.c
> > b/drivers/soc/mediatek/mtk-mutex.c
> > index 2e4bcc300576..2ca55bb5a8be 100644
> > --- a/drivers/soc/mediatek/mtk-mutex.c
> > +++ b/drivers/soc/mediatek/mtk-mutex.c
> > @@ -39,6 +39,18 @@
> >   #define MT8167_MUTEX_MOD_DISP_DITHER		15
> >   #define MT8167_MUTEX_MOD_DISP_UFOE		16
> >   
> > +#define MT8192_MUTEX_MOD_DISP_OVL0		0
> > +#define MT8192_MUTEX_MOD_DISP_OVL0_2L		1
> > +#define MT8192_MUTEX_MOD_DISP_RDMA0		2
> > +#define MT8192_MUTEX_MOD_DISP_COLOR0		4
> > +#define MT8192_MUTEX_MOD_DISP_CCORR0		5
> > +#define MT8192_MUTEX_MOD_DISP_AAL0		6
> > +#define MT8192_MUTEX_MOD_DISP_GAMMA0		7
> > +#define MT8192_MUTEX_MOD_DISP_POSTMASK0		8
> > +#define MT8192_MUTEX_MOD_DISP_DITHER0		9
> > +#define MT8192_MUTEX_MOD_DISP_OVL2_2L		16
> > +#define MT8192_MUTEX_MOD_DISP_RDMA4		17
> > +
> >   #define MT8183_MUTEX_MOD_DISP_RDMA0		0
> >   #define MT8183_MUTEX_MOD_DISP_RDMA1		1
> >   #define MT8183_MUTEX_MOD_DISP_OVL0		9
> > @@ -214,6 +226,20 @@ static const unsigned int
> > mt8183_mutex_mod[DDP_COMPONENT_ID_MAX] = {
> >   	[DDP_COMPONENT_WDMA0] = MT8183_MUTEX_MOD_DISP_WDMA0,
> >   };
> >   
> > +static const unsigned int mt8192_mutex_mod[DDP_COMPONENT_ID_MAX] =
> > {
> > +	[DDP_COMPONENT_AAL0] = MT8192_MUTEX_MOD_DISP_AAL0,
> > +	[DDP_COMPONENT_CCORR] = MT8192_MUTEX_MOD_DISP_CCORR0,
> > +	[DDP_COMPONENT_COLOR0] = MT8192_MUTEX_MOD_DISP_COLOR0,
> > +	[DDP_COMPONENT_DITHER] = MT8192_MUTEX_MOD_DISP_DITHER0,
> > +	[DDP_COMPONENT_GAMMA] = MT8192_MUTEX_MOD_DISP_GAMMA0,
> > +	[DDP_COMPONENT_POSTMASK0] = MT8192_MUTEX_MOD_DISP_POSTMASK0,
> > +	[DDP_COMPONENT_OVL0] = MT8192_MUTEX_MOD_DISP_OVL0,
> > +	[DDP_COMPONENT_OVL_2L0] = MT8192_MUTEX_MOD_DISP_OVL0_2L,
> > +	[DDP_COMPONENT_OVL_2L2] = MT8192_MUTEX_MOD_DISP_OVL2_2L,
> > +	[DDP_COMPONENT_RDMA0] = MT8192_MUTEX_MOD_DISP_RDMA0,
> > +	[DDP_COMPONENT_RDMA4] = MT8192_MUTEX_MOD_DISP_RDMA4,
> > +};
> > +
> >   static const unsigned int mt2712_mutex_sof[MUTEX_SOF_DSI3 + 1] =
> > {
> >   	[MUTEX_SOF_SINGLE_MODE] = MUTEX_SOF_SINGLE_MODE,
> >   	[MUTEX_SOF_DSI0] = MUTEX_SOF_DSI0,
> > @@ -275,6 +301,13 @@ static const struct mtk_mutex_data
> > mt8183_mutex_driver_data = {
> >   	.no_clk = true,
> >   };
> >   
> > +static const struct mtk_mutex_data mt8192_mutex_driver_data = {
> > +	.mutex_mod = mt8192_mutex_mod,
> > +	.mutex_sof = mt8183_mutex_sof,
> > +	.mutex_mod_reg = MT8183_MUTEX0_MOD0,
> > +	.mutex_sof_reg = MT8183_MUTEX0_SOF0,
> > +};
> > +
> >   struct mtk_mutex *mtk_mutex_get(struct device *dev)
> >   {
> >   	struct mtk_mutex_ctx *mtx = dev_get_drvdata(dev);
> > @@ -507,6 +540,8 @@ static const struct of_device_id
> > mutex_driver_dt_match[] = {
> >   	  .data = &mt8173_mutex_driver_data},
> >   	{ .compatible = "mediatek,mt8183-disp-mutex",
> >   	  .data = &mt8183_mutex_driver_data},
> > +	{ .compatible = "mediatek,mt8192-disp-mutex",
> > +	  .data = &mt8192_mutex_driver_data},
> >   	{},
> >   };
> >   MODULE_DEVICE_TABLE(of, mutex_driver_dt_match);
> > 
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2021-11-08 10:59 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-30 15:52 [PATCH v10, 0/5] soc: mediatek: add mtk mutex support for MT8192 Yongqiang Niu
2021-09-30 15:52 ` [PATCH v10, 1/5] drm/mediatek: add component OVL_2L2 Yongqiang Niu
2021-11-15 23:34   ` Chun-Kuang Hu
2021-09-30 15:52 ` [PATCH v10, 2/5] drm/mediatek: add component POSTMASK Yongqiang Niu
2021-10-01 11:00   ` Dafna Hirschfeld
2021-10-08  2:09     ` yongqiang.niu
2021-10-08 11:32       ` Matthias Brugger
2021-11-15 23:36   ` Chun-Kuang Hu
2021-09-30 15:52 ` [PATCH v10, 3/5] drm/mediatek: add component RDMA4 Yongqiang Niu
2021-11-15 23:34   ` Chun-Kuang Hu
2021-09-30 15:52 ` [PATCH v10, 4/5] soc: mediatek: add mtk mutex support for MT8192 Yongqiang Niu
2021-10-08 11:27   ` Matthias Brugger
2021-11-08 10:56     ` yongqiang.niu [this message]
2021-09-30 15:52 ` [PATCH v10, 5/5] drm/mediatek: add support for mediatek SOC MT8192 Yongqiang Niu
2021-11-15 23:35   ` Chun-Kuang Hu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d08bcbc965c1f8c929cdecf66e8567cd9eca6d41.camel@mediatek.com \
    --to=yongqiang.niu@mediatek.com \
    --cc=Project_Global_Chrome_Upstream_Group@mediatek.com \
    --cc=airlied@linux.ie \
    --cc=chunkuang.hu@kernel.org \
    --cc=ck.hu@mediatek.com \
    --cc=daniel@ffwll.ch \
    --cc=dennis-yc.hsieh@mediatek.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=fparent@baylibre.com \
    --cc=hsinyi@chromium.org \
    --cc=jassisinghbrar@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=matthias.bgg@gmail.com \
    --cc=p.zabel@pengutronix.de \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).