]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-4.19/nvmem-sunxi_sid-support-sid-on-a83t-and-h5.patch
2144e9703b99c7acfca88cea779749c36a40300b
[thirdparty/kernel/stable-queue.git] / queue-4.19 / nvmem-sunxi_sid-support-sid-on-a83t-and-h5.patch
1 From c9030360f3a7c6279d47818a2683b44359ba316e Mon Sep 17 00:00:00 2001
2 From: Chen-Yu Tsai <wens@csie.org>
3 Date: Sat, 13 Apr 2019 11:32:53 +0100
4 Subject: nvmem: sunxi_sid: Support SID on A83T and H5
5
6 [ Upstream commit da75b8909756160b8e785104ba421a20b756c975 ]
7
8 The device tree binding already lists compatible strings for these two
9 SoCs. They don't have the defect as seen on the H3, and the size and
10 register layout is the same as the A64. Furthermore, the driver does
11 not include nvmem cell definitions.
12
13 Add support for these two compatible strings, re-using the config for
14 the A64.
15
16 Signed-off-by: Chen-Yu Tsai <wens@csie.org>
17 Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
18 Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
19 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
20 Signed-off-by: Sasha Levin <sashal@kernel.org>
21 ---
22 drivers/nvmem/sunxi_sid.c | 2 ++
23 1 file changed, 2 insertions(+)
24
25 diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c
26 index d020f89248fd..69f8e972e29c 100644
27 --- a/drivers/nvmem/sunxi_sid.c
28 +++ b/drivers/nvmem/sunxi_sid.c
29 @@ -235,8 +235,10 @@ static const struct sunxi_sid_cfg sun50i_a64_cfg = {
30 static const struct of_device_id sunxi_sid_of_match[] = {
31 { .compatible = "allwinner,sun4i-a10-sid", .data = &sun4i_a10_cfg },
32 { .compatible = "allwinner,sun7i-a20-sid", .data = &sun7i_a20_cfg },
33 + { .compatible = "allwinner,sun8i-a83t-sid", .data = &sun50i_a64_cfg },
34 { .compatible = "allwinner,sun8i-h3-sid", .data = &sun8i_h3_cfg },
35 { .compatible = "allwinner,sun50i-a64-sid", .data = &sun50i_a64_cfg },
36 + { .compatible = "allwinner,sun50i-h5-sid", .data = &sun50i_a64_cfg },
37 {/* sentinel */},
38 };
39 MODULE_DEVICE_TABLE(of, sunxi_sid_of_match);
40 --
41 2.20.1
42