projects
/
platform
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83c5aac
)
Gemini: wrong registers used to set reg_level in gpio_set_irq_type()
author
Roel Kluin
<roel.kluin@gmail.com>
Thu, 18 Feb 2010 19:54:11 +0000
(21:54 +0200)
committer
Paulius Zaleckas
<paulius.zaleckas@teltonika.lt>
Thu, 18 Feb 2010 19:54:11 +0000
(21:54 +0200)
It appears the wrong GPIO registers were used
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
arch/arm/mach-gemini/gpio.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-gemini/gpio.c
b/arch/arm/mach-gemini/gpio.c
index
e726385
..
fe3bd5a
100644
(file)
--- a/
arch/arm/mach-gemini/gpio.c
+++ b/
arch/arm/mach-gemini/gpio.c
@@
-86,7
+86,7
@@
static int gpio_set_irq_type(unsigned int irq, unsigned int type)
unsigned int reg_both, reg_level, reg_type;
reg_type = __raw_readl(base + GPIO_INT_TYPE);
- reg_level = __raw_readl(base + GPIO_INT_
BOTH_EDGE
);
+ reg_level = __raw_readl(base + GPIO_INT_
LEVEL
);
reg_both = __raw_readl(base + GPIO_INT_BOTH_EDGE);
switch (type) {
@@
-117,7
+117,7
@@
static int gpio_set_irq_type(unsigned int irq, unsigned int type)
}
__raw_writel(reg_type, base + GPIO_INT_TYPE);
- __raw_writel(reg_level, base + GPIO_INT_
BOTH_EDGE
);
+ __raw_writel(reg_level, base + GPIO_INT_
LEVEL
);
__raw_writel(reg_both, base + GPIO_INT_BOTH_EDGE);
gpio_ack_irq(irq);