-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM: imx: add low-level debug for vybrid
Add low-level debug support for vybrid, so that earlyprintk can be enabled for debugging early boot issue. Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
- Loading branch information
Shawn Guo
committed
Oct 21, 2013
1 parent
4c1dd3e
commit c7c3eac
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright 2013 Freescale Semiconductor, Inc. | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
* | ||
*/ | ||
|
||
.macro addruart, rp, rv, tmp | ||
ldr \rp, =0x40028000 @ physical | ||
ldr \rv, =0xfe028000 @ virtual | ||
.endm | ||
|
||
.macro senduart, rd, rx | ||
strb \rd, [\rx, #0x7] @ Data Register | ||
.endm | ||
|
||
.macro busyuart, rd, rx | ||
1001: ldrb \rd, [\rx, #0x4] @ Status Register 1 | ||
tst \rd, #1 << 6 @ TC | ||
beq 1001b @ wait until transmit done | ||
.endm | ||
|
||
.macro waituart,rd,rx | ||
.endm |