ARM: 5932/1: ux500: fix DEBUG_LL/earlyprintk
Add a static mapping for the UART and correct its virtual address in debug-macro.S, to make DEBUG_LL/earlyprintk work. Acked-by: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com> Acked-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
c72881e837
commit
59778fb6c4
|
@ -33,6 +33,7 @@ static struct platform_device *platform_devs[] __initdata = {
|
||||||
|
|
||||||
/* minimum static i/o mapping required to boot U8500 platforms */
|
/* minimum static i/o mapping required to boot U8500 platforms */
|
||||||
static struct map_desc u8500_io_desc[] __initdata = {
|
static struct map_desc u8500_io_desc[] __initdata = {
|
||||||
|
__IO_DEV_DESC(U8500_UART2_BASE, SZ_4K),
|
||||||
__IO_DEV_DESC(U8500_GIC_CPU_BASE, SZ_4K),
|
__IO_DEV_DESC(U8500_GIC_CPU_BASE, SZ_4K),
|
||||||
__IO_DEV_DESC(U8500_GIC_DIST_BASE, SZ_4K),
|
__IO_DEV_DESC(U8500_GIC_DIST_BASE, SZ_4K),
|
||||||
__IO_DEV_DESC(U8500_MTU0_BASE, SZ_4K),
|
__IO_DEV_DESC(U8500_MTU0_BASE, SZ_4K),
|
||||||
|
|
|
@ -8,12 +8,13 @@
|
||||||
* published by the Free Software Foundation.
|
* published by the Free Software Foundation.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
#include <mach/hardware.h>
|
||||||
|
|
||||||
.macro addruart,rx
|
.macro addruart,rx
|
||||||
mrc p15, 0, \rx, c1, c0
|
mrc p15, 0, \rx, c1, c0
|
||||||
tst \rx, #1 @MMU enabled?
|
tst \rx, #1 @ MMU enabled?
|
||||||
moveq \rx, #0x80000000 @MMU off, Physical address
|
ldreq \rx, =U8500_UART2_BASE @ no, physical address
|
||||||
movne \rx, #0xF0000000 @MMU on, Virtual address
|
ldrne \rx, =IO_ADDRESS(U8500_UART2_BASE) @ yes, virtual address
|
||||||
orr \rx, \rx, #0x7000
|
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
#include <asm/hardware/debug-pl01x.S>
|
#include <asm/hardware/debug-pl01x.S>
|
||||||
|
|
Loading…
Reference in New Issue