
On Fri, Jan 10, 2025 at 9:35 AM Yannic Moog y.moog@phytec.de wrote:
There have been attempts to get op-tee node integrated upstream in the past [1][2]. The challenge is on how to handle the load and entry addresses where the op-tee image should be loaded to. Different SoC families and architectures have different RAM base addresses. Further the final addresses can vary from board to board (e.g. depending on populated RAM size). This approach follows the TI k3 kconfig solution. To be able to define a sensible default for the new config option, put it in the imx8m kconfig. For other imx families, the RAM start addresses are different and thus finding a common sensible default is not possible. I do not have a working Nano and quad board so I was not able to test them.
I included usage for PHYTEC boards for examples (with documentation).
[1] https://patchwork.ozlabs.org/project/uboot/patch/20230622173006.3921891-1-th... [2] https://patchwork.ozlabs.org/project/uboot/patch/ZeHDVr-Bzm935-5N@mecka.net/
Changes in v3:
- use OPTEE_LOAD_ADDR defaults as defined in upstream tf-a
- add imx8mq (untested)
- move common PHYTEC imx8mm optee build doc into include file
Applied the series, thanks.