Skip to content

Commit

Permalink
ARM: mmp: clear gpio edge detect
Browse files Browse the repository at this point in the history
Append code to clear gpio edge detect in gpio-pxa driver.

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
  • Loading branch information
Haojian Zhuang authored and Haojian Zhuang committed Nov 15, 2011
1 parent 157d264 commit be24168
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpio/gpio-pxa.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#define GFER_OFFSET 0x3C
#define GEDR_OFFSET 0x48
#define GAFR_OFFSET 0x54
#define ED_MASK_OFFSET 0x9C /* GPIO edge detection for AP side */

#define BANK_OFF(n) (((n) < 3) ? (n) << 2 : 0x100 + (((n) - 3) << 2))

Expand Down Expand Up @@ -496,6 +497,9 @@ static int __devinit pxa_gpio_probe(struct platform_device *pdev)
writel_relaxed(0, c->regbase + GFER_OFFSET);
writel_relaxed(0, c->regbase + GRER_OFFSET);
writel_relaxed(~0,c->regbase + GEDR_OFFSET);
/* unmask GPIO edge detect for AP side */
if (gpio_is_mmp_type(gpio_type))
writel_relaxed(~0, c->regbase + ED_MASK_OFFSET);
}

#ifdef CONFIG_ARCH_PXA
Expand Down

0 comments on commit be24168

Please sign in to comment.