mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
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>
This commit is contained in:
parent
53207bfd70
commit
d2d20d9925
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user