soc: nios2-qemu: Port to HWMv2

Ports the nios2-qemu SoC configuration to hardware model version 2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae
2024-01-11 13:54:45 +00:00
parent a223f284b5
commit d3ef220460
10 changed files with 17 additions and 6 deletions

View File

@@ -1,4 +1,7 @@
# Copyright (c) 2018 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
zephyr_include_directories(include)
zephyr_include_directories(.)
set(SOC_LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/linker.ld CACHE INTERNAL "")

View File

@@ -1,7 +1,7 @@
# Copyright (c) 2018 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
config SOC_NIOS2_QEMU
bool "Nios II - Experimental QEMU emulation"
config SOC_QEMU_NIOS2
select NIOS2
select HAS_MUL_INSTRUCTION
select HAS_DIV_INSTRUCTION

View File

@@ -1,9 +1,7 @@
# Copyright (c) 2018 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
if SOC_NIOS2_QEMU
config SOC
default "nios2-qemu"
if SOC_QEMU_NIOS2
config SYS_CLOCK_HW_CYCLES_PER_SEC
default 50000000

View File

@@ -0,0 +1,8 @@
# Copyright (c) 2018 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
config SOC_QEMU_NIOS2
bool
config SOC
default "qemu_nios2" if SOC_QEMU_NIOS2

View File

@@ -0,0 +1,2 @@
socs:
- name: qemu_nios2