am65x: rm-cfg: Add resources for secure context of MCU R5
authorVignesh Raghavendra <vigneshr@ti.com>
Wed, 31 Jul 2019 08:02:05 +0000 (13:32 +0530)
committerAndreas Dannenberg <dannenberg@ti.com>
Mon, 5 Aug 2019 16:22:35 +0000 (11:22 -0500)
ROM boots up MCU R5 in secure context and R5 SPL continues to run in the
same context. In order for R5 SPL to use DMA (e.g: with OSPI) add MCU
NAVSS resources with MCU R5 secure host ID that is used by R5 SPL.

Resources allocated are same as those allocated for A53.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
soc/am65x/evm/rm-cfg.c
soc/am65x/evm/sysfw_img_cfg.h

index ac72f87fa175acf7000a2ca84a4fb889dcd99dbb..01a888acde341bad5748aa2c91587dc7f6576c3a 100644 (file)
@@ -270,6 +270,27 @@ const struct boardcfg_rm_local am65_boardcfg_rm_data = {
                                   RESASG_SUBTYPE_MCU_NAV_UDMAP_RX_FLOW_COMMON),
                        .host_id = HOST_ID_A53_2,
                },
+               {
+                       .start_resource = 2,
+                       .num_resource = 46,
+                       .type = RESASG_UTYPE(RESASG_TYPE_MCU_NAV_UDMAP,
+                                         RESASG_SUBTYPE_MCU_NAV_UDMAP_TX_CHAN),
+                       .host_id = HOST_ID_R5_1,
+               },
+               {
+                       .start_resource = 2,
+                       .num_resource = 46,
+                       .type = RESASG_UTYPE(RESASG_TYPE_MCU_NAV_UDMAP,
+                                         RESASG_SUBTYPE_MCU_NAV_UDMAP_RX_CHAN),
+                       .host_id = HOST_ID_R5_1,
+               },
+               {
+                       .start_resource = 48,
+                       .num_resource = 48,
+                       .type = RESASG_UTYPE(RESASG_TYPE_MCU_NAV_UDMAP,
+                                  RESASG_SUBTYPE_MCU_NAV_UDMAP_RX_FLOW_COMMON),
+                       .host_id = HOST_ID_R5_1,
+               },
                {
                        .start_resource = 0,
                        .num_resource = 1,
@@ -333,6 +354,27 @@ const struct boardcfg_rm_local am65_boardcfg_rm_data = {
                                             RESASG_SUBTYPE_MCU_NAV_RA_RING_GP),
                        .host_id = HOST_ID_A53_2,
                },
+               {
+                       .start_resource = 0,
+                       .num_resource = 48,
+                       .type = RESASG_UTYPE(RESASG_TYPE_MCU_NAV_RA,
+                                      RESASG_SUBTYPE_MCU_NAV_RA_RING_UDMAP_TX),
+                       .host_id = HOST_ID_R5_1,
+               },
+               {
+                       .start_resource = 48,
+                       .num_resource = 48,
+                       .type = RESASG_UTYPE(RESASG_TYPE_MCU_NAV_RA,
+                                      RESASG_SUBTYPE_MCU_NAV_RA_RING_UDMAP_RX),
+                       .host_id = HOST_ID_R5_1,
+               },
+               {
+                       .start_resource = 96,
+                       .num_resource = 160,
+                       .type = RESASG_UTYPE(RESASG_TYPE_MCU_NAV_RA,
+                                            RESASG_SUBTYPE_MCU_NAV_RA_RING_GP),
+                       .host_id = HOST_ID_R5_1,
+               },
                {
                        .start_resource = 0,
                        .num_resource = 1,
index de5f1ab00dc0cc43f6c089ce53a86884471143fc..20b33e07f9931b8d000245882d3bf271e0e1fc69 100644 (file)
@@ -35,6 +35,6 @@
 #ifndef SYSFW_IMG_CFG_H
 #define SYSFW_IMG_CFG_H
 
-#define BOARDCFG_RM_RESASG_ENTRIES     59
+#define BOARDCFG_RM_RESASG_ENTRIES     65
 
 #endif /* SYSFW_IMG_CFG_H */