Browse Source

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>
pull/69687/head
Jamie McCrae 2 years ago
parent
commit
d3ef220460
  1. 3
      soc/v2/altera/qemu_nios2/CMakeLists.txt
  2. 4
      soc/v2/altera/qemu_nios2/Kconfig
  3. 6
      soc/v2/altera/qemu_nios2/Kconfig.defconfig
  4. 8
      soc/v2/altera/qemu_nios2/Kconfig.soc
  5. 0
      soc/v2/altera/qemu_nios2/include/layout.h
  6. 0
      soc/v2/altera/qemu_nios2/include/linker.h
  7. 0
      soc/v2/altera/qemu_nios2/include/system.h
  8. 0
      soc/v2/altera/qemu_nios2/linker.ld
  9. 0
      soc/v2/altera/qemu_nios2/soc.h
  10. 2
      soc/v2/altera/qemu_nios2/soc.yml

3
soc/nios2/nios2-qemu/CMakeLists.txt → soc/v2/altera/qemu_nios2/CMakeLists.txt

@ -1,4 +1,7 @@ @@ -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 "")

4
soc/nios2/nios2-qemu/Kconfig.soc → soc/v2/altera/qemu_nios2/Kconfig

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

6
soc/nios2/nios2-qemu/Kconfig.defconfig → soc/v2/altera/qemu_nios2/Kconfig.defconfig

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

8
soc/v2/altera/qemu_nios2/Kconfig.soc

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

0
soc/nios2/nios2-qemu/include/layout.h → soc/v2/altera/qemu_nios2/include/layout.h

0
soc/nios2/nios2-qemu/include/linker.h → soc/v2/altera/qemu_nios2/include/linker.h

0
soc/nios2/nios2-qemu/include/system.h → soc/v2/altera/qemu_nios2/include/system.h

0
soc/nios2/nios2-qemu/linker.ld → soc/v2/altera/qemu_nios2/linker.ld

0
soc/nios2/nios2-qemu/soc.h → soc/v2/altera/qemu_nios2/soc.h

2
soc/v2/altera/qemu_nios2/soc.yml

@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
socs:
- name: qemu_nios2
Loading…
Cancel
Save