ARM: rockchip: pm: add system suspend support for rk3288
authorshengfei Xu <xsf@rock-chips.com>
Mon, 10 Apr 2017 03:12:48 +0000 (11:12 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 24 Apr 2017 11:11:20 +0000 (19:11 +0800)
PSCI v1.0 introduces a new API called PSCI_SYSTEM_SUSPEND. This API
provides the mechanism by which the calling OS can request entry into
the deepest possible system sleep state.

Change-Id: I2dbb56ad337315eee76170443de96a1df05f8aab
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
arch/arm/mach-rockchip/pm.c

index be28a78f50b06a4c28067d4256b2175a00846456..8d956f7a13e9a9ff8e4caeb25acac946f4dcea2f 100644 (file)
@@ -27,6 +27,7 @@
 #include <asm/cacheflush.h>
 #include <asm/tlbflush.h>
 #include <asm/suspend.h>
+#include <asm/psci.h>
 
 #include "pm.h"
 #include "embedded/rk3288_resume.h"
@@ -348,6 +349,9 @@ void __init rockchip_suspend_init(void)
        struct device_node *np;
        int ret;
 
+       if (psci_smp_available())
+               return;
+
        np = of_find_matching_node_and_match(NULL, rockchip_pmu_of_device_ids,
                                             &match);
        if (!match) {