unifykey: check secure check secure storage valid before SMC call ATF.
authorYan Wang <yan.wang@amlogic.com>
Mon, 4 Sep 2017 11:57:13 +0000 (19:57 +0800)
committerYan Wang <yan.wang@amlogic.com>
Fri, 13 Oct 2017 06:13:31 +0000 (23:13 -0700)
commitcbfe6c2ec42146ce1cf8c591e355e4d1db1bee53
treee5137865478460f219f2a2a052253bf23672bdc6
parent53160bf7b025438b72869b7f5a8a9e62677431f6
unifykey: check secure check secure storage valid before SMC call ATF.

  PD#150482: unifykey: check secure storage valid before SMC call ATF.

  same as PD#150483.

    ATF use CONFIG to enable/disable secure storage.
    If ATF disable secure storage, secure storage code will be
    compiled out. Kernel should check if secure stroage exists before
    SMC call ATF.

Change-Id: Ifd5e3c42a181bb814dcedad13bebb4596ae95e27
Signed-off-by: Yan Wang <yan.wang@amlogic.com>
drivers/amlogic/unifykey/v8/securitykey.c
include/linux/amlogic/unifykey/security_key.h