drivers: psci: support native SMC{32,64} calls
authorMark Rutland <mark.rutland@arm.com>
Fri, 31 Jul 2015 14:46:17 +0000 (15:46 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 3 Aug 2015 11:35:00 +0000 (12:35 +0100)
commit5211df00a4b595b96a7721a1253074b327945d33
treecda7331e85fb141e5a857028bc37f9b9edca01fa
parentbff60792f994a87324ab57e89e945b4572b1ef77
drivers: psci: support native SMC{32,64} calls

A 32-bit OS cannot make calls with SMC64 IDs, while a 64-bit OS must
invoke some PSCI functions with SMC64 IDs.

This patch introduces and makes use of a new macro to choose the
appropriate IDs based on the register width of the OS, which will allow
32-bit callers to use the PSCI client code.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Hanjun Guo <hanjun.guo@linaro.org>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/firmware/psci.c