mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-14 02:44:45 +00:00
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> SVN-Revision: 35078
This commit is contained in:
parent
64910f4490
commit
b63b970866
@ -59,9 +59,9 @@ __set_direction(struct cns3xxx_gpio_chip *cchip, unsigned pin, int input)
|
|||||||
|
|
||||||
reg = __raw_readl(cchip->base + GPIO_DIR);
|
reg = __raw_readl(cchip->base + GPIO_DIR);
|
||||||
if (input)
|
if (input)
|
||||||
reg |= 1 << pin;
|
reg &= ~(1 << pin);
|
||||||
else
|
else
|
||||||
reg &= !(1 << pin);
|
reg |= (1 << pin);
|
||||||
__raw_writel(reg, cchip->base + GPIO_DIR);
|
__raw_writel(reg, cchip->base + GPIO_DIR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user