diff options
author | Srikant Patnaik | 2015-01-11 12:28:04 +0530 |
---|---|---|
committer | Srikant Patnaik | 2015-01-11 12:28:04 +0530 |
commit | 871480933a1c28f8a9fed4c4d34d06c439a7a422 (patch) | |
tree | 8718f573808810c2a1e8cb8fb6ac469093ca2784 /ANDROID_3.4.5/arch/arm/mach-wmt/include/mach/debug-macro.S | |
parent | 9d40ac5867b9aefe0722bc1f110b965ff294d30d (diff) | |
download | FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.gz FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.bz2 FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.zip |
Moved, renamed, and deleted files
The original directory structure was scattered and unorganized.
Changes are basically to make it look like kernel structure.
Diffstat (limited to 'ANDROID_3.4.5/arch/arm/mach-wmt/include/mach/debug-macro.S')
-rwxr-xr-x | ANDROID_3.4.5/arch/arm/mach-wmt/include/mach/debug-macro.S | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/ANDROID_3.4.5/arch/arm/mach-wmt/include/mach/debug-macro.S b/ANDROID_3.4.5/arch/arm/mach-wmt/include/mach/debug-macro.S deleted file mode 100755 index e9337f6d..00000000 --- a/ANDROID_3.4.5/arch/arm/mach-wmt/include/mach/debug-macro.S +++ /dev/null @@ -1,74 +0,0 @@ -/*++ - linux/include/asm-arm/arch-wmt/debug-macro.S - - Debugging macro include header - - Copyright (c) 2008 WonderMedia Technologies, Inc. - - This program is free software: you can redistribute it and/or modify it under the - terms of the GNU General Public License as published by the Free Software Foundation, - either version 2 of the License, or (at your option) any later version. - - This program is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A - PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public License along with - this program. If not, see <http://www.gnu.org/licenses/>. - - WonderMedia Technologies, Inc. - 10F, 529, Chung-Cheng Road, Hsin-Tien, Taipei 231, R.O.C. ---*/ - - @Current kernel I/O mmap design is phys = virt - -/* - .macro addruart,rx,rd - mrc p15, 0, \rx, c1, c0 - tst \rx, #1 @ MMU enabled? - moveq \rx, #0xD8000000 @ Physical base address - movne \rx, #0xFE000000 @ Virtual base address - add \rx, \rx, #0x00200000 @ UART0_BASE = 0xd8200000 - .endm - - .macro senduart,rd,rx - ldr r4, [\rx, #0x20] @ FIFO control register - tst r4, #0x01 @ Check FIFOEN bit - strne \rd, [\rx, #0x1000] @ TX FIFO - streq \rd, [\rx] @ Transmit data register - .endm -*/ - - .macro addruart,rp,rv,rx - ldr \rp, =0xD8000000 @ Physical base address - ldr \rv, =0xFE000000 @ Virtual base address - add \rp, \rp, #0x00200000 @ UART0_BASE = 0xd8200000 - add \rv, \rv, #0x00200000 @ UART0_BASE = 0xfe200000 - .endm - - .macro senduart,rd,rx - stmfd sp!,{r4} - - ldr r4, [\rx, #0x20] @ FIFO control register - tst r4, #0x01 @ Check FIFOEN bit - mov r4, #0x1000 - strne \rd, [\rx, r4] @ TX FIFO - streq \rd, [\rx] @ Transmit data register - - ldmfd sp!,{r4} - .endm - - - .macro waituart,rd,rx -1001: - ldr \rd, [\rx, #0x1C] @ Status register - tst \rd, #2 @ Transmit busy - bne 1001b @ If busy then wait - .endm - - .macro busyuart,rd,rx -1001: - ldr \rd, [\rx, #0x1C] @ Status register - tst \rd, #2 @ Transmit busy - bne 1001b - .endm - |