mirror of
https://github.com/linux-sunxi/meta-sunxi.git
synced 2024-11-15 01:38:23 +01:00
42 lines
1.4 KiB
Diff
42 lines
1.4 KiB
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: Kali Prasad <kprasadvnsi@protonmail.com>
|
||
|
Date: Sun, 19 Sep 2021 08:02:27 +0000
|
||
|
Subject: 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 5d364d85347f..c526fe4abe22 100644
|
||
|
--- a/drivers/nvmem/sunxi_sid.c
|
||
|
+++ b/drivers/nvmem/sunxi_sid.c
|
||
|
@@ -204,6 +204,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 },
|
||
|
@@ -213,6 +219,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);
|
||
|
--
|
||
|
Armbian
|
||
|
|