xref: /openbmc/linux/arch/arm/include/debug/vf.S (revision 12eb4683)
1/*
2 * Copyright 2013 Freescale Semiconductor, Inc.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 */
9
10	.macro	addruart, rp, rv, tmp
11	ldr	\rp, =0x40028000	@ physical
12	ldr	\rv, =0xfe028000	@ virtual
13	.endm
14
15	.macro	senduart, rd, rx
16	strb	\rd, [\rx, #0x7]	@ Data Register
17	.endm
18
19	.macro	busyuart, rd, rx
201001:	ldrb	\rd, [\rx, #0x4]	@ Status Register 1
21	tst	\rd, #1 << 6		@ TC
22	beq	1001b			@ wait until transmit done
23	.endm
24
25	.macro	waituart,rd,rx
26	.endm
27