瀏覽代碼

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>
Axel Lin 8 年之前
父節點
當前提交
d2d20d9925
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/gpio/bcm6345_gpio.c

+ 2 - 0
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);
 }