summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2017-06-08 09:20:12 (GMT)
committerTom Rini <trini@konsulko.com>2017-06-12 12:38:41 (GMT)
commitd2d20d9925ff57982fc0c50d4ec490323c2074f6 (patch)
treec8289a70bf4a339c4706217bead70a8be6962f46 /drivers/gpio
parent53207bfd704250354c56aa74c7e96151fddee1f1 (diff)
downloadu-boot-d2d20d9925ff57982fc0c50d4ec490323c2074f6.tar.xz
dm: bcm6345_gpio: Set proper output level in bcm6345_gpio_direction_output
Current code does not set output level in bcm6345_gpio_direction_output, fix it. Signed-off-by: Axel Lin <axel.lin@ingics.com>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/bcm6345_gpio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpio/bcm6345_gpio.c b/drivers/gpio/bcm6345_gpio.c
index 009e2fc..b9100cd 100644
--- a/drivers/gpio/bcm6345_gpio.c
+++ b/drivers/gpio/bcm6345_gpio.c
@@ -64,6 +64,8 @@ static int bcm6345_gpio_direction_output(struct udevice *dev, unsigned offset,
{
struct bcm6345_gpio_priv *priv = dev_get_priv(dev);
+ bcm6345_gpio_set_value(dev, offset, value);
+
return bcm6345_gpio_set_direction(priv->reg_dirout, offset, 0);
}