From: Axel Lin Date: Thu, 8 Jun 2017 09:20:12 +0000 (+0800) Subject: dm: bcm6345_gpio: Set proper output level in bcm6345_gpio_direction_output X-Git-Tag: v2017.07-rc2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d2d20d9925ff57982fc0c50d4ec490323c2074f6;p=platform%2Fkernel%2Fu-boot.git 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 --- 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); }