Thread (8 messages) flat view 8 messages, 2 authors, 2015-11-30
STALE3948d

[PATCH v3 4/5] pinctrl/lantiq: Fix GPIO Setup of GPIO Port3

From: Martin Schiller <hidden>
Date: 2015-11-26 10:00:09
Also in: linux-gpio, linux-mips
Subsystem: pin control subsystem, the rest · Maintainers: Linus Walleij, Linus Torvalds

From: John Crispin <redacted>

Signed-off-by: John Crispin <redacted>
Signed-off-by: Martin Schiller <redacted>
---
Changes in v3:
- Moved this change into a separate patch

Changes in v2: 
None

 drivers/pinctrl/pinctrl-xway.c | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/drivers/pinctrl/pinctrl-xway.c b/drivers/pinctrl/pinctrl-xway.c
index a064962..b78baaa 100644
--- a/drivers/pinctrl/pinctrl-xway.c
+++ b/drivers/pinctrl/pinctrl-xway.c
@@ -1563,6 +1563,10 @@ static int xway_gpio_dir_out(struct gpio_chip *chip, unsigned int pin, int val)
 {
 	struct ltq_pinmux_info *info = dev_get_drvdata(chip->dev);
 
+	if (PORT(pin) == PORT3)
+		gpio_setbit(info->membase[0], GPIO3_OD, PORT_PIN(pin));
+	else
+		gpio_setbit(info->membase[0], GPIO_OD(pin), PORT_PIN(pin));
 	gpio_setbit(info->membase[0], GPIO_DIR(pin), PORT_PIN(pin));
 	xway_gpio_set(chip, pin, val);
 
-- 
2.1.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help