Hi, I would like to use TrustZone to provide secure DMA access for some device IO memory. I am wondering whether TZC applies in this case, and whether tzc_400.c in AT-F & OP-TEE can help. If there is any other documentation you can point me to that would help, I'd really appreciate that. I have opened an issue on this matter here but was directed to the community forum.
Thanks.
hi,mkayondo
The tzc_400.c is the driver code associated with the TZC-400 TrustZone controller. tzc_400.c helps OP-TEE interact with TZC-400 hardware. Therefore, tzc_400.c can help you fulfill the need to provide secure DMA access to the device's IO memory. We are sorry that we do not have relevant documentation to support, you can further learn about some of the source files and BSPS we provide to get some relevant content.
BR
Joey
I have tried to find any information on peripheral (actually even memory) protection using TrustZone on the S32G3 but in vain. The manual mentions XRDC but no documentation is available on using that either. Can you direct me to any resource or any code examples, perhaps an existing sample example on using TrustZone for peripheral or memory protection on the said board. On checking OP-TEE, existing TZC setup seems to be only for iMX, LPC etc processors, but no S32G kind.
Thanks
hi,mkayondo
Thank you for your reply.
The more XRDC information can refer to the AN13024, this is download link:AN13024: S32G2 Extended Resource Domain Controller (XRDC) Application Note, and you also can refer to the Chapter 15 of RMS32G3.pdf to view XRDC. In addition, We not have some document to support using TrustZone on S32G, I will ask internally for you if this support will be available in the future.
BR
Joey