diff options
author | Florian Fainelli <florian@openwrt.org> | 2008-08-22 11:01:03 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-10-11 11:18:45 -0400 |
commit | 3c8cf8caa5b217fbb17d0dce7f6bbec1d7da7249 (patch) | |
tree | 08dac39df2d5451aa857c599a195341b0ee22189 /include/asm-mips | |
parent | 3cd4e067a3e548a56a8b5e202552dcd18a2783a9 (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 'include/asm-mips')
-rw-r--r-- | include/asm-mips/mach-rc32434/rb.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-mips/mach-rc32434/rb.h b/include/asm-mips/mach-rc32434/rb.h index e0a76e3ffea8..62ac73c999c4 100644 --- a/include/asm-mips/mach-rc32434/rb.h +++ b/include/asm-mips/mach-rc32434/rb.h | |||
@@ -17,7 +17,8 @@ | |||
17 | 17 | ||
18 | #include <linux/genhd.h> | 18 | #include <linux/genhd.h> |
19 | 19 | ||
20 | #define IDT434_REG_BASE ((volatile void *) KSEG1ADDR(0x18000000)) | 20 | #define REGBASE 0x18000000 |
21 | #define IDT434_REG_BASE ((volatile void *) KSEG1ADDR(REGBASE)) | ||
21 | #define DEV0BASE 0x010000 | 22 | #define DEV0BASE 0x010000 |
22 | #define DEV0MASK 0x010004 | 23 | #define DEV0MASK 0x010004 |
23 | #define DEV0C 0x010008 | 24 | #define DEV0C 0x010008 |