diff options
author | Konstantin Porotchkin <kostap@marvell.com> | 2018-11-14 17:15:08 +0200 |
---|---|---|
committer | Konstantin Porotchkin <kostap@marvell.com> | 2018-11-15 13:42:45 +0200 |
commit | d7c4420cb8a745bf61c1de0df8858526002e16b0 (patch) | |
tree | 34c99fa20fa8a1b720c1263df6691dc5a45de365 /plat/marvell/common/marvell_bl31_setup.c | |
parent | 076374c9b97d47b10ba5c6034817866c08d66ed4 (diff) | |
download | trusted-firmware-a-d7c4420cb8a745bf61c1de0df8858526002e16b0.tar.gz |
plat/marvell: Migrate to multi-console API
Migrate Marvell platforms from legacy console API to
multi-console API.
Change-Id: I647f5f49148b463a257a747af05b5f0c967f267c
Signed-off-by: Konstantin Porotchkin <kostap@marvell.com>
Diffstat (limited to 'plat/marvell/common/marvell_bl31_setup.c')
-rw-r--r-- | plat/marvell/common/marvell_bl31_setup.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/plat/marvell/common/marvell_bl31_setup.c b/plat/marvell/common/marvell_bl31_setup.c index da91b56077..3b1a6f130c 100644 --- a/plat/marvell/common/marvell_bl31_setup.c +++ b/plat/marvell/common/marvell_bl31_setup.c @@ -74,9 +74,7 @@ void marvell_bl31_early_platform_setup(void *from_bl2, void *plat_params_from_bl2) { /* Initialize the console to provide early debug support */ - console_init(PLAT_MARVELL_BOOT_UART_BASE, - PLAT_MARVELL_BOOT_UART_CLK_IN_HZ, - MARVELL_CONSOLE_BAUDRATE); + marvell_console_boot_init(); #if RESET_TO_BL31 /* There are no parameters from BL2 if BL31 is a reset vector */ @@ -190,10 +188,10 @@ void marvell_bl31_platform_setup(void) */ void marvell_bl31_plat_runtime_setup(void) { + console_switch_state(CONSOLE_FLAG_RUNTIME); + /* Initialize the runtime console */ - console_init(PLAT_MARVELL_BL31_RUN_UART_BASE, - PLAT_MARVELL_BL31_RUN_UART_CLK_IN_HZ, - MARVELL_CONSOLE_BAUDRATE); + marvell_console_runtime_init(); } void bl31_platform_setup(void) |