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
203d48ad
"vscode:/vscode.git/clone" did not exist on "33900dfd328ea21954cc7772af21e5d44ea71f3f"
Commit
203d48ad
authored
Jun 01, 2021
by
Madhukar Pappireddy
Committed by
TrustedFirmware Code Review
Jun 01, 2021
Browse files
Merge "refactor(plat/marvell/uart): de-duplicate PLAT_MARVELL_UART macros" into integration
parents
94869f0f
31336258
Changes
5
Hide whitespace changes
Inline
Side-by-side
plat/marvell/armada/a3k/common/include/platform_def.h
View file @
203d48ad
...
...
@@ -163,11 +163,8 @@
/*
* PL011 related constants
*/
#define PLAT_MARVELL_BOOT_UART_BASE (MVEBU_REGS_BASE + 0x12000)
#define PLAT_MARVELL_BOOT_UART_CLK_IN_HZ 25000000
#define PLAT_MARVELL_CRASH_UART_BASE PLAT_MARVELL_BOOT_UART_BASE
#define PLAT_MARVELL_CRASH_UART_CLK_IN_HZ PLAT_MARVELL_BOOT_UART_CLK_IN_HZ
#define PLAT_MARVELL_UART_BASE (MVEBU_REGS_BASE + 0x12000)
#define PLAT_MARVELL_UART_CLK_IN_HZ 25000000
/* Required platform porting definitions */
#define PLAT_MAX_PWR_LVL MPIDR_AFFLVL1
...
...
plat/marvell/armada/a8k/a80x0_puzzle/board/system_power.c
View file @
203d48ad
...
...
@@ -41,8 +41,8 @@ int system_power_off(void)
len
=
sizeof
(
system_off_now
);
system_off_now
[
len
-
1
]
=
add_xor_checksum
(
system_off_now
,
len
);
console_16550_register
(
PLAT_MARVELL_
BOOT_
UART_BASE
+
0x100
,
PLAT_MARVELL_
BOOT_
UART_CLK_IN_HZ
,
115200
,
&
console
);
console_16550_register
(
PLAT_MARVELL_UART_BASE
+
0x100
,
PLAT_MARVELL_UART_CLK_IN_HZ
,
115200
,
&
console
);
/* Send system_off_now to console */
for
(
i
=
0
;
i
<
len
;
i
++
)
{
...
...
plat/marvell/armada/a8k/common/include/platform_def.h
View file @
203d48ad
...
...
@@ -168,11 +168,8 @@
/*
* PL011 related constants
*/
#define PLAT_MARVELL_BOOT_UART_BASE (MVEBU_REGS_BASE + 0x512000)
#define PLAT_MARVELL_BOOT_UART_CLK_IN_HZ 200000000
#define PLAT_MARVELL_CRASH_UART_BASE PLAT_MARVELL_BOOT_UART_BASE
#define PLAT_MARVELL_CRASH_UART_CLK_IN_HZ PLAT_MARVELL_BOOT_UART_CLK_IN_HZ
#define PLAT_MARVELL_UART_BASE (MVEBU_REGS_BASE + 0x512000)
#define PLAT_MARVELL_UART_CLK_IN_HZ 200000000
/* Recovery image enable */
#define PLAT_RECOVERY_IMAGE_ENABLE 0
...
...
plat/marvell/armada/common/aarch64/marvell_helpers.S
View file @
203d48ad
...
...
@@ -63,8 +63,8 @@ endfunc plat_marvell_calc_core_pos
*
---------------------------------------------
*/
func
plat_crash_console_init
mov_imm
x0
,
PLAT_MARVELL_
CRASH_
UART_BASE
mov_imm
x1
,
PLAT_MARVELL_
CRASH_
UART_CLK_IN_HZ
mov_imm
x0
,
PLAT_MARVELL_UART_BASE
mov_imm
x1
,
PLAT_MARVELL_UART_CLK_IN_HZ
mov_imm
x2
,
MARVELL_CONSOLE_BAUDRATE
#ifdef PLAT_a3700
b
console_a3700_core_init
...
...
@@ -81,7 +81,7 @@ endfunc plat_crash_console_init
*
---------------------------------------------
*/
func
plat_crash_console_putc
mov_imm
x1
,
PLAT_MARVELL_
CRASH_
UART_BASE
mov_imm
x1
,
PLAT_MARVELL_UART_BASE
#ifdef PLAT_a3700
b
console_a3700_core_putc
...
...
@@ -99,7 +99,7 @@ endfunc plat_crash_console_putc
*
---------------------------------------------
*/
func
plat_crash_console_flush
mov_imm
x0
,
PLAT_MARVELL_
CRASH_
UART_BASE
mov_imm
x0
,
PLAT_MARVELL_UART_BASE
#ifdef PLAT_a3700
b
console_a3700_core_flush
#else
...
...
plat/marvell/armada/common/marvell_console.c
View file @
203d48ad
...
...
@@ -31,8 +31,8 @@ static console_t marvell_runtime_console;
void
marvell_console_boot_init
(
void
)
{
int
rc
=
console_marvell_register
(
PLAT_MARVELL_
BOOT_
UART_BASE
,
PLAT_MARVELL_
BOOT_
UART_CLK_IN_HZ
,
console_marvell_register
(
PLAT_MARVELL_UART_BASE
,
PLAT_MARVELL_UART_CLK_IN_HZ
,
MARVELL_CONSOLE_BAUDRATE
,
&
marvell_boot_console
);
if
(
rc
==
0
)
{
...
...
@@ -58,8 +58,8 @@ void marvell_console_boot_end(void)
void
marvell_console_runtime_init
(
void
)
{
int
rc
=
console_marvell_register
(
PLAT_MARVELL_
BOOT_
UART_BASE
,
PLAT_MARVELL_
BOOT_
UART_CLK_IN_HZ
,
console_marvell_register
(
PLAT_MARVELL_UART_BASE
,
PLAT_MARVELL_UART_CLK_IN_HZ
,
MARVELL_CONSOLE_BAUDRATE
,
&
marvell_runtime_console
);
if
(
rc
==
0
)
...
...
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