ARM: rockchip: pm: add system suspend support for rk3288

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>
This commit is contained in:
shengfei Xu 2017-04-10 11:12:48 +08:00 committed by Huang, Tao
parent be4b15c304
commit f55c472258

View 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) {