From: Axel Lin Date: Sun, 7 Dec 2014 04:48:27 +0000 (+0800) Subject: gpio: intel_ich6: Set correct gpio output value in ich6_gpio_direction_output() X-Git-Tag: v2015.01-rc4~25^2~24 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0a54745fc2537cbbd9d9e405086cfff39d37c55e;p=u-boot gpio: intel_ich6: Set correct gpio output value in ich6_gpio_direction_output() Current code does not set gpio output value in ich6_gpio_direction_output(), fix it. Signed-off-by: Axel Lin Acked-by: Simon Glass --- diff --git a/drivers/gpio/intel_ich6_gpio.c b/drivers/gpio/intel_ich6_gpio.c index b095d17f57..92c23aed4c 100644 --- a/drivers/gpio/intel_ich6_gpio.c +++ b/drivers/gpio/intel_ich6_gpio.c @@ -251,6 +251,8 @@ static int ich6_gpio_direction_output(struct udevice *dev, unsigned offset, struct ich6_bank_priv *bank = dev_get_priv(dev); u32 tmplong; + gpio_set_value(offset, value); + tmplong = inl(bank->io_sel); tmplong &= ~(1UL << offset); outl(bank->io_sel, tmplong);