Skip to content

Commit

Permalink
lib: add support for A78 Baremetal
Browse files Browse the repository at this point in the history
Enable cache, IPI, exception and shared-memory operations on Versal A78
for Libmetal.

Signed-off-by: Ben Levinsky <ben.levinsky@amd.com>
  • Loading branch information
bentheredonethat authored and arnopo committed Jun 29, 2023
1 parent 6e4b016 commit 7ec5b63
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/system/generic/xlnx_common/zynqmp_aarch64/sys.c
Expand Up @@ -19,7 +19,9 @@
#include "xil_mmu.h"
#include "xscugic.h"

#if defined(versal)
#ifdef VERSAL_NET
#include "xcpu_cortexa78.h"
#elif defined(versal)
#include "xcpu_cortexa72.h"
#else
#include "xreg_cortexa53.h"
Expand Down
3 changes: 3 additions & 0 deletions lib/system/generic/zynqmp_a78/CMakeLists.txt
@@ -0,0 +1,3 @@
collect (PROJECT_LIB_HEADERS sys.h)

add_subdirectory(../xlnx_common ${CMAKE_CURRENT_BINARY_DIR}/../xlnx_common)
17 changes: 17 additions & 0 deletions lib/system/generic/zynqmp_a78/sys.h
@@ -0,0 +1,17 @@
/*
* Copyright (c) 2022, Xilinx Inc. and Contributors. All rights reserved.
* Copyright (c) 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/

/*
* @file generic/zynqmp_a78/sys.h
* @brief generic zynqmp_a78 system primitives for libmetal.
*/

/*
* The header file is still required as generic/sys.h expects
* "./@PROJECT_MACHINE@/sys.h" to still exist.
*/
#include <metal/system/@PROJECT_SYSTEM@/xlnx_common/zynqmp_aarch64/sys.h>

0 comments on commit 7ec5b63

Please sign in to comment.