summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6bef4d0)
raw | patch | inline | side by side (parent: 6bef4d0)
author | Bryan Brattlof <bb@ti.com> | |
Tue, 1 Feb 2022 22:06:45 +0000 (16:06 -0600) | ||
committer | Bryan Brattlof <bb@ti.com> | |
Fri, 18 Mar 2022 14:00:14 +0000 (09:00 -0500) |
Processor IDs (not to be confused with HOST_ID) represents an actual
physical processor on the am62x
Provide the information for the Processor & Host IDs that are permitted
Signed-off-by: Bryan Brattlof <bb@ti.com>
physical processor on the am62x
Provide the information for the Processor & Host IDs that are permitted
Signed-off-by: Bryan Brattlof <bb@ti.com>
Makefile | patch | blob | history | |
common/socinfo.c | patch | blob | history | |
soc/am62x/am62x_processors_info.c | [new file with mode: 0644] | patch | blob |
soc/am62x/am62x_processors_info.h | [new file with mode: 0644] | patch | blob |
diff --git a/Makefile b/Makefile
index 9ce04b6260125d4793088a83b43a9c0aa1ef67c2..1007e6e6e113b43e7888a75840dddbba9eda019c 100644 (file)
--- a/Makefile
+++ b/Makefile
AM62XSOURCES =\
soc/am62x/am62x_devices_info.c \
soc/am62x/am62x_clocks_info.c \
- soc/am62x/am62x_host_info.c
+ soc/am62x/am62x_host_info.c \
+ soc/am62x/am62x_processors_info.c
COMMONOBJECTS= $(COMMONSOURCES:.c=.o)
AM65XOBJECTS= $(AM65XSOURCES:.c=.o)
diff --git a/common/socinfo.c b/common/socinfo.c
index 59b7f84ea94b4f264481a8ddc7ff17a9aee5a0ec..6c3834b60369fea0dcc47d0c1021d59e5ef0731f 100644 (file)
--- a/common/socinfo.c
+++ b/common/socinfo.c
#include <soc/am62x/am62x_devices_info.h>
#include <soc/am62x/am62x_clocks_info.h>
#include <soc/am62x/am62x_host_info.h>
+#include <soc/am62x/am62x_processors_info.h>
/* Assuming these addresses and definitions stay common across K3 devices */
#define CTRLMMR_WKUP_JTAG_DEVICE_ID 0x43000018
{
struct ti_sci_info *sci_info = &soc_info.sci_info;
+ sci_info->processors_info = am62x_processors_info;
+ sci_info->num_processors = AM62X_MAX_PROCESSORS_IDS;
sci_info->host_info = am62x_host_info;
sci_info->num_hosts = AM62X_MAX_HOST_IDS;
sci_info->devices_info = am62x_devices_info;
diff --git a/soc/am62x/am62x_processors_info.c b/soc/am62x/am62x_processors_info.c
--- /dev/null
@@ -0,0 +1,45 @@
+/*
+ * AM62X Processor Info
+ *
+ * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of Texas Instruments Incorporated nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <tisci.h>
+#include <socinfo.h>
+
+struct ti_sci_processors_info am62x_processors_info[] = {
+ [0] = {135, 0, 0x20, "A53SS0_CORE_0"},
+ [1] = {136, 0, 0x21, "A53SS0_CORE_1"},
+ [2] = {137, 0, 0x22, "A53SS0_CORE_2"},
+ [3] = {138, 0, 0x23, "A53SS0_CORE_3"},
+ [4] = {9 , 1, 0x18, "MCU_M4FSS0_CORE0"},
+ [5] = {121, 1, 0x01, "R5FSS0_CORE0"},
+};
diff --git a/soc/am62x/am62x_processors_info.h b/soc/am62x/am62x_processors_info.h
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+ * AM62X Processor Info
+ *
+ * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of Texas Instruments Incorporated nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef __AM62X_PROCESSOR_INFO_H
+#define __AM62X_PROCESSOR_INFO_H
+
+#define AM62X_MAX_PROCESSORS_IDS 6
+extern struct ti_sci_processors_info am62x_processors_info[];
+
+#endif /* __AM62X_PROCESSOR_INFO_H */
\ No newline at end of file