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
1ac928ce
Commit
1ac928ce
authored
5 years ago
by
Soby Mathew
Committed by
TrustedFirmware Code Review
5 years ago
Browse files
Options
Download
Plain Diff
Merge "amlogic: console: Move console driver to common directory" into integration
parents
42cdeb93
a759d345
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
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
plat/amlogic/common/aml_console.c
+33
-0
plat/amlogic/common/aml_console.c
plat/amlogic/gxbb/gxbb_common.c
+0
-26
plat/amlogic/gxbb/gxbb_common.c
plat/amlogic/gxbb/platform.mk
+1
-0
plat/amlogic/gxbb/platform.mk
plat/amlogic/gxl/gxl_common.c
+0
-26
plat/amlogic/gxl/gxl_common.c
plat/amlogic/gxl/platform.mk
+1
-0
plat/amlogic/gxl/platform.mk
with
35 additions
and
52 deletions
+35
-52
plat/amlogic/common/aml_console.c
0 → 100644
View file @
1ac928ce
/*
* Copyright (c) 2019, Carlo Caione <ccaione@baylibre.com>
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <common/debug.h>
#include <meson_console.h>
#include <platform_def.h>
/*******************************************************************************
* Function that sets up the console
******************************************************************************/
static
console_meson_t
aml_console
;
void
aml_console_init
(
void
)
{
int
rc
=
console_meson_register
(
AML_UART0_AO_BASE
,
AML_UART0_AO_CLK_IN_HZ
,
AML_UART_BAUDRATE
,
&
aml_console
);
if
(
rc
==
0
)
{
/*
* The crash console doesn't use the multi console API, it uses
* the core console functions directly. It is safe to call panic
* and let it print debug information.
*/
panic
();
}
console_set_scope
(
&
aml_console
.
console
,
CONSOLE_FLAG_BOOT
|
CONSOLE_FLAG_RUNTIME
);
}
This diff is collapsed.
Click to expand it.
plat/amlogic/gxbb/gxbb_common.c
View file @
1ac928ce
...
...
@@ -7,9 +7,7 @@
#include <assert.h>
#include <bl31/interrupt_mgmt.h>
#include <common/bl_common.h>
#include <common/debug.h>
#include <common/ep_info.h>
#include <drivers/amlogic/meson_console.h>
#include <lib/mmio.h>
#include <lib/xlat_tables/xlat_tables_v2.h>
#include <platform_def.h>
...
...
@@ -100,30 +98,6 @@ void aml_setup_page_tables(void)
init_xlat_tables
();
}
/*******************************************************************************
* Function that sets up the console
******************************************************************************/
static
console_meson_t
gxbb_console
;
void
aml_console_init
(
void
)
{
int
rc
=
console_meson_register
(
AML_UART0_AO_BASE
,
AML_UART0_AO_CLK_IN_HZ
,
AML_UART_BAUDRATE
,
&
gxbb_console
);
if
(
rc
==
0
)
{
/*
* The crash console doesn't use the multi console API, it uses
* the core console functions directly. It is safe to call panic
* and let it print debug information.
*/
panic
();
}
console_set_scope
(
&
gxbb_console
.
console
,
CONSOLE_FLAG_BOOT
|
CONSOLE_FLAG_RUNTIME
);
}
/*******************************************************************************
* Function that returns the system counter frequency
******************************************************************************/
...
...
This diff is collapsed.
Click to expand it.
plat/amlogic/gxbb/platform.mk
View file @
1ac928ce
...
...
@@ -32,6 +32,7 @@ BL31_SOURCES += lib/cpus/aarch64/cortex_a53.S \
${AML_PLAT_COMMON}
/aml_sip_svc.c
\
${AML_PLAT_COMMON}
/aml_thermal.c
\
${AML_PLAT_COMMON}
/aml_topology.c
\
${AML_PLAT_COMMON}
/aml_console.c
\
${XLAT_TABLES_LIB_SRCS}
\
${GIC_SOURCES}
...
...
This diff is collapsed.
Click to expand it.
plat/amlogic/gxl/gxl_common.c
View file @
1ac928ce
...
...
@@ -7,11 +7,9 @@
#include <assert.h>
#include <bl31/interrupt_mgmt.h>
#include <common/bl_common.h>
#include <common/debug.h>
#include <common/ep_info.h>
#include <lib/mmio.h>
#include <lib/xlat_tables/xlat_tables_v2.h>
#include <meson_console.h>
#include <platform_def.h>
#include <stdint.h>
...
...
@@ -100,30 +98,6 @@ void aml_setup_page_tables(void)
init_xlat_tables
();
}
/*******************************************************************************
* Function that sets up the console
******************************************************************************/
static
console_meson_t
gxl_console
;
void
aml_console_init
(
void
)
{
int
rc
=
console_meson_register
(
AML_UART0_AO_BASE
,
AML_UART0_AO_CLK_IN_HZ
,
AML_UART_BAUDRATE
,
&
gxl_console
);
if
(
rc
==
0
)
{
/*
* The crash console doesn't use the multi console API, it uses
* the core console functions directly. It is safe to call panic
* and let it print debug information.
*/
panic
();
}
console_set_scope
(
&
gxl_console
.
console
,
CONSOLE_FLAG_BOOT
|
CONSOLE_FLAG_RUNTIME
);
}
/*******************************************************************************
* Function that returns the system counter frequency
******************************************************************************/
...
...
This diff is collapsed.
Click to expand it.
plat/amlogic/gxl/platform.mk
View file @
1ac928ce
...
...
@@ -35,6 +35,7 @@ BL31_SOURCES += lib/cpus/aarch64/cortex_a53.S \
${AML_PLAT_COMMON}
/aml_sip_svc.c
\
${AML_PLAT_COMMON}
/aml_thermal.c
\
${AML_PLAT_COMMON}
/aml_topology.c
\
${AML_PLAT_COMMON}
/aml_console.c
\
drivers/amlogic/crypto/sha_dma.c
\
${XLAT_TABLES_LIB_SRCS}
\
${GIC_SOURCES}
...
...
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