ARM: 9011/1: centralize phys-to-virt conversion of DT/ATAGS address
authorArd Biesheuvel <ardb@kernel.org>
Sun, 11 Oct 2020 09:20:16 +0000 (10:20 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 27 Oct 2020 12:10:59 +0000 (12:10 +0000)
commite9a2f8b599d0bc22a1b13e69527246ac39c697b4
treeb4089777e1426cbe315e6b2aaacd47913aec835a
parent3650b228f83adda7e5ee532e2b90429c03f7b9ec
ARM: 9011/1: centralize phys-to-virt conversion of DT/ATAGS address

Before moving the DT mapping out of the linear region, let's prepare
for this change by removing all the phys-to-virt translations of the
__atags_pointer variable, and perform this translation only once at
setup time.

Tested-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/include/asm/prom.h
arch/arm/kernel/atags.h
arch/arm/kernel/atags_parse.c
arch/arm/kernel/devtree.c
arch/arm/kernel/setup.c
arch/arm/mm/mmu.c