summaryrefslogtreecommitdiff
path: root/drivers/serial/dz.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2005-11-12 22:00:27 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-11-12 22:00:27 +0000
commit46677736bec5c44601987e8780e55bc242e0aa46 (patch)
tree09fe8cbf09d9aa6411177c9007ce2f7c2e6da920 /drivers/serial/dz.c
parentfd8c597214f868df7c0055c54e27baaae8df9e70 (diff)
[SERIAL] dz: Use CKSEG1ADDR to setup mappings.
Use physical addresses at the interface level, letting drivers remap them as appropriate. Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org> Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/serial/dz.c')
-rw-r--r--drivers/serial/dz.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/serial/dz.c b/drivers/serial/dz.c
index 84840f445345..4d8516d1bb71 100644
--- a/drivers/serial/dz.c
+++ b/drivers/serial/dz.c
@@ -645,9 +645,9 @@ static void __init dz_init_ports(void)
if (mips_machtype == MACH_DS23100 ||
mips_machtype == MACH_DS5100)
- base = (unsigned long) KN01_DZ11_BASE;
+ base = CKSEG1ADDR(KN01_SLOT_BASE + KN01_DZ11);
else
- base = (unsigned long) KN02_DZ11_BASE;
+ base = CKSEG1ADDR(KN02_SLOT_BASE + KN02_DZ11);
for (i = 0, dport = dz_ports; i < DZ_NB_PORT; i++, dport++) {
spin_lock_init(&dport->port.lock);