42 lines
1.4 KiB
Diff
42 lines
1.4 KiB
Diff
From c6a302a80d61b68a54b6fd90449b01635b15b254 Mon Sep 17 00:00:00 2001
|
|
From: Kali Prasad <kprasadvnsi@protonmail.com>
|
|
Date: Sun, 19 Sep 2021 13:28:10 +0530
|
|
Subject: [PATCH 044/158] drv:nvmem:sunxi_sid: Support SID on H616
|
|
|
|
Add support for H616's SID controller. It supports 4K-bit
|
|
EFUSE.
|
|
|
|
Signed-off-by: Kali Prasad <kprasadvnsi@protonmail.com>
|
|
---
|
|
drivers/nvmem/sunxi_sid.c | 7 +++++++
|
|
1 file changed, 7 insertions(+)
|
|
|
|
diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c
|
|
index 92dfe4cb1..4d69dfb3f 100644
|
|
--- a/drivers/nvmem/sunxi_sid.c
|
|
+++ b/drivers/nvmem/sunxi_sid.c
|
|
@@ -213,6 +213,12 @@ static const struct sunxi_sid_cfg sun50i_h6_cfg = {
|
|
.size = 0x200,
|
|
};
|
|
|
|
+static const struct sunxi_sid_cfg sun50i_h616_cfg = {
|
|
+ .value_offset = 0x200,
|
|
+ .size = 0x100,
|
|
+ .need_register_readout = true,
|
|
+};
|
|
+
|
|
static const struct of_device_id sunxi_sid_of_match[] = {
|
|
{ .compatible = "allwinner,sun4i-a10-sid", .data = &sun4i_a10_cfg },
|
|
{ .compatible = "allwinner,sun7i-a20-sid", .data = &sun7i_a20_cfg },
|
|
@@ -222,6 +228,7 @@ static const struct of_device_id sunxi_sid_of_match[] = {
|
|
{ .compatible = "allwinner,sun50i-a64-sid", .data = &sun50i_a64_cfg },
|
|
{ .compatible = "allwinner,sun50i-h5-sid", .data = &sun50i_a64_cfg },
|
|
{ .compatible = "allwinner,sun50i-h6-sid", .data = &sun50i_h6_cfg },
|
|
+ { .compatible = "allwinner,sun50i-h616-sid", .data = &sun50i_h616_cfg },
|
|
{/* sentinel */},
|
|
};
|
|
MODULE_DEVICE_TABLE(of, sunxi_sid_of_match);
|
|
--
|
|
2.35.3
|
|
|