Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
974214d4
Commit
974214d4
authored
Jan 11, 2021
by
Madhukar Pappireddy
Committed by
TrustedFirmware Code Review
Jan 11, 2021
Browse files
Merge "cadence: Change logic in uart driver" into integration
parents
bc0d8c74
0b3d4273
Changes
2
Hide whitespace changes
Inline
Side-by-side
drivers/cadence/uart/aarch64/cdns_console.S
View file @
974214d4
...
...
@@ -105,15 +105,15 @@ func console_cdns_core_putc
cmp
w0
,
#
0xA
b.ne
2
f
1
:
/
*
Check
if
the
transmit
FIFO
is
full
*/
/
*
Check
if
the
transmit
FIFO
is
empty
*/
ldr
w2
,
[
x1
,
#
R_UART_SR
]
tb
n
z
w2
,
#
UART_SR_INTR_T
FUL
_BIT
,
1
b
tbz
w2
,
#
UART_SR_INTR_T
EMPTY
_BIT
,
1
b
mov
w2
,
#
0xD
str
w2
,
[
x1
,
#
R_UART_TX
]
2
:
/
*
Check
if
the
transmit
FIFO
is
full
*/
/
*
Check
if
the
transmit
FIFO
is
empty
*/
ldr
w2
,
[
x1
,
#
R_UART_SR
]
tb
n
z
w2
,
#
UART_SR_INTR_T
FUL
_BIT
,
2
b
tbz
w2
,
#
UART_SR_INTR_T
EMPTY
_BIT
,
2
b
str
w0
,
[
x1
,
#
R_UART_TX
]
ret
endfunc
console_cdns_core_putc
...
...
include/drivers/cadence/cdns_uart.h
View file @
974214d4
...
...
@@ -21,6 +21,7 @@
#define R_UART_SR 0x2C
#define UART_SR_INTR_REMPTY_BIT 1
#define UART_SR_INTR_TFUL_BIT 4
#define UART_SR_INTR_TEMPTY_BIT 3
#define R_UART_TX 0x30
#define R_UART_RX 0x30
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment