aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2013-01-10 13:23:33 +0000
committerImre Kaloz <kaloz@openwrt.org>2013-01-10 13:23:33 +0000
commit0a3d441da8fe89d5a34f9600ab48cb0d50d5ae73 (patch)
tree2b192aebc74d8029387e936d179eca78b6b19ca7 /target
parentd54e68a19609c6ca08e068f457015ffc016d0e68 (diff)
downloadupstream-0a3d441da8fe89d5a34f9600ab48cb0d50d5ae73.tar.gz
upstream-0a3d441da8fe89d5a34f9600ab48cb0d50d5ae73.tar.bz2
upstream-0a3d441da8fe89d5a34f9600ab48cb0d50d5ae73.zip
[cns3xxx]: clean up PCI bus topology
This makes the PCI bus topology more standard for devices behind a bridge Signed-off-by: Tim Harvey <tharvey@gateworks.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35078 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/gpio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/gpio.c b/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/gpio.c
index 8fccbbf452..4f5d50054f 100644
--- a/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/gpio.c
+++ b/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/gpio.c
@@ -59,9 +59,9 @@ __set_direction(struct cns3xxx_gpio_chip *cchip, unsigned pin, int input)
reg = __raw_readl(cchip->base + GPIO_DIR);
if (input)
- reg |= 1 << pin;
+ reg &= ~(1 << pin);
else
- reg &= !(1 << pin);
+ reg |= (1 << pin);
__raw_writel(reg, cchip->base + GPIO_DIR);
}