Browse Source

boards: arm: qemu_cortex_a9: Convert to v2

Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
pull/69687/head
Jamie McCrae 1 year ago
parent
commit
9ba8195cdc
  1. 80
      boards/boards_legacy/arm/qemu_cortex_a9/Kconfig.defconfig
  2. 2
      boards/qemu/cortex_a9/Kconfig
  3. 70
      boards/qemu/cortex_a9/Kconfig.defconfig
  4. 9
      boards/qemu/cortex_a9/Kconfig.qemu_cortex_a9
  5. 2
      boards/qemu/cortex_a9/board.cmake
  6. 5
      boards/qemu/cortex_a9/board.yml
  7. 0
      boards/qemu/cortex_a9/fdt-zynq7000s.dtb
  8. 0
      boards/qemu/cortex_a9/qemu_cortex_a9.dts
  9. 0
      boards/qemu/cortex_a9/qemu_cortex_a9.yaml
  10. 5
      boards/qemu/cortex_a9/qemu_cortex_a9_defconfig

80
boards/boards_legacy/arm/qemu_cortex_a9/Kconfig.defconfig

@ -1,80 +0,0 @@ @@ -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

2
boards/boards_legacy/arm/qemu_cortex_a9/Kconfig.board → boards/qemu/cortex_a9/Kconfig

@ -6,6 +6,4 @@ @@ -6,6 +6,4 @@
#
config BOARD_QEMU_CORTEX_A9
bool "Cortex-A9 Emulation (QEMU)"
depends on SOC_XILINX_XC7Z007S
select QEMU_TARGET

70
boards/qemu/cortex_a9/Kconfig.defconfig

@ -0,0 +1,70 @@ @@ -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

@ -0,0 +1,9 @@ @@ -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

2
boards/boards_legacy/arm/qemu_cortex_a9/board.cmake → boards/qemu/cortex_a9/board.cmake

@ -11,7 +11,7 @@ set(QEMU_CPU_TYPE_${ARCH} cortex-a9) @@ -11,7 +11,7 @@ set(QEMU_CPU_TYPE_${ARCH} cortex-a9)
set(QEMU_FLAGS_${ARCH}
-nographic
-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

5
boards/qemu/cortex_a9/board.yml

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
board:
name: qemu_cortex_a9
vendor: QEMU
socs:
- name: xc7z007s

0
boards/boards_legacy/arm/qemu_cortex_a9/fdt-zynq7000s.dtb → boards/qemu/cortex_a9/fdt-zynq7000s.dtb

0
boards/boards_legacy/arm/qemu_cortex_a9/qemu_cortex_a9.dts → boards/qemu/cortex_a9/qemu_cortex_a9.dts

0
boards/boards_legacy/arm/qemu_cortex_a9/qemu_cortex_a9.yaml → boards/qemu/cortex_a9/qemu_cortex_a9.yaml

5
boards/boards_legacy/arm/qemu_cortex_a9/qemu_cortex_a9_defconfig → boards/qemu/cortex_a9/qemu_cortex_a9_defconfig

@ -4,11 +4,6 @@ @@ -4,11 +4,6 @@
# 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_SERIAL=y
Loading…
Cancel
Save