Hi Peng,
There is my point of view: OP-TEE is an environment for trusted applications and other security features, but power management is not strictly a security feature. OP-TEE provides Secure Monitor on ARMv7 architectures, but only because there was no other secure monitor available. On ARMv8 it relies to ARM Trusted FW, which is preffered, because secure monitor provides other services, like PSCI. As far as I know, there are set of patches for u-boot that adds security monitor support and PSCI to it. This one, I believe: http://lists.denx.de/pipermail/u-boot/2013-December/168655.html Also, U-Boot is responsible for platform initialization. It will be better to have most of platform-specific code in one place. So personally I stick to option 2. So you can write to u-boot mailing list and ask them if they plan to further develop PSCI support.
But lets also hear opinion of Linaro guys.
On 11 November 2016 at 10:21, Peng Fan peng.fan@nxp.com wrote:
Hi,
I am trying to implement TEE and support Linux power features.
There are several options to include power features and TEE
ATFW for ARM32.
Develop runtime service code in U-Boot like ATFW.
Integrate PSCI ARM32 in OP-TEE.
Option1, ATFW seems not support ARM32, such as A9/A7. And the AArch32 support, I think(not sure), is not for legacy ARM32 cores.
Option2, requires some efforts. And needs some wrap code between uboot monitor code and TEE and Linux.
Actually I prefer option3, and secondary cores can be booted up with psci in OP-TEE. Before I
put more efforts, I would like to ask whether this is acceptable from OP-TEE community.
Thanks,
Peng.
Tee-dev mailing list Tee-dev@lists.linaro.org https://lists.linaro.org/mailman/listinfo/tee-dev