1
0
Fork 0
alistair23-linux/arch/arm/mach-orion5x
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
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
board-d2net.c ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
board-dt.c arm: use of_platform_default_populate() to populate 2016-06-23 15:00:39 -05:00
board-mss2.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
board-rd88f5182.c ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
bridge-regs.h ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
common.c clk: Remove io.h from clk-provider.h 2019-05-15 13:21:37 -07:00
common.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
db88f5281-setup.c treewide: setup_timer() -> timer_setup() 2017-11-21 15:57:07 -08:00
dns323-setup.c ARM: orion5x: Revert commit 4904dbda41. 2018-02-26 13:41:47 -05:00
irq.c ARM: orion5x: make orion5x_legacy_handle_irq static 2016-06-16 11:57:59 +02:00
irqs.h ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
kurobox_pro-setup.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
ls_hgl-setup.c ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
mpp.c ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01: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
mv2120-setup.c ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
net2big-setup.c ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
orion5x.h ARM: orion/mvebu: unify debug-ll virtual addresses 2019-08-14 19:24:58 +02:00
pci.c ARM/PCI: Convert PCI scan API to pci_scan_root_bus_bridge() 2017-06-28 15:13:55 -05:00
rd88f5181l-fxo-setup.c ARM: orion5x: Include platform_data/dsa.h 2019-01-17 11:31:24 -08:00
rd88f5181l-ge-setup.c ARM: orion5x: Include platform_data/dsa.h 2019-01-17 11:31:24 -08:00
rd88f5182-setup.c ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
rd88f6183ap-ge-setup.c ARM: orion5x: Include platform_data/dsa.h 2019-01-17 11:31:24 -08:00
terastation_pro2-setup.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
ts78xx-fpga.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ts78xx-setup.c mtd: rawnand: Move platform_nand_xxx definitions out of rawnand.h 2018-10-03 11:12:25 +02:00
ts209-setup.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
ts409-setup.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
tsx09-common.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
tsx09-common.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
wnr854t-setup.c ARM: orion5x: Include platform_data/dsa.h 2019-01-17 11:31:24 -08:00
wrt350n-v2-setup.c ARM: orion5x: Include platform_data/dsa.h 2019-01-17 11:31:24 -08:00