ARM: vexpress: add shim layer for psci backend on TC2
authorAchin Gupta <achin.gupta@arm.com>
Tue, 26 Feb 2013 15:33:25 +0000 (15:33 +0000)
committerJon Medhurst <tixy@linaro.org>
Mon, 1 Jul 2013 10:05:15 +0000 (11:05 +0100)
commitdfd6f0c31471ceb6438f054922aadba39c2888ff
treed2159df07338275fb6a5b6c49e17c78628e4a6d2
parent58068c45b899873906a6dccc94715a3e72387d42
ARM: vexpress: add shim layer for psci backend on TC2

This patch introduces a shim layer for the TC2 platform which converts
'bL_platform_power_ops' routines to their psci counterparts. The psci
counterparts are implemented by the secure firmware. The shim layer
is used only when Linux is running in non-secure world and the secure
firmware implements psci.

It also introduces the use of a reference count to allow a power up call
to go ahead of a power down call.

Signed-off-by: Achin Gupta <achin.gupta@arm.com>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
arch/arm/mach-vexpress/Makefile
arch/arm/mach-vexpress/tc2_pm_psci.c [new file with mode: 0644]