soc: j7200: Add resource information
authorNikhil Devshatwar <nikhil.nd@ti.com>
Wed, 4 Nov 2020 07:08:35 +0000 (12:38 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Wed, 4 Nov 2020 09:44:38 +0000 (15:14 +0530)
Add Resource management unique types for J7200
Generated from SYSFW 2020.08

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Makefile
common/socinfo.c
soc/j7200/j7200_rm_info.c [new file with mode: 0644]
soc/j7200/j7200_rm_info.h [new file with mode: 0644]

index 0d389848ff56c4e2a8bfde09f3e9b6e60f75d75b..efe83cd0358845d641ecf82412ceb8439df1071f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -98,7 +98,8 @@ J721ESOURCES =\
              soc/j7200/j7200_sec_proxy_info.c \
              soc/j7200/j7200_processors_info.c \
              soc/j7200/j7200_devices_info.c \
-             soc/j7200/j7200_clocks_info.c
+             soc/j7200/j7200_clocks_info.c \
+             soc/j7200/j7200_rm_info.c
 
 
 COMMONOBJECTS= $(COMMONSOURCES:.c=.o)
index 9eca228ecf83fb63d5c5b014879e9d46b2301a3f..16cbb436aae7110fd97bf32a6bf470bc35e346f2 100644 (file)
@@ -60,6 +60,7 @@
 #include <soc/j7200/j7200_processors_info.h>
 #include <soc/j7200/j7200_devices_info.h>
 #include <soc/j7200/j7200_clocks_info.h>
+#include <soc/j7200/j7200_rm_info.h>
 
 /* Assuming these addresses and definitions stay common across K3 devices */
 #define CTRLMMR_WKUP_JTAG_DEVICE_ID    0x43000018
@@ -169,6 +170,8 @@ static void j7200_init(void)
        sci_info->num_devices = J7200_MAX_DEVICES;
        sci_info->clocks_info = j7200_clocks_info;
        sci_info->num_clocks = J7200_MAX_CLOCKS;
+       sci_info->rm_info = j7200_rm_info;
+       sci_info->num_res = J7200_MAX_RES;
 }
 
 int soc_init(uint32_t host_id)
