Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
42cdeb93
Commit
42cdeb93
authored
5 years ago
by
Soby Mathew
Committed by
TrustedFirmware Code Review
5 years ago
Browse files
Options
Download
Plain Diff
Merge "stm32mp1: manage CONSOLE_FLAG_TRANSLATE_CRLF and cleanup driver" into integration
parents
e65d3f45
ebf851ed
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
v2.2
v2.2-rc2
v2.2-rc1
v2.2-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
drivers/st/uart/aarch32/stm32_console.S
+6
-22
drivers/st/uart/aarch32/stm32_console.S
plat/st/stm32mp1/bl2_plat_setup.c
+3
-0
plat/st/stm32mp1/bl2_plat_setup.c
plat/st/stm32mp1/sp_min/sp_min_setup.c
+6
-2
plat/st/stm32mp1/sp_min/sp_min_setup.c
with
15 additions
and
24 deletions
+15
-24
drivers/st/uart/aarch32/stm32_console.S
View file @
42cdeb93
/*
*
Copyright
(
c
)
2018
,
ARM
Limited
and
Contributors
.
All
rights
reserved
.
*
Copyright
(
c
)
2018
-
2019
,
ARM
Limited
and
Contributors
.
All
rights
reserved
.
*
*
SPDX
-
License
-
Identifier
:
BSD
-
3
-
Clause
*/
...
...
@@ -138,34 +138,18 @@ func console_stm32_core_putc
/
*
Check
the
input
parameter
*/
cmp
r1
,
#
0
beq
putc_error
/
*
Prepend
'\r'
to
'\n'
*/
cmp
r0
,
#
0xA
bne
2
f
1
:
/
*
Check
Transmit
Data
Register
Empty
*/
txe_loop_1
:
ldr
r2
,
[
r1
,
#
USART_ISR
]
tst
r2
,
#
USART_ISR_TXE
beq
txe_loop_1
mov
r2
,
#
0xD
str
r2
,
[
r1
,
#
USART_TDR
]
/
*
Check
transmit
complete
flag
*/
tc_loop_1
:
ldr
r2
,
[
r1
,
#
USART_ISR
]
tst
r2
,
#
USART_ISR_TC
beq
tc_loop_1
2
:
/
*
Check
Transmit
Data
Register
Empty
*/
txe_loop
_2
:
txe_loop
:
ldr
r2
,
[
r1
,
#
USART_ISR
]
tst
r2
,
#
USART_ISR_TXE
beq
txe_loop
_2
beq
txe_loop
str
r0
,
[
r1
,
#
USART_TDR
]
/
*
Check
transmit
complete
flag
*/
tc_loop
_2
:
tc_loop
:
ldr
r2
,
[
r1
,
#
USART_ISR
]
tst
r2
,
#
USART_ISR_TC
beq
tc_loop
_2
beq
tc_loop
bx
lr
putc_error
:
mov
r0
,
#-
1
...
...
This diff is collapsed.
Click to expand it.
plat/st/stm32mp1/bl2_plat_setup.c
View file @
42cdeb93
...
...
@@ -272,6 +272,9 @@ void bl2_el3_plat_arch_setup(void)
panic
();
}
console_set_scope
(
&
console
.
console
,
CONSOLE_FLAG_BOOT
|
CONSOLE_FLAG_CRASH
|
CONSOLE_FLAG_TRANSLATE_CRLF
);
stm32mp_print_cpuinfo
();
board_model
=
dt_get_board_model
();
...
...
This diff is collapsed.
Click to expand it.
plat/st/stm32mp1/sp_min/sp_min_setup.c
View file @
42cdeb93
...
...
@@ -129,16 +129,20 @@ void sp_min_early_platform_setup2(u_register_t arg0, u_register_t arg1,
result
=
dt_get_stdout_uart_info
(
&
dt_uart_info
);
if
((
result
>
0
)
&&
(
dt_uart_info
.
status
!=
0U
))
{
unsigned
int
console_flags
;
if
(
console_stm32_register
(
dt_uart_info
.
base
,
0
,
STM32MP_UART_BAUDRATE
,
&
console
)
==
0
)
{
panic
();
}
console_flags
=
CONSOLE_FLAG_BOOT
|
CONSOLE_FLAG_CRASH
|
CONSOLE_FLAG_TRANSLATE_CRLF
;
#ifdef DEBUG
console_set_scope
(
&
console
.
console
,
CONSOLE_FLAG_BOOT
|
CONSOLE_FLAG_RUNTIME
);
console_flags
|=
CONSOLE_FLAG_RUNTIME
;
#endif
console_set_scope
(
&
console
.
console
,
console_flags
);
}
}
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help