aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Jones <thj@FreeBSD.org>2026-02-09 10:06:37 +0000
committerTom Jones <thj@FreeBSD.org>2026-02-09 10:22:20 +0000
commit8923d1c9e25c5bc29d13edf8a55ae6b6b8bd9f6e (patch)
treee8f13d233a8f6f3603b4a152a0abbd5df1fae856
parente506af08bb52bcf02553a35a385b7ef0b8692589 (diff)
aw_sid: Add H616 configuration and compat string
Reviewed by: manu Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D54916
-rw-r--r--sys/arm/allwinner/aw_sid.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/sys/arm/allwinner/aw_sid.c b/sys/arm/allwinner/aw_sid.c
index 932c2f189e51..c100ac2e9941 100644
--- a/sys/arm/allwinner/aw_sid.c
+++ b/sys/arm/allwinner/aw_sid.c
@@ -169,6 +169,27 @@ static struct aw_sid_efuse h5_efuses[] = {
},
};
+static struct aw_sid_efuse h616_efuses[] = {
+ {
+ .name = "rootkey",
+ .desc = "Root Key or ChipID",
+ .base = EFUSE_OFFSET,
+ .offset = 0x00,
+ .size = 16,
+ .id = AW_SID_FUSE_ROOTKEY,
+ .public = true,
+ },
+ {
+ .name = "calibration",
+ .desc = "Thermal Sensor Calibration Data",
+ .base = EFUSE_OFFSET,
+ .offset = 0x34,
+ .size = 4,
+ .id = AW_SID_FUSE_THSSENSOR,
+ .public = true,
+ },
+};
+
static struct aw_sid_efuse d1_efuses[] = {
{
.name = "rootkey",
@@ -225,6 +246,11 @@ static const struct aw_sid_conf h5_conf = {
.nfuses = nitems(h5_efuses),
};
+static const struct aw_sid_conf h616_conf = {
+ .efuses = h616_efuses,
+ .nfuses = nitems(h616_efuses),
+};
+
static const struct aw_sid_conf d1_conf = {
.efuses = d1_efuses,
.nfuses = nitems(d1_efuses),
@@ -237,6 +263,7 @@ static struct ofw_compat_data compat_data[] = {
{ "allwinner,sun8i-a83t-sid", (uintptr_t)&a83t_conf},
{ "allwinner,sun8i-h3-sid", (uintptr_t)&h3_conf},
{ "allwinner,sun50i-h5-sid", (uintptr_t)&h5_conf},
+ { "allwinner,sun50i-h616-sid", (uintptr_t)&h616_conf},
{ "allwinner,sun20i-d1-sid", (uintptr_t)&d1_conf},
{ NULL, 0 }
};