blob: 6f04f08a203c252e8394b337d16d3f413484e76a [file] [log] [blame]
Linus Walleijbb3cee22009-04-23 10:22:13 +01001/*
Linus Walleij22f718e2013-05-02 17:00:29 +02002 * Copyright (C) 2006-2013 ST-Ericsson AB
Linus Walleijbb3cee22009-04-23 10:22:13 +01003 * License terms: GNU General Public License (GPL) version 2
4 * Debugging macro include header.
5 * Author: Linus Walleij <linus.walleij@stericsson.com>
6 */
Linus Walleij22f718e2013-05-02 17:00:29 +02007#define U300_SLOW_PER_PHYS_BASE 0xc0010000
8#define U300_SLOW_PER_VIRT_BASE 0xff000000
Linus Walleijbb3cee22009-04-23 10:22:13 +01009
Nicolas Pitre639da5e2011-08-31 22:55:46 -040010 .macro addruart, rp, rv, tmp
Daniel Mack3ad2f3f2010-02-03 08:01:28 +080011 /* If we move the address using MMU, use this. */
Jeremy Kerr0ea12932010-07-06 18:30:06 +080012 ldr \rp, = U300_SLOW_PER_PHYS_BASE @ MMU off, physical address
13 ldr \rv, = U300_SLOW_PER_VIRT_BASE @ MMU on, virtual address
14 orr \rp, \rp, #0x00003000
15 orr \rv, \rv, #0x00003000
Linus Walleijbb3cee22009-04-23 10:22:13 +010016 .endm
17
18#include <asm/hardware/debug-pl01x.S>