summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-12-07 12:48:27 +0800
committerSimon Glass <sjg@chromium.org>2014-12-13 15:08:04 -0700
commit0a54745fc2537cbbd9d9e405086cfff39d37c55e (patch)
treed8d6fa020e5c870ac2157740ee7d29c61cb545bd /drivers/gpio
parent15c7c6b31ad8742bd6e63be35f82193895ff8bdd (diff)
downloadu-boot-imx-0a54745fc2537cbbd9d9e405086cfff39d37c55e.zip
u-boot-imx-0a54745fc2537cbbd9d9e405086cfff39d37c55e.tar.gz
u-boot-imx-0a54745fc2537cbbd9d9e405086cfff39d37c55e.tar.bz2
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>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/intel_ich6_gpio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpio/intel_ich6_gpio.c b/drivers/gpio/intel_ich6_gpio.c
index b095d17..92c23ae 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);