Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Ralf Baechle and committed by
Russell King
46677736 fd8c5972

+2 -2
+2 -2
drivers/serial/dz.c
··· 645 645 646 646 if (mips_machtype == MACH_DS23100 || 647 647 mips_machtype == MACH_DS5100) 648 - base = (unsigned long) KN01_DZ11_BASE; 648 + base = CKSEG1ADDR(KN01_SLOT_BASE + KN01_DZ11); 649 649 else 650 - base = (unsigned long) KN02_DZ11_BASE; 650 + base = CKSEG1ADDR(KN02_SLOT_BASE + KN02_DZ11); 651 651 652 652 for (i = 0, dport = dz_ports; i < DZ_NB_PORT; i++, dport++) { 653 653 spin_lock_init(&dport->port.lock);