Skip to content

Commit

Permalink
boards: arm: add qemu_cortex_a53_smp
Browse files Browse the repository at this point in the history
Support SMP and switch to booting from NS world

Signed-off-by: Peng Fan <[email protected]>
  • Loading branch information
MrVan authored and nashif committed Mar 6, 2021
1 parent e27c9c7 commit 842ed37
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
8 changes: 8 additions & 0 deletions boards/arm/qemu_cortex_a53/qemu_cortex_a53_smp.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright 2021 NXP
*
* SPDX-License-Identifier: Apache-2.0
*
*/

#include "qemu_cortex_a53.dts"
14 changes: 14 additions & 0 deletions boards/arm/qemu_cortex_a53/qemu_cortex_a53_smp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
identifier: qemu_cortex_a53_smp
name: QEMU Emulation for Cortex-A53 SMP
type: qemu
simulation: qemu
arch: arm
toolchain:
- zephyr
- cross-compile
ram: 128
testing:
default: true
ignore_tags:
- net
- bluetooth
27 changes: 27 additions & 0 deletions boards/arm/qemu_cortex_a53/qemu_cortex_a53_smp_defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
CONFIG_SOC_QEMU_CORTEX_A53=y
CONFIG_BOARD_QEMU_CORTEX_A53=y
CONFIG_ARM_ARCH_TIMER=y
CONFIG_XIP=n
CONFIG_QEMU_ICOUNT=n

# Enable UART driver
CONFIG_SERIAL=y

# Enable console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

# PSCI is supported
CONFIG_PM_CPU_OPS=y
CONFIG_PM_CPU_OPS_PSCI=y

# Enable serial port
CONFIG_UART_PL011=y
CONFIG_UART_PL011_PORT0=y
CONFIG_UART_INTERRUPT_DRIVEN=y

CONFIG_SMP=y
CONFIG_MP_NUM_CPUS=2
CONFIG_CACHE_MANAGEMENT=y
CONFIG_TIMEOUT_64BIT=y
CONFIG_ARMV8_A_NS=y

0 comments on commit 842ed37

Please sign in to comment.