ARM: at91: add code to handle secure calls
authorClément Léger <clement.leger@bootlin.com>
Mon, 2 May 2022 15:22:18 +0000 (17:22 +0200)
committerClaudiu Beznea <claudiu.beznea@microchip.com>
Thu, 12 May 2022 11:50:20 +0000 (14:50 +0300)
commit0c9fd821175a5634e00aa391f5f202f8ed4c9223
treec5c79e57277dbd4346389a39ba54e805f5f3a070
parentf611af4c3bfa26fc827b8074d288a3ce686916f2
ARM: at91: add code to handle secure calls

Since OP-TEE now has a more complete support for sama5d2, add necessary
code to perform SMC calls. The detection of OP-TEE is based on a
specific device-tree node path (/firmware/optee) such has done by some
other SoC. A check is added to avoid doing SMC calls without having
OP-TEE.

Signed-off-by: Clément Léger <clement.leger@bootlin.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
arch/arm/mach-at91/Makefile
arch/arm/mach-at91/sam_secure.c [new file with mode: 0644]
arch/arm/mach-at91/sam_secure.h [new file with mode: 0644]
arch/arm/mach-at91/sama5.c