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:
@@ -2,4 +2,6 @@
|
||||
|
||||
zephyr_sources(idle.c)
|
||||
|
||||
zephyr_include_directories(.)
|
||||
|
||||
set(SOC_LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/linker.ld CACHE INTERNAL "")
|
||||
@@ -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
|
||||
@@ -3,9 +3,6 @@
|
||||
|
||||
if SOC_LEON3
|
||||
|
||||
config SOC
|
||||
default "leon3"
|
||||
|
||||
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||
default 40000000
|
||||
|
||||
8
soc/v2/gaisler/leon3/Kconfig.soc
Normal file
8
soc/v2/gaisler/leon3/Kconfig.soc
Normal 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
|
||||
2
soc/v2/gaisler/leon3/soc.yml
Normal file
2
soc/v2/gaisler/leon3/soc.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
socs:
|
||||
- name: leon3
|
||||
Reference in New Issue
Block a user