soc: leon3: Port to HWMv2

Ports the leon3 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 11:34:15 +00:00
parent e94762ecdc
commit faf22185ce
8 changed files with 12 additions and 4 deletions

View File

@@ -2,4 +2,6 @@
zephyr_sources(idle.c)
zephyr_include_directories(.)
set(SOC_LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/linker.ld CACHE INTERNAL "")

View File

@@ -2,6 +2,5 @@
# SPDX-License-Identifier: Apache-2.0
config SOC_LEON3
bool "A LEON3 SOC which you can configure"
select SPARC
select SOC_SPARC_LEON

View File

@@ -3,9 +3,6 @@
if SOC_LEON3
config SOC
default "leon3"
config SYS_CLOCK_HW_CYCLES_PER_SEC
default 40000000

View File

@@ -0,0 +1,8 @@
# Copyright (c) 2019-2020 Cobham Gaisler AB
# SPDX-License-Identifier: Apache-2.0
config SOC_LEON3
bool
config SOC
default "leon3" if SOC_LEON3

View File

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