projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bbdbf2
)
mxc: first set GPIO level, then switch direction to output
author
Guennadi Liakhovetski
<lg@denx.de>
Thu, 12 Feb 2009 13:27:22 +0000
(14:27 +0100)
committer
Sascha Hauer
<s.hauer@pengutronix.de>
Fri, 13 Mar 2009 09:34:19 +0000
(10:34 +0100)
Make sure not to create spurious pulses on GPIOs, when configuring them as
output: first set required level, then switch direction.
Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/plat-mxc/gpio.c
patch
|
blob
|
history
diff --git
a/arch/arm/plat-mxc/gpio.c
b/arch/arm/plat-mxc/gpio.c
index
ccbd94a
..
c6483ba
100644
(file)
--- a/
arch/arm/plat-mxc/gpio.c
+++ b/
arch/arm/plat-mxc/gpio.c
@@
-200,8
+200,8
@@
static int mxc_gpio_direction_input(struct gpio_chip *chip, unsigned offset)
static int mxc_gpio_direction_output(struct gpio_chip *chip,
unsigned offset, int value)
{
- _set_gpio_direction(chip, offset, 1);
mxc_gpio_set(chip, offset, value);
+ _set_gpio_direction(chip, offset, 1);
return 0;
}