Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182988
b: refs/heads/master
c: 59778fb
h: refs/heads/master
v: v3
  • Loading branch information
Rabin Vincent authored and Russell King committed Feb 14, 2010
1 parent 32561c2 commit 30afac8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c72881e8377ca713427486add16fc63256f0231b
refs/heads/master: 59778fb6c402d48b1efa154e0e79d5e94726365e
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-ux500/cpu-u8500.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ static struct platform_device *platform_devs[] __initdata = {

/* minimum static i/o mapping required to boot U8500 platforms */
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_DIST_BASE, SZ_4K),
__IO_DEV_DESC(U8500_MTU0_BASE, SZ_4K),
Expand Down
9 changes: 5 additions & 4 deletions trunk/arch/arm/mach-ux500/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
* published by the Free Software Foundation.
*
*/
#include <mach/hardware.h>

.macro addruart,rx
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @MMU enabled?
moveq \rx, #0x80000000 @MMU off, Physical address
movne \rx, #0xF0000000 @MMU on, Virtual address
orr \rx, \rx, #0x7000
tst \rx, #1 @ MMU enabled?
ldreq \rx, =U8500_UART2_BASE @ no, physical address
ldrne \rx, =IO_ADDRESS(U8500_UART2_BASE) @ yes, virtual address
.endm

#include <asm/hardware/debug-pl01x.S>

0 comments on commit 30afac8

Please sign in to comment.