summaryrefslogtreecommitdiff
path: root/drivers/gpio/mvebu_gpio.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-04-12 09:10:54 -0400
committerTom Rini <trini@konsulko.com>2016-04-12 09:10:54 -0400
commit39fbd987164336adc2ff7e5ab7a4268b8dcdee92 (patch)
treef24aa70332c5a6f7c406927c7aed4c966ee145df /drivers/gpio/mvebu_gpio.c
parentec770dba89533ca49b1bdc7d2c49c2d01fcdf406 (diff)
parentaca84a214d70953505d56b7c9717d1a7c019902c (diff)
Merge git://www.denx.de/git/u-boot-marvell
Diffstat (limited to 'drivers/gpio/mvebu_gpio.c')
-rw-r--r--drivers/gpio/mvebu_gpio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpio/mvebu_gpio.c b/drivers/gpio/mvebu_gpio.c
index 9564ce2b13..75dc73e586 100644
--- a/drivers/gpio/mvebu_gpio.c
+++ b/drivers/gpio/mvebu_gpio.c
@@ -43,6 +43,10 @@ static int mvebu_gpio_direction_output(struct udevice *dev, unsigned gpio,
struct mvebu_gpio_priv *priv = dev_get_priv(dev);
struct mvebu_gpio_regs *regs = priv->regs;
+ if (value)
+ setbits_le32(&regs->data_out, BIT(gpio));
+ else
+ clrbits_le32(&regs->data_out, BIT(gpio));
clrbits_le32(&regs->io_conf, BIT(gpio));
return 0;