boards: arm: qemu_cortex_a9: Convert to v2
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
@@ -1,80 +0,0 @@
|
|||||||
#
|
|
||||||
# Kconfig - Cortex-A9 (Zynq-7000) QEMU Emulation
|
|
||||||
#
|
|
||||||
# Copyright (c) 2021, Weidmueller Interface GmbH & Co. KG
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
#
|
|
||||||
|
|
||||||
if BOARD_QEMU_CORTEX_A9
|
|
||||||
|
|
||||||
config BUILD_OUTPUT_BIN
|
|
||||||
default n
|
|
||||||
|
|
||||||
config BOARD
|
|
||||||
default "qemu_cortex_a9"
|
|
||||||
|
|
||||||
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
|
||||||
int
|
|
||||||
default 111111111
|
|
||||||
|
|
||||||
config SYS_CLOCK_TICKS_PER_SEC
|
|
||||||
default 1000
|
|
||||||
|
|
||||||
if LOG
|
|
||||||
|
|
||||||
if LOG_PROCESS_THREAD
|
|
||||||
|
|
||||||
config LOG_PROCESS_THREAD_STACK_SIZE
|
|
||||||
default 8192
|
|
||||||
|
|
||||||
endif # LOG_PROCESS_THREAD
|
|
||||||
|
|
||||||
endif # LOG
|
|
||||||
|
|
||||||
if NETWORKING
|
|
||||||
|
|
||||||
config NET_L2_ETHERNET
|
|
||||||
default y
|
|
||||||
|
|
||||||
config NET_TX_STACK_SIZE
|
|
||||||
default 8192
|
|
||||||
|
|
||||||
config NET_RX_STACK_SIZE
|
|
||||||
default 8192
|
|
||||||
|
|
||||||
if NET_TCP
|
|
||||||
|
|
||||||
config NET_TCP_WORKQ_STACK_SIZE
|
|
||||||
default 8192
|
|
||||||
|
|
||||||
endif # NET_TCP
|
|
||||||
|
|
||||||
if NET_MGMT_EVENT
|
|
||||||
|
|
||||||
config NET_MGMT_EVENT_STACK_SIZE
|
|
||||||
default 8192
|
|
||||||
|
|
||||||
endif # NET_MGMT_EVENT
|
|
||||||
|
|
||||||
config TEST_RANDOM_GENERATOR
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # NETWORKING
|
|
||||||
|
|
||||||
if QEMU_ICOUNT
|
|
||||||
|
|
||||||
config QEMU_ICOUNT_SHIFT
|
|
||||||
default 3
|
|
||||||
config QEMU_ICOUNT_SLEEP
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # QEMU_ICOUNT
|
|
||||||
|
|
||||||
if SHELL
|
|
||||||
|
|
||||||
config SHELL_STACK_SIZE
|
|
||||||
default 8192
|
|
||||||
|
|
||||||
endif # SHELL
|
|
||||||
|
|
||||||
endif # BOARD_QEMU_CORTEX_A9
|
|
||||||
@@ -6,6 +6,4 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
config BOARD_QEMU_CORTEX_A9
|
config BOARD_QEMU_CORTEX_A9
|
||||||
bool "Cortex-A9 Emulation (QEMU)"
|
|
||||||
depends on SOC_XILINX_XC7Z007S
|
|
||||||
select QEMU_TARGET
|
select QEMU_TARGET
|
||||||
70
boards/qemu/cortex_a9/Kconfig.defconfig
Normal file
70
boards/qemu/cortex_a9/Kconfig.defconfig
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
#
|
||||||
|
# Kconfig - Cortex-A9 (Zynq-7000) QEMU Emulation
|
||||||
|
#
|
||||||
|
# Copyright (c) 2021, Weidmueller Interface GmbH & Co. KG
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
|
if BOARD_QEMU_CORTEX_A9
|
||||||
|
|
||||||
|
config BUILD_OUTPUT_BIN
|
||||||
|
default n
|
||||||
|
|
||||||
|
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||||
|
int
|
||||||
|
default 111111111
|
||||||
|
|
||||||
|
config SYS_CLOCK_TICKS_PER_SEC
|
||||||
|
default 1000
|
||||||
|
|
||||||
|
if LOG_PROCESS_THREAD
|
||||||
|
|
||||||
|
config LOG_PROCESS_THREAD_STACK_SIZE
|
||||||
|
default 8192
|
||||||
|
|
||||||
|
endif # LOG_PROCESS_THREAD
|
||||||
|
|
||||||
|
if NETWORKING
|
||||||
|
|
||||||
|
config NET_L2_ETHERNET
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NET_TX_STACK_SIZE
|
||||||
|
default 8192
|
||||||
|
|
||||||
|
config NET_RX_STACK_SIZE
|
||||||
|
default 8192
|
||||||
|
|
||||||
|
if NET_TCP
|
||||||
|
|
||||||
|
config NET_TCP_WORKQ_STACK_SIZE
|
||||||
|
default 8192
|
||||||
|
|
||||||
|
endif # NET_TCP
|
||||||
|
|
||||||
|
if NET_MGMT_EVENT
|
||||||
|
|
||||||
|
config NET_MGMT_EVENT_STACK_SIZE
|
||||||
|
default 8192
|
||||||
|
|
||||||
|
endif # NET_MGMT_EVENT
|
||||||
|
|
||||||
|
config TEST_RANDOM_GENERATOR
|
||||||
|
default y
|
||||||
|
|
||||||
|
endif # NETWORKING
|
||||||
|
|
||||||
|
if QEMU_ICOUNT
|
||||||
|
|
||||||
|
config QEMU_ICOUNT_SHIFT
|
||||||
|
default 3
|
||||||
|
|
||||||
|
config QEMU_ICOUNT_SLEEP
|
||||||
|
default y
|
||||||
|
|
||||||
|
endif # QEMU_ICOUNT
|
||||||
|
|
||||||
|
config SHELL_STACK_SIZE
|
||||||
|
default 8192 if SHELL
|
||||||
|
|
||||||
|
endif # BOARD_QEMU_CORTEX_A9
|
||||||
9
boards/qemu/cortex_a9/Kconfig.qemu_cortex_a9
Normal file
9
boards/qemu/cortex_a9/Kconfig.qemu_cortex_a9
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#
|
||||||
|
# Kconfig - Cortex-A9 QEMU Emulation
|
||||||
|
#
|
||||||
|
# Copyright (c) 2021, Weidmueller Interface GmbH & Co. KG
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
|
config BOARD_QEMU_CORTEX_A9
|
||||||
|
select SOC_XILINX_XC7Z007S
|
||||||
@@ -11,7 +11,7 @@ set(QEMU_CPU_TYPE_${ARCH} cortex-a9)
|
|||||||
set(QEMU_FLAGS_${ARCH}
|
set(QEMU_FLAGS_${ARCH}
|
||||||
-nographic
|
-nographic
|
||||||
-machine arm-generic-fdt-7series
|
-machine arm-generic-fdt-7series
|
||||||
-dtb ${ZEPHYR_BASE}/boards/boards_legacy/${ARCH}/${BOARD}/fdt-zynq7000s.dtb
|
-dtb ${CMAKE_CURRENT_LIST_DIR}/fdt-zynq7000s.dtb
|
||||||
)
|
)
|
||||||
|
|
||||||
set(QEMU_KERNEL_OPTION
|
set(QEMU_KERNEL_OPTION
|
||||||
5
boards/qemu/cortex_a9/board.yml
Normal file
5
boards/qemu/cortex_a9/board.yml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
board:
|
||||||
|
name: qemu_cortex_a9
|
||||||
|
vendor: QEMU
|
||||||
|
socs:
|
||||||
|
- name: xc7z007s
|
||||||
@@ -4,11 +4,6 @@
|
|||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
CONFIG_BOARD_QEMU_CORTEX_A9=y
|
|
||||||
|
|
||||||
CONFIG_SOC_SERIES_XILINX_XC7ZXXXS=y
|
|
||||||
CONFIG_SOC_XILINX_XC7Z007S=y
|
|
||||||
|
|
||||||
CONFIG_ARM_ARCH_TIMER=y
|
CONFIG_ARM_ARCH_TIMER=y
|
||||||
|
|
||||||
CONFIG_SERIAL=y
|
CONFIG_SERIAL=y
|
||||||
Reference in New Issue
Block a user