diff --git a/soc/j7200/j7200_rm_info.c b/soc/j7200/j7200_rm_info.c
new file mode 100644 (file)
index 0000000..fa25318
--- /dev/null
@@ -0,0 +1,93 @@
+/*
+ * J7200 RM Info
+ *
+ * Copyright (C) 2020 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_rm_info j7200_rm_info[] = {
+       [0] = {0x1EC0, "RESASG_SUBTYPE_IR_OUTPUT"},
+       [1] = {0x2000, "RESASG_SUBTYPE_IR_OUTPUT"},
+       [2] = {0x2080, "RESASG_SUBTYPE_IR_OUTPUT"},
+       [3] = {0x20C0, "RESASG_SUBTYPE_IR_OUTPUT"},
+       [4] = {0x2200, "RESASG_SUBTYPE_IR_OUTPUT"},
+       [5] = {0x2240, "RESASG_SUBTYPE_IR_OUTPUT"},
+       [6] = {0x33CA, "RESASG_SUBTYPE_IA_VINT"},
+       [7] = {0x33CD, "RESASG_SUBTYPE_GLOBAL_EVENT_SEVT"},
+       [8] = {0x340A, "RESASG_SUBTYPE_IA_VINT"},
+       [9] = {0x340D, "RESASG_SUBTYPE_GLOBAL_EVENT_SEVT"},
+       [10] = {0x344A, "RESASG_SUBTYPE_IA_VINT"},
+       [11] = {0x344D, "RESASG_SUBTYPE_GLOBAL_EVENT_SEVT"},
+       [12] = {0x3480, "RESASG_SUBTYPE_PROXY_PROXIES"},
+       [13] = {0x34C0, "RESASG_SUBTYPE_RA_ERROR_OES"},
+       [14] = {0x34C1, "RESASG_SUBTYPE_RA_GP"},
+       [15] = {0x34C2, "RESASG_SUBTYPE_RA_UDMAP_RX"},
+       [16] = {0x34C3, "RESASG_SUBTYPE_RA_UDMAP_TX"},
+       [17] = {0x34C5, "RESASG_SUBTYPE_RA_UDMAP_RX_H"},
+       [18] = {0x34C6, "RESASG_SUBTYPE_RA_UDMAP_RX_UH"},
+       [19] = {0x34C7, "RESASG_SUBTYPE_RA_UDMAP_TX_H"},
+       [20] = {0x34C8, "RESASG_SUBTYPE_RA_UDMAP_TX_UH"},
+       [21] = {0x34CA, "RESASG_SUBTYPE_RA_VIRTID"},
+       [22] = {0x34CB, "RESASG_SUBTYPE_RA_MONITORS"},
+       [23] = {0x3500, "RESASG_SUBTYPE_UDMAP_RX_FLOW_COMMON"},
+       [24] = {0x3501, "RESASG_SUBTYPE_UDMAP_INVALID_FLOW_OES"},
+       [25] = {0x3502, "RESASG_SUBTYPE_GLOBAL_EVENT_TRIGGER"},
+       [26] = {0x3503, "RESASG_SUBTYPE_UDMAP_GLOBAL_CONFIG"},
+       [27] = {0x350A, "RESASG_SUBTYPE_UDMAP_RX_CHAN"},
+       [28] = {0x350B, "RESASG_SUBTYPE_UDMAP_RX_HCHAN"},
+       [29] = {0x350C, "RESASG_SUBTYPE_UDMAP_RX_UHCHAN"},
+       [30] = {0x350D, "RESASG_SUBTYPE_UDMAP_TX_CHAN"},
+       [31] = {0x350F, "RESASG_SUBTYPE_UDMAP_TX_HCHAN"},
+       [32] = {0x3510, "RESASG_SUBTYPE_UDMAP_TX_UHCHAN"},
+       [33] = {0x3540, "RESASG_SUBTYPE_IR_OUTPUT"},
+       [34] = {0x3A4A, "RESASG_SUBTYPE_IA_VINT"},
+       [35] = {0x3A4D, "RESASG_SUBTYPE_GLOBAL_EVENT_SEVT"},
+       [36] = {0x3A80, "RESASG_SUBTYPE_PROXY_PROXIES"},
+       [37] = {0x3AC0, "RESASG_SUBTYPE_RA_ERROR_OES"},
+       [38] = {0x3AC1, "RESASG_SUBTYPE_RA_GP"},
+       [39] = {0x3AC2, "RESASG_SUBTYPE_RA_UDMAP_RX"},
+       [40] = {0x3AC3, "RESASG_SUBTYPE_RA_UDMAP_TX"},
+       [41] = {0x3AC5, "RESASG_SUBTYPE_RA_UDMAP_RX_H"},
+       [42] = {0x3AC7, "RESASG_SUBTYPE_RA_UDMAP_TX_H"},
+       [43] = {0x3ACA, "RESASG_SUBTYPE_RA_VIRTID"},
+       [44] = {0x3ACB, "RESASG_SUBTYPE_RA_MONITORS"},
+       [45] = {0x3B00, "RESASG_SUBTYPE_UDMAP_RX_FLOW_COMMON"},
+       [46] = {0x3B01, "RESASG_SUBTYPE_UDMAP_INVALID_FLOW_OES"},
+       [47] = {0x3B02, "RESASG_SUBTYPE_GLOBAL_EVENT_TRIGGER"},
+       [48] = {0x3B03, "RESASG_SUBTYPE_UDMAP_GLOBAL_CONFIG"},
+       [49] = {0x3B0A, "RESASG_SUBTYPE_UDMAP_RX_CHAN"},
+       [50] = {0x3B0B, "RESASG_SUBTYPE_UDMAP_RX_HCHAN"},
+       [51] = {0x3B0D, "RESASG_SUBTYPE_UDMAP_TX_CHAN"},
+       [52] = {0x3B0F, "RESASG_SUBTYPE_UDMAP_TX_HCHAN"},
+       [53] = {0x3B40, "RESASG_SUBTYPE_IR_OUTPUT"},
+};
diff --git a/soc/j7200/j7200_rm_info.h b/soc/j7200/j7200_rm_info.h
new file mode 100644 (file)
index 0000000..8f002c2
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ * J7200 RM Info
+ *
+ * Copyright (C) 2020 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 __J7200_RM_INFO_H
+#define __J7200_RM_INFO_H
+
+#define J7200_MAX_RES  54
+
+extern struct ti_sci_rm_info j7200_rm_info[];
+
+#endif /* __J7200_RM_INFO_H */
\ No newline at end of file