projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15c7c6b
)
gpio: intel_ich6: Set correct gpio output value in ich6_gpio_direction_output()
author
Axel Lin
<axel.lin@ingics.com>
Sun, 7 Dec 2014 04:48:27 +0000
(12:48 +0800)
committer
Simon Glass
<sjg@chromium.org>
Sat, 13 Dec 2014 22:08:04 +0000
(15:08 -0700)
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>
drivers/gpio/intel_ich6_gpio.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/intel_ich6_gpio.c
b/drivers/gpio/intel_ich6_gpio.c
index b095d17f5745c982c24c7acf69bcdf6ef0dbde93..92c23aed4cbd8087f48872135292838a2f16d8e1 100644
(file)
--- 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);