Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions boards/amd/versalnet_apu/board.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ set(QEMU_FLAGS_${ARCH}
-m 2g
)

# Add SMP support if configured
if(CONFIG_SMP AND CONFIG_MP_MAX_NUM_CPUS GREATER 1)
list(APPEND QEMU_SMP_FLAGS -smp cpus=${CONFIG_MP_MAX_NUM_CPUS},maxcpus=20)
endif()

# Set TF-A platform for ARM Trusted Firmware builds
if(CONFIG_BUILD_WITH_TFA)
set(TFA_PLAT "versal_net")
# Add Versal NET specific TF-A build parameters
set(TFA_EXTRA_ARGS "TFA_NO_PM=1;PRELOADED_BL33_BASE=0x0")
set(TFA_EXTRA_ARGS "RESET_TO_BL31=1;PRELOADED_BL33_BASE=0x0;TFA_NO_PM=1;VERSAL_NET_ATF_MEM_BASE=0xf000000;VERSAL_NET_ATF_MEM_SIZE=0x50000")
if(CONFIG_TFA_MAKE_BUILD_TYPE_DEBUG)
set(BUILD_FOLDER "debug")
else()
Expand Down
2 changes: 2 additions & 0 deletions boards/amd/versalnet_apu/board.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ board:
vendor: amd
socs:
- name: amd_versalnet_apu
variants:
- name: smp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright (c) 2025, Advanced Micro Devices, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

/dts-v1/;
#include "versalnet_apu.dts"
11 changes: 11 additions & 0 deletions boards/amd/versalnet_apu/versalnet_apu_amd_versalnet_apu_smp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
identifier: versalnet_apu/amd_versalnet_apu/smp
name: AMD Development board for Versal NET APU
arch: arm
toolchain:
- zephyr
testing:
ignore_tags:
- net
- bluetooth
- fpu
vendor: amd
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# The Zephyr build from this defconfig is expected to boot from
# Xilinx Arm Trusted Firmware (ATF).
# Boot Flow is: Boot PDI -> TF-A -> Zephyr
CONFIG_BUILD_WITH_TFA=y

CONFIG_ARM64_VA_BITS_40=y
CONFIG_ARM64_PA_BITS_40=y
CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME=y

# Enable UART driver
CONFIG_SERIAL=y

# Enable console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

# Enable serial port
CONFIG_UART_PL011=y

# This should be commented in order to test at EL1 S (EL1 Secure)
CONFIG_ARMV8_A_NS=y

# Enable Clock Manager
CONFIG_CLOCK_CONTROL=y

# Reset Manager
CONFIG_RESET=y

# PSCI support Enable
CONFIG_PM_CPU_OPS=y
CONFIG_PM_CPU_OPS_PSCI=y

# Enable SMP support
CONFIG_SMP=y
CONFIG_MP_MAX_NUM_CPUS=4