Commit 0a54745fc2537cbbd9d9e405086cfff39d37c55e

Authored by Axel Lin
Committed by Simon Glass
1 parent 15c7c6b31a

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 <axel.lin@ingics.com>
Acked-by: Simon Glass <sjg@chromium.org>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

drivers/gpio/intel_ich6_gpio.c
... ... @@ -251,6 +251,8 @@
251 251 struct ich6_bank_priv *bank = dev_get_priv(dev);
252 252 u32 tmplong;
253 253  
  254 + gpio_set_value(offset, value);
  255 +
254 256 tmplong = inl(bank->io_sel);
255 257 tmplong &= ~(1UL << offset);
256 258 outl(bank->io_sel, tmplong);