soc: nios2f-zephyr: Port to HWMv2
Ports the nios2f-zephyr SoC configuration to hardware model version 2 Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
# Copyright (c) 2016 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 "")
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright (c) 2016 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_NIOS2F_ZEPHYR
|
||||
bool "Nios IIf - Zephyr Golden Configuration"
|
||||
config SOC_ZEPHYR_NIOS2F
|
||||
select NIOS2
|
||||
select HAS_MUL_INSTRUCTION
|
||||
select HAS_DIV_INSTRUCTION
|
||||
@@ -1,9 +1,7 @@
|
||||
# Copyright (c) 2016 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SOC_NIOS2F_ZEPHYR
|
||||
|
||||
config SOC
|
||||
default "nios2f-zephyr"
|
||||
if SOC_ZEPHYR_NIOS2F
|
||||
|
||||
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||
default 50000000
|
||||
@@ -23,4 +21,4 @@ config ALTERA_AVALON_MSGDMA
|
||||
def_bool y
|
||||
depends on DMA_NIOS2_MSGDMA
|
||||
|
||||
endif # SOC_NIOS2F_ZEPHYR
|
||||
endif # SOC_ZEPHYR_NIOS2F
|
||||
8
soc/v2/altera/zephyr_nios2f/Kconfig.soc
Normal file
8
soc/v2/altera/zephyr_nios2f/Kconfig.soc
Normal file
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2016 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_ZEPHYR_NIOS2F
|
||||
bool
|
||||
|
||||
config SOC
|
||||
default "zephyr_nios2f" if SOC_ZEPHYR_NIOS2F
|
||||
2
soc/v2/altera/zephyr_nios2f/soc.yml
Normal file
2
soc/v2/altera/zephyr_nios2f/soc.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
socs:
|
||||
- name: zephyr_nios2f
|
||||
Reference in New Issue
Block a user