diff options
author | ramesh.chandrasekaran <ramesh.chandrasekaran@stericsson.com> | 2012-06-04 17:36:00 +0800 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-06-04 19:44:01 +0800 |
commit | 9ce0109275e82697ada4b005325e663ba72c3181 (patch) | |
tree | cc1a303889db9599809cf76462242dd2ba44359c | |
parent | cd092ef3940cbf2c6267b53f00c2fb322458c846 (diff) |
pm: Fix for prcmu pending interrupt during suspendpm
Signed-off-by: ramesh.chandrasekaran <ramesh.chandrasekaran@stericsson.com>
-rw-r--r-- | arch/arm/mach-ux500/pm/context.c | 35 |
1 files changed, 1 insertions, 34 deletions
diff --git a/arch/arm/mach-ux500/pm/context.c b/arch/arm/mach-ux500/pm/context.c index 9dbbc9a7fdd..5902b861930 100644 --- a/arch/arm/mach-ux500/pm/context.c +++ b/arch/arm/mach-ux500/pm/context.c @@ -662,7 +662,6 @@ void context_fsmc_restore(void) void context_gpio_save(void) { int i; - unsigned int rimsc, fimsc; for (i = 0; i < GPIO_NUM_BANKS; i++) { gpio_save[i][0] = readl(gpio_bankaddr[i] + NMK_GPIO_AFSLA); @@ -673,22 +672,6 @@ void context_gpio_save(void) gpio_save[i][6] = readl(gpio_bankaddr[i] + NMK_GPIO_SLPC); } - /* Mask GPIO140 and GPIO32 which gives - * spurious interrupts during sleep - */ - rimsc = readl(gpio_bankaddr[4] + NMK_GPIO_RIMSC); - fimsc = readl(gpio_bankaddr[4] + NMK_GPIO_FIMSC); - rimsc &= ~(0x1 << (140 % NMK_GPIO_PER_CHIP)); - fimsc &= ~(0x1 << (140 % NMK_GPIO_PER_CHIP)); - writel(rimsc, gpio_bankaddr[4] + NMK_GPIO_RIMSC); - writel(fimsc, gpio_bankaddr[4] + NMK_GPIO_FIMSC); - - rimsc = readl(gpio_bankaddr[1] + NMK_GPIO_RIMSC); - fimsc = readl(gpio_bankaddr[1] + NMK_GPIO_FIMSC); - rimsc &= ~0x1; - fimsc &= ~0x1; - writel(rimsc, gpio_bankaddr[1] + NMK_GPIO_RIMSC); - writel(fimsc, gpio_bankaddr[1] + NMK_GPIO_FIMSC); } /* @@ -702,7 +685,6 @@ void context_gpio_restore(void) u32 pull_up; u32 pull_down; u32 pull; - unsigned int rimsc, fimsc; for (i = 0; i < GPIO_NUM_BANKS; i++) { writel(gpio_save[i][2], gpio_bankaddr[i] + NMK_GPIO_PDIS); @@ -739,22 +721,7 @@ void context_gpio_restore(void) writel(gpio_save[i][6], gpio_bankaddr[i] + NMK_GPIO_SLPC); } - /* Restore Masks for GPIO140 and GPIO32 which gives - * spurious interrupts during sleep - */ - rimsc = readl(gpio_bankaddr[4] + NMK_GPIO_RIMSC); - fimsc = readl(gpio_bankaddr[4] + NMK_GPIO_FIMSC); - rimsc |= (0x1 << 140 % NMK_GPIO_PER_CHIP); - fimsc |= (0x1 << 140 % NMK_GPIO_PER_CHIP); - writel(rimsc, gpio_bankaddr[4] + NMK_GPIO_RIMSC); - writel(fimsc, gpio_bankaddr[4] + NMK_GPIO_FIMSC); - - rimsc = readl(gpio_bankaddr[1] + NMK_GPIO_RIMSC); - fimsc = readl(gpio_bankaddr[1] + NMK_GPIO_FIMSC); - rimsc |= 0x1; - fimsc |= 0x1; - writel(rimsc, gpio_bankaddr[1] + NMK_GPIO_RIMSC); - writel(fimsc, gpio_bankaddr[1] + NMK_GPIO_FIMSC); + } /* |