aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/rb532/gpio.c
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2008-08-22 11:01:03 -0400
committerRalf Baechle <ralf@linux-mips.org>2008-10-11 11:18:45 -0400
commit3c8cf8caa5b217fbb17d0dce7f6bbec1d7da7249 (patch)
tree08dac39df2d5451aa857c599a195341b0ee22189 /arch/mips/rb532/gpio.c
parent3cd4e067a3e548a56a8b5e202552dcd18a2783a9 (diff)
MIPS: RB532: Use physical addresses for gpio and device controller registers
This patch fixes the misuse of virtual addresses for the GPIO and third device controller which would lead to problems while accessing ioremap'd registers. Signed-off-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/rb532/gpio.c')
-rw-r--r--arch/mips/rb532/gpio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/rb532/gpio.c b/arch/mips/rb532/gpio.c
index 00a1c7877bf4..11d7127655e3 100644
--- a/arch/mips/rb532/gpio.c
+++ b/arch/mips/rb532/gpio.c
@@ -47,8 +47,8 @@ struct mpmc_device dev3;
47static struct resource rb532_gpio_reg0_res[] = { 47static struct resource rb532_gpio_reg0_res[] = {
48 { 48 {
49 .name = "gpio_reg0", 49 .name = "gpio_reg0",
50 .start = (u32)(IDT434_REG_BASE + GPIOBASE), 50 .start = REGBASE + GPIOBASE,
51 .end = (u32)(IDT434_REG_BASE + GPIOBASE + sizeof(struct rb532_gpio_reg)), 51 .end = REGBASE + GPIOBASE + sizeof(struct rb532_gpio_reg) - 1,
52 .flags = IORESOURCE_MEM, 52 .flags = IORESOURCE_MEM,
53 } 53 }
54}; 54};
@@ -56,8 +56,8 @@ static struct resource rb532_gpio_reg0_res[] = {
56static struct resource rb532_dev3_ctl_res[] = { 56static struct resource rb532_dev3_ctl_res[] = {
57 { 57 {
58 .name = "dev3_ctl", 58 .name = "dev3_ctl",
59 .start = (u32)(IDT434_REG_BASE + DEV3BASE), 59 .start = REGBASE + DEV3BASE,
60 .end = (u32)(IDT434_REG_BASE + DEV3BASE + sizeof(struct dev_reg)), 60 .end = REGBASE + DEV3BASE + sizeof(struct dev_reg) - 1,
61 .flags = IORESOURCE_MEM, 61 .flags = IORESOURCE_MEM,
62 } 62 }
63}; 63};