[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200622025907.32574-7-frank@allwinnertech.com>
Date: Mon, 22 Jun 2020 10:59:02 +0800
From: Frank Lee <frank@...winnertech.com>
To: robh+dt@...nel.org, mripard@...nel.org, wens@...e.org,
mturquette@...libre.com, sboyd@...nel.org,
srinivas.kandagatla@...aro.org, linus.walleij@...aro.org,
anarsoul@...il.com, tiny.windzz@...il.com, rui.zhang@...el.com,
daniel.lezcano@...aro.org, amit.kucheria@...durent.com,
p.zabel@...gutronix.de, clabbe@...libre.com, icenowy@...c.io,
megous@...ous.com, karlp@...ak.net.au, bage@...utronix.de
Cc: devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, linux-clk@...r.kernel.org,
linux-gpio@...r.kernel.org, linux-pm@...r.kernel.org,
huangshuosheng@...winnertech.com, liyong@...winnertech.com,
Frank Lee <frank@...winnertech.com>
Subject: [PATCH v2 06/11] nvmem: sunxi-sid: add support for A100's SID controller
Add support for A100's SID controller.
Signed-off-by: Frank Lee <frank@...winnertech.com>
---
drivers/nvmem/sunxi_sid.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c
index e26ef1b..8ac074b 100644
--- a/drivers/nvmem/sunxi_sid.c
+++ b/drivers/nvmem/sunxi_sid.c
@@ -189,6 +189,11 @@ static int sunxi_sid_probe(struct platform_device *pdev)
.need_register_readout = true,
};
+static const struct sunxi_sid_cfg sun50i_a100_cfg = {
+ .value_offset = 0x200,
+ .size = 0x100,
+};
+
static const struct sunxi_sid_cfg sun50i_h6_cfg = {
.value_offset = 0x200,
.size = 0x200,
@@ -200,6 +205,7 @@ static int sunxi_sid_probe(struct platform_device *pdev)
{ .compatible = "allwinner,sun8i-a83t-sid", .data = &sun50i_a64_cfg },
{ .compatible = "allwinner,sun8i-h3-sid", .data = &sun8i_h3_cfg },
{ .compatible = "allwinner,sun50i-a64-sid", .data = &sun50i_a64_cfg },
+ { .compatible = "allwinner,sun50i-a100-sid", .data = &sun50i_a100_cfg },
{ .compatible = "allwinner,sun50i-h5-sid", .data = &sun50i_a64_cfg },
{ .compatible = "allwinner,sun50i-h6-sid", .data = &sun50i_h6_cfg },
{/* sentinel */},
--
1.9.1
Powered by blists - more mailing lists