[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <ce7c173efe9929712af11ea38be7f3a4d515879b.1524497268.git.mbrugger@suse.com>
Date: Mon, 23 Apr 2018 18:13:55 +0200
From: matthias.bgg@...nel.org
To: ulrich.hecht+renesas@...il.com, laurent.pinchart@...asonboard.com,
ck.hu@...iatek.com, p.zabel@...gutronix.de, airlied@...ux.ie,
robh+dt@...nel.org, mark.rutland@....com, mturquette@...libre.com,
sboyd@...eaurora.org, lee.jones@...aro.org
Cc: davem@...emloft.net, gregkh@...uxfoundation.org,
mchehab@...nel.org, rdunlap@...radead.org,
pi-cheng.chen@...aro.org, sean.wang@...iatek.com,
linux-clk@...r.kernel.org, linux@...linux.org.uk,
matthias.bgg@...il.com, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org,
Matthias Brugger <mbrugger@...e.com>
Subject: [v2 06/10] mfd: mtk-mmsys: Add mt8173 nodes
From: Matthias Brugger <mbrugger@...e.com>
Add devices for the mt8173 SoC.
Signed-off-by: Matthias Brugger <mbrugger@...e.com>
Reviewed-by: Philipp Zabel <p.zabel@...gutronix.de>
---
drivers/mfd/mtk-mmsys.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/drivers/mfd/mtk-mmsys.c b/drivers/mfd/mtk-mmsys.c
index c802343fb1c6..5585a561a02f 100644
--- a/drivers/mfd/mtk-mmsys.c
+++ b/drivers/mfd/mtk-mmsys.c
@@ -19,6 +19,7 @@
enum {
MMSYS_MT2701 = 1,
+ MMSYS_MT8173,
};
static const struct mfd_cell mmsys_mt2701_devs[] = {
@@ -26,6 +27,12 @@ static const struct mfd_cell mmsys_mt2701_devs[] = {
{ .name = "drm-mt2701-mm", },
};
+static const struct mfd_cell mmsys_mt8173_devs[] = {
+ { .name = "clk-mt8173-mm", },
+ { .name = "drm-mt8173-mm", },
+};
+
+
static int mmsys_probe(struct platform_device *pdev)
{
const struct mfd_cell *mmsys_cells;
@@ -44,6 +51,10 @@ static int mmsys_probe(struct platform_device *pdev)
mmsys_cells = mmsys_mt2701_devs;
nr_cells = ARRAY_SIZE(mmsys_mt2701_devs);
break;
+ case MMSYS_MT8173:
+ mmsys_cells = mmsys_mt8173_devs;
+ nr_cells = ARRAY_SIZE(mmsys_mt8173_devs);
+ break;
default:
return -ENODEV;
}
@@ -62,6 +73,9 @@ static const struct of_device_id of_match_mmsys[] = {
{ .compatible = "mediatek,mt2701-mmsys",
.data = (void *) MMSYS_MT2701,
},
+ { .compatible = "mediatek,mt8173-mmsys",
+ .data = (void *) MMSYS_MT8173,
+ },
{ /* sentinel */ },
};
--
2.16.3
Powered by blists - more mailing lists