aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikhil Devshatwar2020-11-04 01:08:34 -0600
committerLokesh Vutla2020-11-04 03:44:38 -0600
commite31a466dd2c1cfa8ca483d0be9e8729f70ba0418 (patch)
tree71365805c3790e852cabee3cd02884108f2c8ecb
parent8ea19b50502882850ea1e681b539dd63048ae457 (diff)
downloadk3conf-e31a466dd2c1cfa8ca483d0be9e8729f70ba0418.tar.gz
k3conf-e31a466dd2c1cfa8ca483d0be9e8729f70ba0418.tar.xz
k3conf-e31a466dd2c1cfa8ca483d0be9e8729f70ba0418.zip
soc: j721e: Add resource information
Add Resource management unique types for J721E Generated from SYSFW 2020.08 Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
-rw-r--r--Makefile1
-rw-r--r--common/socinfo.c3
-rw-r--r--soc/j721e/j721e_rm_info.c99
-rw-r--r--soc/j721e/j721e_rm_info.h42
4 files changed, 145 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 59050aa..0d38984 100644
--- a/Makefile
+++ b/Makefile
@@ -93,6 +93,7 @@ J721ESOURCES =\
93 soc/j721e/j721e_processors_info.c \ 93 soc/j721e/j721e_processors_info.c \
94 soc/j721e/j721e_devices_info.c \ 94 soc/j721e/j721e_devices_info.c \
95 soc/j721e/j721e_clocks_info.c \ 95 soc/j721e/j721e_clocks_info.c \
96 soc/j721e/j721e_rm_info.c \
96 soc/j7200/j7200_host_info.c \ 97 soc/j7200/j7200_host_info.c \
97 soc/j7200/j7200_sec_proxy_info.c \ 98 soc/j7200/j7200_sec_proxy_info.c \
98 soc/j7200/j7200_processors_info.c \ 99 soc/j7200/j7200_processors_info.c \
diff --git a/common/socinfo.c b/common/socinfo.c
index 8bdfe20..9eca228 100644
--- a/common/socinfo.c
+++ b/common/socinfo.c
@@ -54,6 +54,7 @@
54#include <soc/j721e/j721e_processors_info.h> 54#include <soc/j721e/j721e_processors_info.h>
55#include <soc/j721e/j721e_devices_info.h> 55#include <soc/j721e/j721e_devices_info.h>
56#include <soc/j721e/j721e_clocks_info.h> 56#include <soc/j721e/j721e_clocks_info.h>
57#include <soc/j721e/j721e_rm_info.h>
57#include <soc/j7200/j7200_host_info.h> 58#include <soc/j7200/j7200_host_info.h>
58#include <soc/j7200/j7200_sec_proxy_info.h> 59#include <soc/j7200/j7200_sec_proxy_info.h>
59#include <soc/j7200/j7200_processors_info.h> 60#include <soc/j7200/j7200_processors_info.h>
@@ -148,6 +149,8 @@ static void j721e_init(void)
148 sci_info->num_devices = J721E_MAX_DEVICES; 149 sci_info->num_devices = J721E_MAX_DEVICES;
149 sci_info->clocks_info = j721e_clocks_info; 150 sci_info->clocks_info = j721e_clocks_info;
150 sci_info->num_clocks = J721E_MAX_CLOCKS; 151 sci_info->num_clocks = J721E_MAX_CLOCKS;
152 sci_info->rm_info = j721e_rm_info;
153 sci_info->num_res = J721E_MAX_RES;
151} 154}
152 155
153static void j7200_init(void) 156static void j7200_init(void)
diff --git a/soc/j721e/j721e_rm_info.c b/soc/j721e/j721e_rm_info.c
new file mode 100644
index 0000000..36428a0
--- /dev/null
+++ b/soc/j721e/j721e_rm_info.c
@@ -0,0 +1,99 @@
1/*
2 * J721E RM Info
3 *
4 * Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 *
10 * Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 *
13 * Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the
16 * distribution.
17 *
18 * Neither the name of Texas Instruments Incorporated nor the names of
19 * its contributors may be used to endorse or promote products derived
20 * from this software without specific prior written permission.
21 *
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 */
34
35#include <tisci.h>
36#include <socinfo.h>
37
38struct ti_sci_rm_info j721e_rm_info[] = {
39 [0] = {0x1E40, "RESASG_SUBTYPE_IR_OUTPUT"},
40 [1] = {0x1E80, "RESASG_SUBTYPE_IR_OUTPUT"},
41 [2] = {0x1EC0, "RESASG_SUBTYPE_IR_OUTPUT"},
42 [3] = {0x2000, "RESASG_SUBTYPE_IR_OUTPUT"},
43 [4] = {0x2080, "RESASG_SUBTYPE_IR_OUTPUT"},
44 [5] = {0x20C0, "RESASG_SUBTYPE_IR_OUTPUT"},
45 [6] = {0x2180, "RESASG_SUBTYPE_IR_OUTPUT"},
46 [7] = {0x21C0, "RESASG_SUBTYPE_IR_OUTPUT"},
47 [8] = {0x2200, "RESASG_SUBTYPE_IR_OUTPUT"},
48 [9] = {0x2240, "RESASG_SUBTYPE_IR_OUTPUT"},
49 [10] = {0x33CA, "RESASG_SUBTYPE_IA_VINT"},
50 [11] = {0x33CD, "RESASG_SUBTYPE_GLOBAL_EVENT_SEVT"},
51 [12] = {0x340A, "RESASG_SUBTYPE_IA_VINT"},
52 [13] = {0x340D, "RESASG_SUBTYPE_GLOBAL_EVENT_SEVT"},
53 [14] = {0x344A, "RESASG_SUBTYPE_IA_VINT"},
54 [15] = {0x344D, "RESASG_SUBTYPE_GLOBAL_EVENT_SEVT"},
55 [16] = {0x3480, "RESASG_SUBTYPE_PROXY_PROXIES"},
56 [17] = {0x34C0, "RESASG_SUBTYPE_RA_ERROR_OES"},
57 [18] = {0x34C1, "RESASG_SUBTYPE_RA_GP"},
58 [19] = {0x34C2, "RESASG_SUBTYPE_RA_UDMAP_RX"},
59 [20] = {0x34C3, "RESASG_SUBTYPE_RA_UDMAP_TX"},
60 [21] = {0x34C4, "RESASG_SUBTYPE_RA_UDMAP_TX_EXT"},
61 [22] = {0x34C5, "RESASG_SUBTYPE_RA_UDMAP_RX_H"},
62 [23] = {0x34C6, "RESASG_SUBTYPE_RA_UDMAP_RX_UH"},
63 [24] = {0x34C7, "RESASG_SUBTYPE_RA_UDMAP_TX_H"},
64 [25] = {0x34C8, "RESASG_SUBTYPE_RA_UDMAP_TX_UH"},
65 [26] = {0x34CA, "RESASG_SUBTYPE_RA_VIRTID"},
66 [27] = {0x34CB, "RESASG_SUBTYPE_RA_MONITORS"},
67 [28] = {0x3500, "RESASG_SUBTYPE_UDMAP_RX_FLOW_COMMON"},
68 [29] = {0x3501, "RESASG_SUBTYPE_UDMAP_INVALID_FLOW_OES"},
69 [30] = {0x3502, "RESASG_SUBTYPE_GLOBAL_EVENT_TRIGGER"},
70 [31] = {0x3503, "RESASG_SUBTYPE_UDMAP_GLOBAL_CONFIG"},
71 [32] = {0x350A, "RESASG_SUBTYPE_UDMAP_RX_CHAN"},
72 [33] = {0x350B, "RESASG_SUBTYPE_UDMAP_RX_HCHAN"},
73 [34] = {0x350C, "RESASG_SUBTYPE_UDMAP_RX_UHCHAN"},
74 [35] = {0x350D, "RESASG_SUBTYPE_UDMAP_TX_CHAN"},
75 [36] = {0x350E, "RESASG_SUBTYPE_UDMAP_TX_ECHAN"},
76 [37] = {0x350F, "RESASG_SUBTYPE_UDMAP_TX_HCHAN"},
77 [38] = {0x3510, "RESASG_SUBTYPE_UDMAP_TX_UHCHAN"},
78 [39] = {0x3540, "RESASG_SUBTYPE_IR_OUTPUT"},
79 [40] = {0x3A4A, "RESASG_SUBTYPE_IA_VINT"},
80 [41] = {0x3A4D, "RESASG_SUBTYPE_GLOBAL_EVENT_SEVT"},
81 [42] = {0x3A80, "RESASG_SUBTYPE_PROXY_PROXIES"},
82 [43] = {0x3AC0, "RESASG_SUBTYPE_RA_ERROR_OES"},
83 [44] = {0x3AC1, "RESASG_SUBTYPE_RA_GP"},
84 [45] = {0x3AC2, "RESASG_SUBTYPE_RA_UDMAP_RX"},
85 [46] = {0x3AC3, "RESASG_SUBTYPE_RA_UDMAP_TX"},
86 [47] = {0x3AC5, "RESASG_SUBTYPE_RA_UDMAP_RX_H"},
87 [48] = {0x3AC7, "RESASG_SUBTYPE_RA_UDMAP_TX_H"},
88 [49] = {0x3ACA, "RESASG_SUBTYPE_RA_VIRTID"},
89 [50] = {0x3ACB, "RESASG_SUBTYPE_RA_MONITORS"},
90 [51] = {0x3B00, "RESASG_SUBTYPE_UDMAP_RX_FLOW_COMMON"},
91 [52] = {0x3B01, "RESASG_SUBTYPE_UDMAP_INVALID_FLOW_OES"},
92 [53] = {0x3B02, "RESASG_SUBTYPE_GLOBAL_EVENT_TRIGGER"},
93 [54] = {0x3B03, "RESASG_SUBTYPE_UDMAP_GLOBAL_CONFIG"},
94 [55] = {0x3B0A, "RESASG_SUBTYPE_UDMAP_RX_CHAN"},
95 [56] = {0x3B0B, "RESASG_SUBTYPE_UDMAP_RX_HCHAN"},
96 [57] = {0x3B0D, "RESASG_SUBTYPE_UDMAP_TX_CHAN"},
97 [58] = {0x3B0F, "RESASG_SUBTYPE_UDMAP_TX_HCHAN"},
98 [59] = {0x3B40, "RESASG_SUBTYPE_IR_OUTPUT"},
99};
diff --git a/soc/j721e/j721e_rm_info.h b/soc/j721e/j721e_rm_info.h
new file mode 100644
index 0000000..d1b31e3
--- /dev/null
+++ b/soc/j721e/j721e_rm_info.h
@@ -0,0 +1,42 @@
1/*
2 * J721E RM Info
3 *
4 * Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 *
10 * Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 *
13 * Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the
16 * distribution.
17 *
18 * Neither the name of Texas Instruments Incorporated nor the names of
19 * its contributors may be used to endorse or promote products derived
20 * from this software without specific prior written permission.
21 *
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 */
34
35#ifndef __J721E_RM_INFO_H
36#define __J721E_RM_INFO_H
37
38#define J721E_MAX_RES 60
39
40extern struct ti_sci_rm_info j721e_rm_info[];
41
42#endif /* __J721E_RM_INFO_H */ \ No newline at end of file