tlkd: support new TLK SMCs
authorMihir Joshi <mihirj@nvidia.com>
Mon, 22 Jan 2018 22:02:16 +0000 (14:02 -0800)
committerVarun Wadekar <vwadekar@nvidia.com>
Thu, 31 Jan 2019 16:46:54 +0000 (08:46 -0800)
commit7bc05f52ddf7ebef9dda595117893b4267a2f84e
treed4697c66934ae913980e223147770fbcb836e7f7
parentd16b045c5648ace7573ced3c58b61ab1e54244fd
tlkd: support new TLK SMCs

This patch adds support to handle following TLK SMCs:
{TLK_SS_REGISTER_HANDLER, TLK_REGISTER_NS_DRAM_RANGES, TLK_SET_ROOT_OF_TRUST}

These SMCs need to be supported in ATF in order to forward them to
TLK. Otherwise, these functionalities won't work.

Brief:
TLK_SS_REGISTER_HANDLER: This SMC is issued by TLK Linux Driver to
set up secure storage buffers.

TLK_REGISTER_NS_DRAM_RANGES: Cboot performs this SMC during boot to
pass NS memory ranges to TLK.

TLK_SET_ROOT_OF_TRUST: Cboot performs this SMC during boot to pass
Verified Boot parameters to TLK.

Change-Id: I18af35f6dd6f510dfc22c1d1d1d07f643c7b82bc
Reviewed-on: https://git-master.nvidia.com/r/1643851
Signed-off-by: Mihir Joshi <mihirj@nvidia.com>
include/bl32/payloads/tlk.h
services/spd/tlkd/tlkd_main.c