From 392e8802486cb573b916e746010e141a75f507e6 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 15 Nov 2014 09:58:27 +0800 Subject: init android origin source code --- .../arch/arm/include/asm/hardware/debug-8250.S | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 ANDROID_3.4.5/arch/arm/include/asm/hardware/debug-8250.S (limited to 'ANDROID_3.4.5/arch/arm/include/asm/hardware/debug-8250.S') diff --git a/ANDROID_3.4.5/arch/arm/include/asm/hardware/debug-8250.S b/ANDROID_3.4.5/arch/arm/include/asm/hardware/debug-8250.S new file mode 100644 index 00000000..22c68925 --- /dev/null +++ b/ANDROID_3.4.5/arch/arm/include/asm/hardware/debug-8250.S @@ -0,0 +1,29 @@ +/* + * arch/arm/include/asm/hardware/debug-8250.S + * + * Copyright (C) 1994-1999 Russell King + * + * 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. + */ +#include + + .macro senduart,rd,rx + strb \rd, [\rx, #UART_TX << UART_SHIFT] + .endm + + .macro busyuart,rd,rx +1002: ldrb \rd, [\rx, #UART_LSR << UART_SHIFT] + and \rd, \rd, #UART_LSR_TEMT | UART_LSR_THRE + teq \rd, #UART_LSR_TEMT | UART_LSR_THRE + bne 1002b + .endm + + .macro waituart,rd,rx +#ifdef FLOW_CONTROL +1001: ldrb \rd, [\rx, #UART_MSR << UART_SHIFT] + tst \rd, #UART_MSR_CTS + beq 1001b +#endif + .endm -- cgit