diff options
Diffstat (limited to 'plat')
-rw-r--r-- | plat/xilinx/versal/bl31_versal_setup.c | 28 | ||||
-rw-r--r-- | plat/xilinx/versal/platform.mk | 2 |
2 files changed, 4 insertions, 26 deletions
diff --git a/plat/xilinx/versal/bl31_versal_setup.c b/plat/xilinx/versal/bl31_versal_setup.c index 8106db805..48f774dfe 100644 --- a/plat/xilinx/versal/bl31_versal_setup.c +++ b/plat/xilinx/versal/bl31_versal_setup.c @@ -12,13 +12,11 @@ #include <bl31/bl31.h> #include <common/bl_common.h> #include <common/debug.h> -#include <drivers/arm/dcc.h> -#include <drivers/arm/pl011.h> -#include <drivers/console.h> #include <lib/mmio.h> #include <lib/xlat_tables/xlat_tables_v2.h> #include <plat/common/platform.h> #include <plat_arm.h> +#include <plat_console.h> #include <plat_fdt.h> #include <plat_private.h> @@ -73,30 +71,8 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1, uint32_t payload[PAYLOAD_ARG_CNT], max_size = HANDOFF_PARAMS_MAX_SIZE; enum pm_ret_status ret_status; uint64_t addr[HANDOFF_PARAMS_MAX_SIZE]; - uint32_t uart_clk = get_uart_clk(); - - if (CONSOLE_IS(pl011) || (CONSOLE_IS(pl011_1))) { - static console_t versal_runtime_console; - /* Initialize the console to provide early debug support */ - int32_t rc = console_pl011_register((uintptr_t)UART_BASE, - uart_clk, - (uint32_t)UART_BAUDRATE, - &versal_runtime_console); - if (rc == 0) { - panic(); - } - console_set_scope(&versal_runtime_console, (uint32_t)(CONSOLE_FLAG_BOOT | - CONSOLE_FLAG_RUNTIME | CONSOLE_FLAG_CRASH)); - } else if (CONSOLE_IS(dcc)) { - /* Initialize the dcc console for debug */ - int32_t rc = console_dcc_register(); - if (rc == 0) { - panic(); - } - } else { - /* No console device found. */ - } + setup_console(); /* Initialize the platform config for future decision making */ versal_config_setup(); diff --git a/plat/xilinx/versal/platform.mk b/plat/xilinx/versal/platform.mk index a0527134f..494c30df3 100644 --- a/plat/xilinx/versal/platform.mk +++ b/plat/xilinx/versal/platform.mk @@ -88,9 +88,11 @@ $(eval $(call add_define_val,VERSAL_CONSOLE,VERSAL_CONSOLE_ID_${VERSAL_CONSOLE}) BL31_SOURCES += drivers/arm/cci/cci.c \ lib/cpus/aarch64/cortex_a72.S \ + common/fdt_wrappers.c \ plat/common/plat_psci_common.c \ plat/xilinx/common/ipi.c \ plat/xilinx/common/plat_fdt.c \ + plat/xilinx/common/plat_console.c \ plat/xilinx/common/plat_startup.c \ plat/xilinx/common/ipi_mailbox_service/ipi_mailbox_svc.c \ plat/xilinx/common/pm_service/pm_ipi.c \ |