| 1 | /* SPDX-License-Identifier: GPL-2.0 */
|
| 2 | /*
|
| 3 | * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
|
| 4 | * http://www.samsung.com
|
| 5 | */
|
| 6 |
|
| 7 | /* pull in the relevant register and map files. */
|
| 8 |
|
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 |
|
| 14 | /* note, for the boot process to work we have to keep the UART
|
| 15 | * virtual address aligned to an 1MiB boundary for the L1
|
| 16 | * mapping the head code makes. We keep the UART virtual address
|
| 17 | * aligned and add in the offset when we load the value here.
|
| 18 | */
|
| 19 |
|
| 20 | .macro addruart, rp, rv, tmp
|
| 21 | mrc p15, 0, \tmp, c0, c0, 0
|
| 22 | and \tmp, \tmp, |
| 23 | teq \tmp, |
| 24 | beq 100f
|
| 25 | mrc p15, 0, \tmp, c0, c0, 5
|
| 26 | and \tmp, \tmp, |
| 27 | teq \tmp, |
| 28 | 100: ldreq \rp, =EXYNOS5_PA_UART
|
| 29 | movne \rp, |
| 30 | ldr \rv, =S3C_VA_UART
|
| 31 | |
| 32 | add \rp, \rp, |
| 33 | add \rv, \rv, |
| 34 | |
| 35 | .endm
|
| 36 |
|
| 37 | |
| 38 | |
| 39 |
|
| 40 | |