| 1 | /* SPDX-License-Identifier: GPL-2.0-only */
|
| 2 | /* arch/arm/mach-realview/include/mach/debug-macro.S
|
| 3 | *
|
| 4 | * Debugging macro include header
|
| 5 | *
|
| 6 | * Copyright (C) 1994-1999 Russell King
|
| 7 | * Moved from linux/arch/arm/kernel/debug.S by Ben Dooks
|
| 8 | */
|
| 9 |
|
| 10 | |
| 11 | |
| 12 |
|
| 13 | |
| 14 | |
| 15 |
|
| 16 | |
| 17 |
|
| 18 | |
| 19 |
|
| 20 | |
| 21 |
|
| 22 | .macro addruart,rp,rv,tmp
|
| 23 | .arch armv7-a
|
| 24 |
|
| 25 | @ Make an educated guess regarding the memory map:
|
| 26 | @ - the original A9 core tile (based on ARM Cortex-A9 r0p1)
|
| 27 | @ should use UART at 0x10009000
|
| 28 | @ - all other (RS1 complaint) tiles use UART mapped
|
| 29 | @ at 0x1c090000
|
| 30 | mrc p15, 0, \rp, c0, c0, 0
|
| 31 | movw \rv, |
| 32 | movt \rv, |
| 33 | cmp \rp, \rv
|
| 34 |
|
| 35 | @ Original memory map
|
| 36 | moveq \rp, |
| 37 | orreq \rv, \rp, |
| 38 | orreq \rp, \rp, |
| 39 |
|
| 40 | @ RS1 memory map
|
| 41 | movne \rp, |
| 42 | orrne \rv, \rp, |
| 43 | orrne \rp, \rp, |
| 44 |
|
| 45 | .endm
|
| 46 |
|
| 47 | |
| 48 | |