mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-11 07:04:22 +00:00

Warn users about disabled OCM coherency which is not enabled by default in designs. If it is not enabled and TF-A is running out of OCM,TF-A won't work properly. This check is done only in Debug mode and isolation disabled. Change-Id: I7661e0183503b71085c57fa35014341d14522203 Signed-off-by: Saivardhan Thatikonda <saivardhan.thatikonda@amd.com>
20 lines
413 B
C
20 lines
413 B
C
/*
|
|
* Copyright (c) 2025, Advanced Micro Devices, Inc. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
#ifndef PLAT_OCM_COHERENCY_H
|
|
#define PLAT_OCM_COHERENCY_H
|
|
|
|
#define COHERENCY_CHECK_NOT_SUPPORTED -1
|
|
|
|
#if (DEBUG == 1)
|
|
int32_t check_ocm_coherency(void);
|
|
#else
|
|
static inline int32_t check_ocm_coherency(void)
|
|
{
|
|
return COHERENCY_CHECK_NOT_SUPPORTED;
|
|
}
|
|
#endif
|
|
|
|
#endif/*PLAT_OCM_COHERENCY_H*/
|