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