Thread (49 messages) 49 messages, 3 authors, 2011-08-29
STALE5392d

[PATCH v5 08/22] gpio/omap: further cleanup using wakeup_status register

From: Santosh <hidden>
Date: 2011-08-23 13:02:36
Also in: linux-omap

On Thursday 04 August 2011 04:34 PM, Tarun Kanti DebBarma wrote:
Wakeup istatus register offset initialized according to OMAP versions
/s/ istatus / status
quoted hunk ↗ jump to hunk
during device registration. Use this to avoid version checks.
Starting with OMAP4, legacy registers should not be used in combination
with the updated regsiters. Use wkup_status register consistently for
all SoCs wherever applicable.

Signed-off-by: Tarun Kanti DebBarma<redacted>
Signed-off-by: Charulatha V<redacted>
---
  arch/arm/mach-omap1/gpio16xx.c         |    1 +
  arch/arm/mach-omap2/gpio.c             |    2 +
  arch/arm/plat-omap/include/plat/gpio.h |    1 +
  drivers/gpio/gpio-omap.c               |  109 ++++++--------------------------
  4 files changed, 24 insertions(+), 89 deletions(-)
diff --git a/arch/arm/mach-omap1/gpio16xx.c b/arch/arm/mach-omap1/gpio16xx.c
index df4bb44..ed9f285 100644
--- a/arch/arm/mach-omap1/gpio16xx.c
+++ b/arch/arm/mach-omap1/gpio16xx.c
@@ -89,6 +89,7 @@ static struct omap_gpio_reg_offs omap16xx_gpio_regs = {
  	.irqenable	= OMAP1610_GPIO_IRQENABLE1,
  	.set_irqenable	= OMAP1610_GPIO_SET_IRQENABLE1,
  	.clr_irqenable	= OMAP1610_GPIO_CLEAR_IRQENABLE1,
+	.wkup_status	= OMAP1610_GPIO_WAKEUPENABLE,
The register doesn't seems to be the status register. wkup_en
is more appropriate.

Regards
Santosh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help