aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVikram Pandita <vikram.pandita@ti.com>2011-08-22 18:18:51 -0700
committerColin Cross <ccross@android.com>2011-08-24 11:57:42 -0700
commit8da1f3b0befaa9f4437f00833cd00f3066afeefc (patch)
treed9a2e9bded81e03b076294fb89a2f02c8aaa66eb
parent480373e97d344853c7cac676e8b227607c2d3aed (diff)
downloadkernel_samsung_tuna-8da1f3b0befaa9f4437f00833cd00f3066afeefc.zip
kernel_samsung_tuna-8da1f3b0befaa9f4437f00833cd00f3066afeefc.tar.gz
kernel_samsung_tuna-8da1f3b0befaa9f4437f00833cd00f3066afeefc.tar.bz2
OMAP4: PM: Print wakeup pad conf sources
Change-Id: I6969271306836b8cd6bb452edea5c5a305540f23 Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
-rw-r--r--arch/arm/mach-omap2/pm44xx.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/pm44xx.c b/arch/arm/mach-omap2/pm44xx.c
index 1aa0f4d..fdc3095 100644
--- a/arch/arm/mach-omap2/pm44xx.c
+++ b/arch/arm/mach-omap2/pm44xx.c
@@ -289,12 +289,14 @@ out:
}
#define CONTROL_PADCONF_WAKEUPEVENT_0 0x4a1001d8
+#define CONTROL_WKUP_PADCONF_WAKEUPEVENT_0 0x4a31E07C
static void _print_prcm_wakeirq(int irq)
{
int i, bit;
int iopad_wake_found = 0;
u32 prcm_irqs1, prcm_irqs2;
+ long unsigned int wkup_pad_event;
prcm_irqs1 = omap4_prm_read_inst_reg(OMAP4430_PRM_OCP_SOCKET_INST,
OMAP4_PRM_IRQSTATUS_MPU_OFFSET);
@@ -305,7 +307,7 @@ static void _print_prcm_wakeirq(int irq)
prcm_irqs2 &= omap4_prm_read_inst_reg(OMAP4430_PRM_OCP_SOCKET_INST,
OMAP4_PRM_IRQENABLE_MPU_2_OFFSET);
- if (prcm_irqs1 & OMAP4430_IO_ST_MASK)
+ if (prcm_irqs1 & OMAP4430_IO_ST_MASK) {
for (i = 0; i <= 6; i++) {
long unsigned int wkevt =
omap_readl(CONTROL_PADCONF_WAKEUPEVENT_0 + i*4);
@@ -316,6 +318,12 @@ static void _print_prcm_wakeirq(int irq)
iopad_wake_found = 1;
}
}
+ wkup_pad_event = omap_readl(CONTROL_WKUP_PADCONF_WAKEUPEVENT_0);
+ for_each_set_bit(bit, &wkup_pad_event, 25) {
+ pr_info("Resume caused by wakeup I/O pad: CONTROL_WKUP_PADCONF_WAKEUPEVENT_0[%d]\n", bit);
+ iopad_wake_found = 1;
+ }
+ }
if (prcm_irqs1 & ~OMAP4430_IO_ST_MASK || !iopad_wake_found ||
prcm_irqs2)