Skip to content

Commit 69a87f2

Browse files
author
Linus Walleij
committed
gpio: ftgpio010: Fix some more registers
There is a register for "bypass" which seems to not be used for anything in some silicon designs, but may be used in others, and there is both a raw and masked interrupt status register. Define them all for clarity, no semantic changes. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 3c87d7c commit 69a87f2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎drivers/gpio/gpio-ftgpio010.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@
2121
#define GPIO_DATA_OUT 0x00
2222
#define GPIO_DATA_IN 0x04
2323
#define GPIO_DIR 0x08
24+
#define GPIO_BYPASS_IN 0x0C
2425
#define GPIO_DATA_SET 0x10
2526
#define GPIO_DATA_CLR 0x14
2627
#define GPIO_PULL_EN 0x18
2728
#define GPIO_PULL_TYPE 0x1C
2829
#define GPIO_INT_EN 0x20
29-
#define GPIO_INT_STAT 0x24
30+
#define GPIO_INT_STAT_RAW 0x24
31+
#define GPIO_INT_STAT_MASKED 0x28
3032
#define GPIO_INT_MASK 0x2C
3133
#define GPIO_INT_CLR 0x30
3234
#define GPIO_INT_TYPE 0x34
@@ -147,7 +149,7 @@ static void ftgpio_gpio_irq_handler(struct irq_desc *desc)
147149

148150
chained_irq_enter(irqchip, desc);
149151

150-
stat = readl(g->base + GPIO_INT_STAT);
152+
stat = readl(g->base + GPIO_INT_STAT_RAW);
151153
if (stat)
152154
for_each_set_bit(offset, &stat, gc->ngpio)
153155
generic_handle_irq(irq_find_mapping(gc->irq.domain,

0 commit comments

Comments
 (0)