plat/sgi: refactor SDEI specific macros
The macros specific to SDEI defined in the sgi_base_platform_def.h are not applicable for all the platforms supported by plat/sgi. So refactor the SDEI specific macros into a new header file and include this file on only on platforms it is applicable on. Signed-off-by: Thomas Abraham <thomas.abraham@arm.com> Change-Id: I0cb7125334f02a21cae1837cdfd765c16ab50bf5
This commit is contained in:
parent
ab496a338b
commit
a883447403
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2018-2020, Arm Limited. All rights reserved.
|
||||
* Copyright (c) 2018-2021, Arm Limited. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include <lib/utils_def.h>
|
||||
|
||||
#include <sgi_sdei.h>
|
||||
#include <sgi_soc_platform_def.h>
|
||||
|
||||
#define PLAT_ARM_CLUSTER_COUNT U(2)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved.
|
||||
* Copyright (c) 2018-2021, ARM Limited and Contributors. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include <lib/utils_def.h>
|
||||
|
||||
#include <sgi_sdei.h>
|
||||
#include <sgi_soc_platform_def.h>
|
||||
|
||||
#define PLAT_ARM_CLUSTER_COUNT U(2)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved.
|
||||
* Copyright (c) 2018-2021, ARM Limited and Contributors. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include <lib/utils_def.h>
|
||||
|
||||
#include <sgi_sdei.h>
|
||||
#include <sgi_soc_platform_def.h>
|
||||
|
||||
#define PLAT_ARM_CLUSTER_COUNT U(2)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2018-2020, Arm Limited and Contributors. All rights reserved.
|
||||
* Copyright (c) 2018-2021, Arm Limited and Contributors. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
@ -183,16 +183,6 @@
|
|||
#define SP_DMC_ERROR_ECC_EVENT_AARCH64 0xC4000044
|
||||
#define SP_DMC_ERROR_ECC_EVENT_AARCH32 0x84000044
|
||||
|
||||
/* ARM SDEI dynamic shared event numbers */
|
||||
#define SGI_SDEI_DS_EVENT_0 804
|
||||
#define SGI_SDEI_DS_EVENT_1 805
|
||||
|
||||
#define PLAT_ARM_PRIVATE_SDEI_EVENTS \
|
||||
SDEI_DEFINE_EVENT_0(ARM_SDEI_SGI), \
|
||||
SDEI_EXPLICIT_EVENT(SGI_SDEI_DS_EVENT_0, SDEI_MAPF_CRITICAL), \
|
||||
SDEI_EXPLICIT_EVENT(SGI_SDEI_DS_EVENT_1, SDEI_MAPF_CRITICAL),
|
||||
#define PLAT_ARM_SHARED_SDEI_EVENTS
|
||||
|
||||
#define ARM_SP_CPER_BUF_BASE (PLAT_SP_IMAGE_NS_BUF_BASE + \
|
||||
PLAT_SP_IMAGE_NS_BUF_SIZE)
|
||||
#define ARM_SP_CPER_BUF_SIZE ULL(0x20000)
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* Copyright (c) 2021, ARM Limited and Contributors. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#ifndef SGI_SDEI_H
|
||||
#define SGI_SDEI_H
|
||||
|
||||
#if SDEI_SUPPORT
|
||||
|
||||
/* ARM SDEI dynamic shared event numbers */
|
||||
#define SGI_SDEI_DS_EVENT_0 U(804)
|
||||
#define SGI_SDEI_DS_EVENT_1 U(805)
|
||||
|
||||
#define PLAT_ARM_PRIVATE_SDEI_EVENTS \
|
||||
SDEI_DEFINE_EVENT_0(ARM_SDEI_SGI), \
|
||||
SDEI_EXPLICIT_EVENT(SGI_SDEI_DS_EVENT_0, SDEI_MAPF_CRITICAL), \
|
||||
SDEI_EXPLICIT_EVENT(SGI_SDEI_DS_EVENT_1, SDEI_MAPF_CRITICAL),
|
||||
|
||||
#define PLAT_ARM_SHARED_SDEI_EVENTS
|
||||
|
||||
#endif /* SDEI_SUPPORT */
|
||||
|
||||
#endif /* SGI_SDEI_H */
|
Loading…
Reference in New Issue