2018-06-15 09:11:59 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <arch.h>
|
|
|
|
#include <arch_helpers.h>
|
|
|
|
#include <platform_def.h>
|
|
|
|
#include <assert.h>
|
|
|
|
#include <bl_common.h>
|
2018-06-15 10:04:42 +01:00
|
|
|
#include <pl011.h>
|
2018-06-15 09:11:59 +01:00
|
|
|
#include <debug.h>
|
|
|
|
|
2018-06-15 10:04:42 +01:00
|
|
|
static console_pl011_t console;
|
|
|
|
|
2018-06-15 09:11:59 +01:00
|
|
|
void bl31_early_platform_setup(bl31_params_t *from_bl2,
|
|
|
|
void *plat_params_from_bl2)
|
|
|
|
{
|
2018-06-15 10:04:42 +01:00
|
|
|
/* Initialize the console to provide early debug support */
|
|
|
|
(void)console_pl011_register(PLAT_SQ_BOOT_UART_BASE,
|
|
|
|
PLAT_SQ_BOOT_UART_CLK_IN_HZ,
|
|
|
|
SQ_CONSOLE_BAUDRATE, &console);
|
|
|
|
|
|
|
|
console_set_scope(&console.console, CONSOLE_FLAG_BOOT |
|
|
|
|
CONSOLE_FLAG_RUNTIME);
|
|
|
|
|
2018-06-15 09:11:59 +01:00
|
|
|
/* There are no parameters from BL2 if BL31 is a reset vector */
|
|
|
|
assert(from_bl2 == NULL);
|
|
|
|
assert(plat_params_from_bl2 == NULL);
|
|
|
|
}
|
|
|
|
|
|
|
|
void bl31_platform_setup(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void bl31_plat_runtime_setup(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void bl31_plat_arch_setup(void)
|
|
|
|
{
|
|
|
|
}
|