summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fd48bab)
raw | patch | inline | side by side (parent: fd48bab)
author | Bryan Brattlof <bb@ti.com> | |
Tue, 1 Feb 2022 22:06:41 +0000 (16:06 -0600) | ||
committer | Bryan Brattlof <bb@ti.com> | |
Fri, 18 Mar 2022 14:00:14 +0000 (09:00 -0500) |
Add initial identification support for the am62x SoC using the
CTRLMMR_WKUP_JTAGID and secure proxy registers
Signed-off-by: Bryan Brattlof <bb@ti.com>
CTRLMMR_WKUP_JTAGID and secure proxy registers
Signed-off-by: Bryan Brattlof <bb@ti.com>
common/socinfo.c | patch | blob | history | |
include/socinfo.h | patch | blob | history |
diff --git a/common/socinfo.c b/common/socinfo.c
index cd525629b03d21de161468fb09904d6e509ada23..05ef7a58ac53f92cca1bd68e0f69fc99c5791170 100644 (file)
--- a/common/socinfo.c
+++ b/common/socinfo.c
soc_info.sec_proxy = &k3_lite_sec_proxy_base;
}
+static void am62x_init(void)
+{
+ soc_info.host_id = 13;
+ soc_info.sec_proxy = &k3_lite_sec_proxy_base;
+}
+
int soc_init(uint32_t host_id)
{
char *name;
case AM64X:
name = "AM64x";
break;
+ case AM62X:
+ name = "AM62X";
+ break;
default:
fprintf(stderr, "Unknown Silicon %d\n", soc_info.soc);
return -1;
j7200_init();
else if (soc_info.soc == AM64X)
am64x_init();
+ else if (soc_info.soc == AM62X)
+ am62x_init();
if (host_id != INVALID_HOST_ID)
soc_info.host_id = host_id;
diff --git a/include/socinfo.h b/include/socinfo.h
index 377177c195d5d2ffaa79866953a411918b6ceeb9..1585b35b5da9be5ed177bcf99835bf51c4155e91 100644 (file)
--- a/include/socinfo.h
+++ b/include/socinfo.h
#define SOC_REVISION_MAX_LENGTH 5
#define SOC_FULL_NAME_MAX_LENGTH 20
+#define AM62X 0xbb7e
#define AM65X 0xbb5a
#define J721E 0xbb64
#define J7200 0xbb6d