boards: arm: qemu_cortex_m0: Convert to v2

Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae
2024-02-02 11:38:13 +00:00
committed by Carles Cufi
parent ee1ce24a42
commit 6dd2723314
14 changed files with 13 additions and 13 deletions

View File

@@ -1,3 +1,5 @@
board:
name: bbc_microbit
vendor: BBC
socs:
- name: nrf51822

View File

@@ -1,6 +1,9 @@
# Copyright (c) 2021 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
config BOARD_QEMU_CORTEX_M0
select QEMU_TARGET
config NRF_TIMER_TIMER
bool "nRF Timer Counter (NRF_TIMER0) Timer"
depends on CLOCK_CONTROL

View File

@@ -5,9 +5,6 @@
if BOARD_QEMU_CORTEX_M0
config BOARD
default "qemu_cortex_m0"
config NRF_RTC_TIMER
default n if SYS_CLOCK_EXISTS

View File

@@ -4,6 +4,4 @@
# SPDX-License-Identifier: Apache-2.0
config BOARD_QEMU_CORTEX_M0
bool "Cortex-M0 Emulation (QEMU)"
depends on SOC_NRF51822_QFAA
select QEMU_TARGET
select SOC_NRF51822_QFAA

View File

@@ -0,0 +1,3 @@
board:
name: qemu_cortex_m0
vendor: Nordic Semiconductor

View File

@@ -1,20 +1,17 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_NRF51X=y
CONFIG_SOC_NRF51822_QFAA=y
CONFIG_BOARD_QEMU_CORTEX_M0=y
CONFIG_QEMU_ICOUNT_SHIFT=6
# enable GPIO
# Enable GPIO
CONFIG_GPIO=y
# clock control
# Clock control
CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=y
# enable uart driver
# Enable UART driver
CONFIG_SERIAL=y
# enable console
# Enable console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y