1
0
Fork 0
alistair23-linux/arch/arm/mach-dove
Arnd Bergmann 3584be9ec3 ARM: orion/mvebu: unify debug-ll virtual addresses
In a multiplatform configuration, enabling DEBUG_LL breaks booting
on all platforms with incompatible settings. In case of the Marvell
platforms of the Orion/MVEBU family, the physical addresses are
all the same, we just map them at different virtual addresses,
which makes it impossible to run a kernel with DEBUG_LL enabled on
a combination of the merged mvebu and the legacy boardfile based
platforms.

This is easily solved by using the same virtual address everywhere.
I picked the address that is already used by mach-mvebu for UART0:
0xfec12000. All these platforms have a 1MB region with their internal
registers, almost always at physical address 0xf1000000, so I'm
updating the iotable for that entry.

In case of mach-dove, this is slightly trickier, as the existing
mapping is 8MB and a second 8MB mapping is already at the 0xfec00000
address. I have verified from the datasheet that the last 7MB of the
physical mapping are "reserved" and nothing in Linux tries to use
it either. I'm putting this 1MB mapping at the same address as the
others, and the second 8MB register area immediately before that.

Link: https://lore.kernel.org/r/20190731195713.3150463-14-arnd@arndb.de
Link: https://lore.kernel.org/linux-arm-kernel/87si3eb1z8.fsf@free-electrons.com/
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2019-08-14 19:24:58 +02:00
..
include/mach ARM: dove: clean up mach/*.h headers 2019-08-14 19:24:57 +02:00
Kconfig License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile.boot treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
bridge-regs.h ARM: dove: clean up mach/*.h headers 2019-08-14 19:24:57 +02:00
cm-a510.c ARM: dove: clean up mach/*.h headers 2019-08-14 19:24:57 +02:00
common.c ARM: dove: clean up mach/*.h headers 2019-08-14 19:24:57 +02:00
common.h reboot: arm: change reboot_mode to use enum reboot_mode 2013-07-09 10:33:29 -07:00
dove-db-setup.c ARM: dove: clean up mach/*.h headers 2019-08-14 19:24:57 +02:00
dove.h ARM: orion/mvebu: unify debug-ll virtual addresses 2019-08-14 19:24:58 +02:00
irq.c ARM: dove: clean up mach/*.h headers 2019-08-14 19:24:57 +02:00
irqs.h ARM: dove: clean up mach/*.h headers 2019-08-14 19:24:57 +02:00
mpp.c ARM: dove: clean up mach/*.h headers 2019-08-14 19:24:57 +02:00
mpp.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pcie.c ARM: dove: clean up mach/*.h headers 2019-08-14 19:24:57 +02:00
pm.h ARM: dove: clean up mach/*.h headers 2019-08-14 19:24:57 +02:00