arm-trusted-firmware/plat/amd/versal2/include/plat_ocm_coherency.h
Saivardhan Thatikonda c3ab09d1c5 feat(versal2): is OCM configured as coherent
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>
2025-03-27 05:51:14 +00:00

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*/