svn commit: r327452 - head/sys/arm/allwinner
Kyle Evans
kevans at FreeBSD.org
Sun Dec 31 22:35:34 UTC 2017
Author: kevans
Date: Sun Dec 31 22:35:32 2017
New Revision: 327452
URL: https://svnweb.freebsd.org/changeset/base/327452
Log:
aw_sid: Add support for a64
Newer Allwinner SoCs have nearly identical SID controllers with efuse space
starting at 0x200 into their register space and thermal data available at
0x234, making all of these fairly trivial additions.
The h3 will be added at a later time after some testing, due to a silicon
bug that causes the rootkey (at least) to be read incorrectly unless first
read via the control register.
Modified:
head/sys/arm/allwinner/aw_sid.c
Modified: head/sys/arm/allwinner/aw_sid.c
==============================================================================
--- head/sys/arm/allwinner/aw_sid.c Sun Dec 31 22:01:36 2017 (r327451)
+++ head/sys/arm/allwinner/aw_sid.c Sun Dec 31 22:35:32 2017 (r327452)
@@ -67,6 +67,11 @@ static const struct aw_sid_conf a20_conf = {
.rootkey_offset = 0,
};
+static const struct aw_sid_conf a64_conf = {
+ .rootkey_offset = SID_SRAM,
+ .has_thermal = true,
+};
+
static const struct aw_sid_conf a83t_conf = {
.rootkey_offset = SID_SRAM,
.has_thermal = true,
@@ -75,6 +80,7 @@ static const struct aw_sid_conf a83t_conf = {
static struct ofw_compat_data compat_data[] = {
{ "allwinner,sun4i-a10-sid", (uintptr_t)&a10_conf},
{ "allwinner,sun7i-a20-sid", (uintptr_t)&a20_conf},
+ { "allwinner,sun50i-a64-sid", (uintptr_t)&a64_conf},
{ "allwinner,sun8i-a83t-sid", (uintptr_t)&a83t_conf},
{ NULL, 0 }
};
More information about the svn-src-head
mailing list