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
b01e0ad5
Commit
b01e0ad5
authored
5 years ago
by
Sandrine Bailleux
Committed by
TrustedFirmware Code Review
5 years ago
Browse files
Options
Download
Plain Diff
Merge "zynqmp: add support for multi console interface" into integration
parents
0d220b35
55a08b35
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
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
plat/xilinx/zynqmp/aarch64/zynqmp_helpers.S
+4
-4
plat/xilinx/zynqmp/aarch64/zynqmp_helpers.S
plat/xilinx/zynqmp/bl31_zynqmp_setup.c
+9
-4
plat/xilinx/zynqmp/bl31_zynqmp_setup.c
plat/xilinx/zynqmp/include/plat_private.h
+2
-1
plat/xilinx/zynqmp/include/plat_private.h
plat/xilinx/zynqmp/platform.mk
+1
-2
plat/xilinx/zynqmp/platform.mk
plat/xilinx/zynqmp/tsp/tsp_plat_setup.c
+9
-4
plat/xilinx/zynqmp/tsp/tsp_plat_setup.c
with
25 additions
and
15 deletions
+25
-15
plat/xilinx/zynqmp/aarch64/zynqmp_helpers.S
View file @
b01e0ad5
/*
*
Copyright
(
c
)
2013
-
201
8
,
ARM
Limited
and
Contributors
.
All
rights
reserved
.
*
Copyright
(
c
)
2013
-
201
9
,
ARM
Limited
and
Contributors
.
All
rights
reserved
.
*
*
SPDX
-
License
-
Identifier
:
BSD
-
3
-
Clause
*/
...
...
@@ -90,7 +90,7 @@ func plat_crash_console_init
mov_imm
x0
,
ZYNQMP_CRASH_UART_BASE
mov_imm
x1
,
ZYNQMP_CRASH_UART_CLK_IN_HZ
mov_imm
x2
,
ZYNQMP_UART_BAUDRATE
b
console_core_init
b
console_
cdns_
core_init
endfunc
plat_crash_console_init
/
*
---------------------------------------------
...
...
@@ -102,7 +102,7 @@ endfunc plat_crash_console_init
*/
func
plat_crash_console_putc
mov_imm
x1
,
ZYNQMP_CRASH_UART_BASE
b
console_core_putc
b
console_
cdns_
core_putc
endfunc
plat_crash_console_putc
/
*
---------------------------------------------
...
...
@@ -115,7 +115,7 @@ endfunc plat_crash_console_putc
*/
func
plat_crash_console_flush
mov_imm
x0
,
ZYNQMP_CRASH_UART_BASE
b
console_core_flush
b
console_
cdns_
core_flush
endfunc
plat_crash_console_flush
/
*
---------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
plat/xilinx/zynqmp/bl31_zynqmp_setup.c
View file @
b01e0ad5
/*
* Copyright (c) 2013-201
8
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2013-201
9
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -57,9 +57,14 @@ static inline void bl31_set_default_config(void)
void
bl31_early_platform_setup2
(
u_register_t
arg0
,
u_register_t
arg1
,
u_register_t
arg2
,
u_register_t
arg3
)
{
/* Initialize the console to provide early debug support */
console_init
(
ZYNQMP_UART_BASE
,
zynqmp_get_uart_clk
(),
ZYNQMP_UART_BAUDRATE
);
/* Register the console to provide early debug support */
static
console_cdns_t
bl31_boot_console
;
(
void
)
console_cdns_register
(
ZYNQMP_UART_BASE
,
zynqmp_get_uart_clk
(),
ZYNQMP_UART_BAUDRATE
,
&
bl31_boot_console
);
console_set_scope
(
&
bl31_boot_console
.
console
,
CONSOLE_FLAG_RUNTIME
|
CONSOLE_FLAG_BOOT
);
/* Initialize the platform config for future decision making */
zynqmp_config_setup
();
...
...
This diff is collapsed.
Click to expand it.
plat/xilinx/zynqmp/include/plat_private.h
View file @
b01e0ad5
/*
* Copyright (c) 2014-201
8
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2014-201
9
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -11,6 +11,7 @@
#include <bl31/interrupt_mgmt.h>
#include <common/bl_common.h>
#include <drivers/cadence/cdns_uart.h>
void
zynqmp_config_setup
(
void
);
...
...
This diff is collapsed.
Click to expand it.
plat/xilinx/zynqmp/platform.mk
View file @
b01e0ad5
#
# Copyright (c) 2013-201
8
, ARM Limited and Contributors. All rights reserved.
# Copyright (c) 2013-201
9
, ARM Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
...
...
@@ -59,7 +59,6 @@ PLAT_BL_COMMON_SOURCES := lib/xlat_tables/xlat_tables_common.c \
drivers/arm/gic/v2/gicv2_main.c
\
drivers/arm/gic/v2/gicv2_helpers.c
\
drivers/cadence/uart/aarch64/cdns_console.S
\
drivers/console/aarch64/console.S
\
plat/arm/common/arm_cci.c
\
plat/arm/common/arm_common.c
\
plat/arm/common/arm_gicv2.c
\
...
...
This diff is collapsed.
Click to expand it.
plat/xilinx/zynqmp/tsp/tsp_plat_setup.c
View file @
b01e0ad5
/*
* Copyright (c) 2014-201
8
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2014-201
9
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -18,11 +18,16 @@
void
tsp_early_platform_setup
(
void
)
{
/*
*
Initialize
a different console than already in use to display
*
Register
a different console than already in use to display
* messages from TSP
*/
console_init
(
ZYNQMP_UART_BASE
,
zynqmp_get_uart_clk
(),
ZYNQMP_UART_BAUDRATE
);
static
console_cdns_t
tsp_boot_console
;
(
void
)
console_cdns_register
(
ZYNQMP_UART_BASE
,
zynqmp_get_uart_clk
(),
ZYNQMP_UART_BAUDRATE
,
&
tsp_boot_console
);
console_set_scope
(
&
tsp_boot_console
.
console
,
CONSOLE_FLAG_RUNTIME
|
CONSOLE_FLAG_BOOT
);
/* Initialize the platform config for future decision making */
zynqmp_config_setup
();
...
...
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