ARM: vexpress: allow native pm ops backends to probe for psci suppport

This patch allows the vexpress 'rtsm' native backend to probe
the dt for presence of the psci backend. If present then the native
implementation of the 'bL_platform_power_ops' is not used.

Signed-off-by: Achin Gupta <achin.gupta@arm.com>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
This commit is contained in:
Achin Gupta
2012-12-17 00:15:00 +00:00
committed by Jon Medhurst
parent 3d2f3686f7
commit 659eaba2ac

View File

@@ -23,6 +23,7 @@
#include <asm/cacheflush.h>
#include <asm/cputype.h>
#include <asm/cp15.h>
#include <asm/psci.h>
#define RST_HOLD0 0x0
@@ -217,6 +218,12 @@ static int __init dcscb_init(void)
unsigned int cfg;
int ret;
ret = psci_probe();
if (!ret) {
pr_debug("psci found. Aborting native init\n");
return -ENODEV;
}
if (!cci_probed())
return -ENODEV;