projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lua: Fixed some cross-platform issues for PPC (and probably other architectures)
[openwrt.git]
/
target
/
linux
/
rb532
/
files
/
arch
/
mips
/
rb500
/
gpio.c
diff --git
a/target/linux/rb532/files/arch/mips/rb500/gpio.c
b/target/linux/rb532/files/arch/mips/rb500/gpio.c
index
f7c4173
..
6c92a8f
100644
(file)
--- a/
target/linux/rb532/files/arch/mips/rb500/gpio.c
+++ b/
target/linux/rb532/files/arch/mips/rb500/gpio.c
@@
-43,7
+43,7
@@
static volatile unsigned char *devCtl3Base;
static unsigned char latchU5State;
static volatile unsigned char *devCtl3Base;
static unsigned char latchU5State;
-static spinlock_t clu5Lock;
+static spinlock_t clu5Lock
= SPIN_LOCK_UNLOCKED
;
struct rb500_gpio_reg __iomem *rb500_gpio_reg0;
EXPORT_SYMBOL(rb500_gpio_reg0);
struct rb500_gpio_reg __iomem *rb500_gpio_reg0;
EXPORT_SYMBOL(rb500_gpio_reg0);
@@
-116,7
+116,7
@@
EXPORT_SYMBOL(rb500_gpio_set_value);
int rb500_gpio_direction_input(unsigned gpio)
{
int rb500_gpio_direction_input(unsigned gpio)
{
- writel(readl(&rb500_gpio_reg0->gpiocfg)
|
(1 << gpio), (void *)&rb500_gpio_reg0->gpiocfg);
+ writel(readl(&rb500_gpio_reg0->gpiocfg)
& ~
(1 << gpio), (void *)&rb500_gpio_reg0->gpiocfg);
return 0;
}
return 0;
}
@@
-125,7
+125,7
@@
EXPORT_SYMBOL(rb500_gpio_direction_input);
int rb500_gpio_direction_output(unsigned gpio, int value)
{
gpio_set_value(gpio, value);
int rb500_gpio_direction_output(unsigned gpio, int value)
{
gpio_set_value(gpio, value);
- writel(readl(&rb500_gpio_reg0->gpiocfg)
& ~
(1 << gpio), (void *)&rb500_gpio_reg0->gpiocfg);
+ writel(readl(&rb500_gpio_reg0->gpiocfg)
|
(1 << gpio), (void *)&rb500_gpio_reg0->gpiocfg);
return 0;
}
return 0;
}
This page took
0.027585 seconds
and
4
git commands to generate.