ARM: psci: add cmdline option to enable use of psci
authorAchin Gupta <achin.gupta@arm.com>
Sun, 10 Mar 2013 22:04:29 +0000 (22:04 +0000)
committerJon Medhurst <tixy@linaro.org>
Mon, 1 Jul 2013 10:05:02 +0000 (11:05 +0100)
commitb5fdc36b35130308bd62a18b4682b51708a7f378
treea3e83aa51129ab2ea47a5ba5b6f2a04d81bb0f07
parent25366fe14faa30941b28f3d724438d6ec9a7cf4d
ARM: psci: add cmdline option to enable use of psci

This patch adds the 'psci' kernel command line option. Secure firmware cannot
yet add a psci device node in the dt to indicate whether it supports psci or
not. So in the current dt, the psci device node is present by default. The
probe function will always indicate that the secure firmware implements psci
irrespective of the address space linux runs in as the same device tree will
be used in either case. Hence a kernel cmdline option is required to choose
either the native or psci power api backend depending upon the address space
linux is running in.

Specifying 'psci=enable' in the cmdline will allow Linux running in the
non-secure address space to use the same dt but use the psci backend instead
of the native backend. It effectively overrides the presence of the native
implementation by ensuring registration of the psci backend. Linux running in
the secure address space will use the native backend for power management when
'psci=disable' in the cmdline (also the default value i.e. psci backend is
disabled by default) or the psci node in the dt is absent.

Signed-off-by: Achin Gupta <achin.gupta@arm.com>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
arch/arm/kernel/psci.c