From d42f4850f6fac626a13a00a3d9bcc4f2dbf37563 Mon Sep 17 00:00:00 2001 From: xxx Date: Sat, 27 Jul 2013 15:05:59 +0800 Subject: [PATCH] rk30 pm.c: fix ctr bits parameter to support help inf,add arm\logic suspend volt parameter --- arch/arm/mach-rk30/pm.c | 84 ++++++++++++++++++- .../arm/plat-rk/rk_pm_tests/rk_suspend_test.c | 4 +- 2 files changed, 82 insertions(+), 6 deletions(-) mode change 100644 => 100755 arch/arm/mach-rk30/pm.c diff --git a/arch/arm/mach-rk30/pm.c b/arch/arm/mach-rk30/pm.c old mode 100644 new mode 100755 index 60a7ff855bbb..5f01c666f151 --- a/arch/arm/mach-rk30/pm.c +++ b/arch/arm/mach-rk30/pm.c @@ -25,6 +25,9 @@ #include #include #include +#include + + #define cru_readl(offset) readl_relaxed(RK30_CRU_BASE + offset) #define cru_writel(v, offset) do { writel_relaxed(v, RK30_CRU_BASE + offset); dsb(); } while (0) @@ -1000,7 +1003,7 @@ 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; @@ -1013,6 +1016,17 @@ ssize_t rk_soc_pm_helps_print(char *buf) return (s-buf); } +void rk_soc_pm_helps_printk(void) +{ + int i; + printk("**************rk_suspend_ctr_bits bits help***********:\n"); + for(i=0;i