mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-19 02:54:24 +00:00
feat(css): initialise generic timer early in the boot
Initialize generic delay timer to enable its use to insert delays in execution paths as required. Change-Id: I52232796f20d9692f0115d5e5395451a54b489c6 Signed-off-by: Pranav Madhu <pranav.madhu@arm.com>
This commit is contained in:
parent
00f97e4d1c
commit
3447ba1f04
2 changed files with 7 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (c) 2018-2022, Arm Limited and Contributors. All rights reserved.
|
||||
# Copyright (c) 2018-2024, Arm Limited and Contributors. All rights reserved.
|
||||
#
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
#
|
||||
|
@ -50,7 +50,8 @@ BL2_SOURCES += ${CSS_ENT_BASE}/sgi_image_load.c \
|
|||
BL31_SOURCES += ${INTERCONNECT_SOURCES} \
|
||||
${ENT_GIC_SOURCES} \
|
||||
${CSS_ENT_BASE}/sgi_bl31_setup.c \
|
||||
${CSS_ENT_BASE}/sgi_topology.c
|
||||
${CSS_ENT_BASE}/sgi_topology.c \
|
||||
drivers/delay_timer/generic_delay_timer.c
|
||||
|
||||
ifneq (${RESET_TO_BL31},0)
|
||||
$(error "Using BL31 as the reset vector is not supported on ${PLAT} platform. \
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2018-2023, Arm Limited and Contributors. All rights reserved.
|
||||
* Copyright (c) 2018-2024, Arm Limited and Contributors. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
@ -12,6 +12,7 @@
|
|||
#include <common/debug.h>
|
||||
#include <drivers/arm/css/css_mhu_doorbell.h>
|
||||
#include <drivers/arm/css/scmi.h>
|
||||
#include <drivers/generic_delay_timer.h>
|
||||
#include <plat/arm/common/plat_arm.h>
|
||||
|
||||
#include <plat/common/platform.h>
|
||||
|
@ -104,6 +105,8 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
|
|||
|
||||
void sgi_bl31_common_platform_setup(void)
|
||||
{
|
||||
generic_delay_timer_init();
|
||||
|
||||
arm_bl31_platform_setup();
|
||||
|
||||
/* Configure the warm reboot SGI for primary core */
|
||||
|
|
Loading…
Add table
Reference in a new issue