提交 46677736 编写于 作者: R Ralf Baechle 提交者: Russell King

[SERIAL] dz: Use CKSEG1ADDR to setup mappings.

Use physical addresses at the interface level, letting drivers remap
them as appropriate.
Signed-off-by: NMaciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 fd8c5972
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册