summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-09-24 16:38:52 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-09-24 16:38:52 -0700
commit1126388609dee3f2aca2a64de7b0709d0fede785 (patch)
tree4ab6b74ddcc7d4d1743b87efaf943da1e32fbcfe /arch
parent08ec3c2d45bac41c782acb4e3331ac5881b2c68a (diff)
parent5291925a9a65ea334f6e887d0f01dd119b8e2b2e (diff)
downloadop-kernel-dev-1126388609dee3f2aca2a64de7b0709d0fede785.zip
op-kernel-dev-1126388609dee3f2aca2a64de7b0709d0fede785.tar.gz
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: [MIPS] Fixe the definition of PTRS_PER_PGD [MIPS] au1000: Fix gpio direction
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/au1000/common/gpio.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/mips/au1000/common/gpio.c b/arch/mips/au1000/common/gpio.c
index b485d94..1f05843 100644
--- a/arch/mips/au1000/common/gpio.c
+++ b/arch/mips/au1000/common/gpio.c
@@ -61,7 +61,8 @@ static int au1xxx_gpio2_direction_input(unsigned gpio)
static int au1xxx_gpio2_direction_output(unsigned gpio, int value)
{
gpio -= AU1XXX_GPIO_BASE;
- gpio2->dir = (0x01 << gpio) | (value << gpio);
+ gpio2->dir |= 0x01 << gpio;
+ gpio2->output = (GPIO2_OUTPUT_ENABLE_MASK << gpio) | (value << gpio);
return 0;
}
@@ -90,6 +91,7 @@ static int au1xxx_gpio1_direction_input(unsigned gpio)
static int au1xxx_gpio1_direction_output(unsigned gpio, int value)
{
gpio1->trioutclr = (0x01 & gpio);
+ au1xxx_gpio1_write(gpio, value);
return 0;
}
OpenPOWER on IntegriCloud