plat: tegra: Use generic ehf defines
Use common ehf file for generic frameworks like SDEI, RAS and extend plat specific defines using 'PLAT_EHF_DESC'. Signed-off-by: Sandeep Tripathy <sandeep.tripathy@broadcom.com> Change-Id: I8a8161c6030f8d226a8bdf0301e7fe6139f019a4
This commit is contained in:
parent
262aceaac4
commit
deb875b511
|
@ -44,7 +44,6 @@ BL31_SOURCES += drivers/delay_timer/delay_timer.c \
|
|||
${TEGRA_LIBS}/debug/profiler.c \
|
||||
${TEGRA_COMMON}/tegra_bl31_setup.c \
|
||||
${TEGRA_COMMON}/tegra_delay_timer.c \
|
||||
${TEGRA_COMMON}/tegra_ehf.c \
|
||||
${TEGRA_COMMON}/tegra_fiq_glue.c \
|
||||
${TEGRA_COMMON}/tegra_io_storage.c \
|
||||
${TEGRA_COMMON}/tegra_platform.c \
|
||||
|
@ -55,3 +54,6 @@ BL31_SOURCES += drivers/delay_timer/delay_timer.c \
|
|||
ifneq ($(ENABLE_STACK_PROTECTOR), 0)
|
||||
BL31_SOURCES += ${TEGRA_COMMON}/tegra_stack_protector.c
|
||||
endif
|
||||
ifeq (${EL3_EXCEPTION_HANDLING},1)
|
||||
BL31_SOURCES += plat/common/aarch64/plat_ehf.c
|
||||
endif
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2020, NVIDIA Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include <platform_def.h>
|
||||
|
||||
#include <bl31/ehf.h>
|
||||
|
||||
/*
|
||||
* Enumeration of priority levels on Tegra platforms.
|
||||
*/
|
||||
ehf_pri_desc_t tegra_exceptions[] = {
|
||||
/* Watchdog priority */
|
||||
EHF_PRI_DESC(PLAT_PRI_BITS, PLAT_TEGRA_WDT_PRIO),
|
||||
|
||||
#if SDEI_SUPPORT
|
||||
/* Critical priority SDEI */
|
||||
EHF_PRI_DESC(PLAT_PRI_BITS, PLAT_SDEI_CRITICAL_PRI),
|
||||
|
||||
/* Normal priority SDEI */
|
||||
EHF_PRI_DESC(PLAT_PRI_BITS, PLAT_SDEI_NORMAL_PRI),
|
||||
#endif
|
||||
};
|
||||
|
||||
/* Plug in Tegra exceptions to Exception Handling Framework. */
|
||||
EHF_REGISTER_PRIORITIES(tegra_exceptions, ARRAY_SIZE(tegra_exceptions), PLAT_PRI_BITS);
|
|
@ -100,6 +100,9 @@
|
|||
#define PLAT_SDEI_NORMAL_PRI U(0x30)
|
||||
#define PLAT_TEGRA_WDT_PRIO U(0x40)
|
||||
|
||||
#define PLAT_EHF_DESC EHF_PRI_DESC(PLAT_PRI_BITS,\
|
||||
PLAT_TEGRA_WDT_PRIO)
|
||||
|
||||
/*******************************************************************************
|
||||
* SDEI events
|
||||
******************************************************************************/
|
||||
|
|
Loading…
Reference in New Issue