From f67fa5646730b4d79fb0a8123d6785c296f157b3 Mon Sep 17 00:00:00 2001 From: xxx Date: Sat, 27 Jul 2013 15:26:42 +0800 Subject: [PATCH] rk3026 pm.c: fix ctr bits parameter to support help inf,add arm\logic suspend volt parameter --- arch/arm/mach-rk2928/pm.c | 93 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 86 insertions(+), 7 deletions(-) mode change 100644 => 100755 arch/arm/mach-rk2928/pm.c diff --git a/arch/arm/mach-rk2928/pm.c b/arch/arm/mach-rk2928/pm.c old mode 100644 new mode 100755 index 2fe23220cc5e..4cf0a5adb7f3 --- a/arch/arm/mach-rk2928/pm.c +++ b/arch/arm/mach-rk2928/pm.c @@ -22,6 +22,8 @@ #include #include #include +#include + #define cru_readl(offset) readl_relaxed(RK2928_CRU_BASE + offset) #define cru_writel(v, offset) do { writel_relaxed(v, RK2928_CRU_BASE + offset); dsb(); } while (0) @@ -120,17 +122,29 @@ struct rk_soc_pm_info_st rk_soc_pm_helps[] = { RK_SOC_PM_HELP_(WAKE_UP_KEY, "send a power key to wake up lcd"), }; -ssize_t rk_soc_pm_helps_print(char *buf) +ssize_t rk_soc_pm_helps_sprintf(char *buf) { char *s = buf; int i; - for (i = 0; i < ARRAY_SIZE(rk_soc_pm_helps); i++) { - s += sprintf(s, "bit(%d): %s\n", rk_soc_pm_helps[i].offset, rk_soc_pm_helps[i].name); + for(i=0;i