diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2013-05-12 13:22:17 +0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2013-10-21 05:11:07 +0400 |
commit | c7c3eac6277bc60fb4472a16c5af5d54afc83596 (patch) | |
tree | d5adc61fddb818e903eeb617d6f2e8c5a560f763 /arch/arm/include/debug/vf.S | |
parent | 4c1dd3e5edc1619199b4a42618169ac3ac457cb5 (diff) | |
download | linux-c7c3eac6277bc60fb4472a16c5af5d54afc83596.tar.xz |
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>
Diffstat (limited to 'arch/arm/include/debug/vf.S')
-rw-r--r-- | arch/arm/include/debug/vf.S | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/include/debug/vf.S b/arch/arm/include/debug/vf.S new file mode 100644 index 000000000000..ba12cc44b2cb --- /dev/null +++ b/arch/arm/include/debug/vf.S @@ -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 |