/**Copyright(C)1994-1999RussellKing*Copyright(C)2008-2009Telechips*Copyright(C)2009HansJ.Koch<hjk@linutronix.de>**Thisprogramisfreesoftware; you can redistribute it and/or modify*itunderthetermsoftheGNUGeneralPublicLicenseversion2as*publishedbytheFreeSoftwareFoundation.**/.macroaddruart,rx,tmpmrcp15,0,\rx,c1,c0tst\rx,#1@MMUenabled?moveq\rx,#0x90000000@physicalbaseaddressmovne\rx,#0xF1000000@virtualbaseorr\rx,\rx,#0x00007000@UART0.endm.macrosenduart,rd,rxstrb\rd,[\rx,#0x44].endm.macrowaituart,rd,rx.endm.macrobusyuart,rd,rx1001:ldr\rd,[\rx,#0x14]tst\rd,#0x20beq1001b.endm