PD#SWPL-2287
Problem:
set wakeup reason to stick mem
Solution:
set wakeup reason to stick mem
Verify:
gxl,test pass
Change-Id: Iff6f1824ea4ac9ec12b8295d4283992fdac03b14
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
#include <linux/amlogic/pm.h>
#include <linux/kobject.h>
#include <../kernel/power/power.h>
+#include <linux/amlogic/scpi_protocol.h>
typedef unsigned long (psci_fn)(unsigned long, unsigned long,
unsigned long, unsigned long);
{
unsigned int len;
+ if (scpi_get_wakeup_reason(&suspend_reason))
+ return -EPERM;
len = sprintf(buf, "%d\n", suspend_reason);
return len;