ARM: 8478/2: arm/arm64: add arm-smccc
authorJens Wiklander <jens.wiklander@linaro.org>
Mon, 4 Jan 2016 14:37:32 +0000 (15:37 +0100)
committerAlex Shi <alex.shi@linaro.org>
Thu, 6 Jul 2017 03:07:37 +0000 (11:07 +0800)
commit6c1a9db6a9e049516294cdaf73c4f39696ec061e
treec9858f7f124d48f2af33e9f92d8299fe27f1c34f
parent6ee496d7218aeccffe5380cb65e9d50d1a61c323
ARM: 8478/2: arm/arm64: add arm-smccc

Adds helpers to do SMC and HVC based on ARM SMC Calling Convention.
CONFIG_HAVE_ARM_SMCCC is enabled for architectures that may support the
SMC or HVC instruction. It's the responsibility of the caller to know if
the SMC instruction is supported by the platform.

This patch doesn't provide an implementation of the declared functions.
Later patches will bring in implementations and set
CONFIG_HAVE_ARM_SMCCC for ARM and ARM64 respectively.

Reviewed-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
(cherry picked from commit 98dd64f34f47ce19b388d9015f767f48393a81eb)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
drivers/firmware/Kconfig
include/linux/arm-smccc.h [new file with mode: 0644]