mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-09-10 01:12:45 -04:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
35
arch/arm/include/debug/meson.S
Normal file
35
arch/arm/include/debug/meson.S
Normal file
|
@ -0,0 +1,35 @@
|
|||
/*
|
||||
* Copyright (C) 2014 Carlo Caione
|
||||
* Carlo Caione <carlo@caione.org>
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#define MESON_AO_UART_WFIFO 0x0
|
||||
#define MESON_AO_UART_STATUS 0xc
|
||||
|
||||
#define MESON_AO_UART_TX_FIFO_EMPTY (1 << 22)
|
||||
#define MESON_AO_UART_TX_FIFO_FULL (1 << 21)
|
||||
|
||||
.macro addruart, rp, rv, tmp
|
||||
ldr \rp, =(CONFIG_DEBUG_UART_PHYS) @ physical
|
||||
ldr \rv, =(CONFIG_DEBUG_UART_VIRT) @ virtual
|
||||
.endm
|
||||
|
||||
.macro senduart,rd,rx
|
||||
str \rd, [\rx, #MESON_AO_UART_WFIFO]
|
||||
.endm
|
||||
|
||||
.macro busyuart,rd,rx
|
||||
1002: ldr \rd, [\rx, #MESON_AO_UART_STATUS]
|
||||
tst \rd, #MESON_AO_UART_TX_FIFO_EMPTY
|
||||
beq 1002b
|
||||
.endm
|
||||
|
||||
.macro waituart,rd,rx
|
||||
1001: ldr \rd, [\rx, #MESON_AO_UART_STATUS]
|
||||
tst \rd, #MESON_AO_UART_TX_FIFO_FULL
|
||||
bne 1001b
|
||||
.endm
|
Loading…
Add table
Add a link
Reference in a new issue