NOTICE OF RELOCATION k3-image-gen[0] is the new official repository for generating sysfw.itb. Add a NOTICE_OF_RELOCATION file to this repo to allow existing users to migrate to the new project. [0] https://git.ti.com/cgit/k3-image-gen/k3-image-gen/ Signed-off-by: Suman Anna <s-anna@ti.com>
rm-cfg: j721e: Partition generic IR resource across core0/core1 Main NAVSS interrupt router for MCU R5 subsystem is shared between both CPU cores. However, SYSFW models them to core specific devices where it appears that the interrupt router is dedicated for each core. MCU NAVSS IR is dedicated per MCU core but main NAVSS IR is not. Due to this, drivers calling GET_RANGE gets the same range on both cores, causing conflict in the interrupt partitioning. Fix this by partitioning the shared interrupt pool between MCU R5 core0 and core1. Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
HACK: soc: j721e: Do not cross max limit for RM entries Maximum number of entries supported in RM board config is currently limited to 276 (2 * RESASG_UTYPE_CNT) Any board config with more entries than this count will be rejected and causes boot failure. This needs to be fixed by increasing the max limit in SYSFW. In the absence of this bugfix, restrict the number of entries by folding all of R5, C6x, C7x host_id entries into single entry. Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
soc: j721e: Partition nonsecure proxy and ring monitors Define the resources for non secure proxy and ring monitor allocation across different hosts. Update the total count of resources. Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
j721e: am65x: sec-cfg: Add otp_config section Update the common.h headers to add new defines from SYSFW 2019.12. Starting from SYSFW v2019.12, an otp_config section is mandatory in the security config. Otherwise the boot fails. Fix this by adding a section for opt_config with no other host having permission to OTP array. Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
include: j721e: am65x: Add new types and subtypes from SYSFW 2019.12 Add new types and subtypes for non secure proxies and ring monitors supported in the SYSFW 2019.12 headers. Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
linux-firmware: Update am65x/j721e sysfw to v2019.10a Update the Makefile to automatically fetch and build the v2019.10a version of the sysfw binaries for both AM65x and J721E SoCs. Signed-off-by: Dan Murphy <dmurphy@ti.com> Tested-by: Andreas Dannenberg <dannenberg@ti.com> Acked-by: Suman Anna <s-anna@ti.com>
linux-firmware: Update am65x/j721e sysfw to v2019.10 Update the Makefile to automatically fetch and build the v2019.10 version of the sysfw binaries for both AM65x and J721E SoCs. Signed-off-by: Dan Murphy <dmurphy@ti.com> Reviewed-by: Suman Anna <s-anna@ti.com> Reviewed-by: Andreas Dannenberg <dannenberg@ti.com>
am65x: Correct R5F core 1 Host ID HOST_ID_R5_1 is to be used only with secure context. HOST_ID_R5_2 is the right Host Id to use for R5F core 1 Fixes: 54933d505c4d ("rm-cfg: Partition interrupt resources between R5F contexts") Signed-off-by: Sam Nelson <sam.nelson@ti.com> Acked-by: Suman Anna <s-anna@ti.com>
build: Add support for enabling sysfw traces Sysfw provides a provision for enabling sysfw traces while booting. This has to be enabled in board-cfg. In order to ease debug, enable the sysfw trace support with the help of a build option. Use the option to enable it: $ make ENABLE_TRACE=1 Reported-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
HACK: j721e: rm-cfg: Use HOST_ALL for ethernet firmware flows Ethernet firmware acts as server for providing networking functionality to other clients. It allocates few flows from its pool for the client and then retuns the same to the client. Client does not own the resource it is borrowing from server and currently SYSFW lacks any APIs to allow shared ownership of this resource dyanmically. In absence of such an API, mark the ethernet firmware flows are HOST_ALL so that clients can call FLOW_CONFIG with the borrowed flow. Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
j721e: rm-cfg: Partition GPIO interrupt router Currently the Main GPIO interrupt router is only assigned to A72_2. Partition the IR lines such that few lines are assigned to A72_3 for usage from another Virtual machine. Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
am65x: rm-cfg: Add resources for secure context of MCU R5 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>