Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46677736 authored by Ralf Baechle's avatar Ralf Baechle Committed by Russell King
Browse files

[SERIAL] dz: Use CKSEG1ADDR to setup mappings.



Use physical addresses at the interface level, letting drivers remap
them as appropriate.

Signed-off-by: default avatarMaciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent fd8c5972
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -645,9 +645,9 @@ static void __init dz_init_ports(void)


	if (mips_machtype == MACH_DS23100 ||
	if (mips_machtype == MACH_DS23100 ||
	    mips_machtype == MACH_DS5100)
	    mips_machtype == MACH_DS5100)
		base = (unsigned long) KN01_DZ11_BASE;
		base = CKSEG1ADDR(KN01_SLOT_BASE + KN01_DZ11);
	else
	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++) {
	for (i = 0, dport = dz_ports; i < DZ_NB_PORT; i++, dport++) {
		spin_lock_init(&dport->port.lock);
		spin_lock_init(&dport->port.lock);