• Arnd Bergmann's avatar
    ARM: orion/mvebu: unify debug-ll virtual addresses · 3584be9e
    Arnd Bergmann authored
    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 ...
    3584be9e
orion5x.h 5.61 KB