soc: m46x: Port to HWMv2

Ports the m46x SoC configuration to hardware model version 2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae
2024-02-02 09:13:34 +00:00
parent d52eab9e83
commit 3b0bd70c8c
15 changed files with 47 additions and 41 deletions

View File

@@ -2,4 +2,7 @@
#
# SPDX-License-Identifier: Apache-2.0
source "soc/soc_legacy/arm/nuvoton_numaker/*/Kconfig.series"
config SOC_FAMILY_NUMAKER
select PLATFORM_SPECIFIC_INIT
rsource "*/Kconfig"

View File

@@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: Apache-2.0
source "soc/soc_legacy/arm/nuvoton_numaker/*/Kconfig.defconfig.series"
rsource "*/Kconfig.defconfig"
if SOC_FAMILY_NUMAKER

View File

@@ -0,0 +1,11 @@
# Copyright (c) 2023 Nuvoton Technology Corporation.
#
# SPDX-License-Identifier: Apache-2.0
config SOC_FAMILY_NUMAKER
bool
config SOC_FAMILY
default "numaker" if SOC_FAMILY_NUMAKER
rsource "*/Kconfig.soc"

View File

@@ -4,4 +4,6 @@
zephyr_sources(soc.c)
zephyr_include_directories(.)
set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "")

View File

@@ -3,13 +3,12 @@
# SPDX-License-Identifier: Apache-2.0
config SOC_SERIES_M46X
bool "Nuvoton M46X Series MCU"
select ARM
select CPU_CORTEX_M4
select CPU_CORTEX_M_HAS_DWT
select CPU_HAS_FPU
select CPU_HAS_ARM_MPU
select CORTEX_M_SYSTICK if SYS_CLOCK_EXISTS
select SOC_FAMILY_NUMAKER
help
Enable support for Nuvoton M46X MCU series
config SOC_M467
select HAS_NUMAKER_HAL

View File

@@ -4,9 +4,6 @@
if SOC_SERIES_M46X
source "soc/soc_legacy/arm/nuvoton_numaker/m46x/Kconfig.defconfig.m46*"
config SOC_SERIES
default "m46x"
rsource "Kconfig.defconfig.m46*"
endif # SOC_SERIES_M46X

View File

@@ -0,0 +1,19 @@
# Copyright (c) 2023 Nuvoton Technology Corporation.
#
# SPDX-License-Identifier: Apache-2.0
config SOC_SERIES_M46X
bool
select SOC_FAMILY_NUMAKER
help
Enable support for Nuvoton M46X MCU series
config SOC_M467
bool
select SOC_SERIES_M46X
config SOC_SERIES
default "m46x" if SOC_SERIES_M46X
config SOC
default "m467" if SOC_M467

View File

@@ -0,0 +1,6 @@
family:
- name: numaker
series:
- name: m46x
socs:
- name: m467

View File

@@ -1,18 +0,0 @@
# Copyright (c) 2023 Nuvoton Technology Corporation.
#
# SPDX-License-Identifier: Apache-2.0
config SOC_FAMILY_NUMAKER
select PLATFORM_SPECIFIC_INIT
bool
if SOC_FAMILY_NUMAKER
config SOC_FAMILY
string
default "nuvoton_numaker"
source "soc/soc_legacy/arm/nuvoton_numaker/*/Kconfig.soc"
endif # SOC_FAMILY_NUMAKER

View File

@@ -1,13 +0,0 @@
# Copyright (c) 2023 Nuvoton Technology Corporation.
#
# SPDX-License-Identifier: Apache-2.0
choice
prompt "Nuvoton M46X MCU Selection"
depends on SOC_SERIES_M46X
config SOC_M467
bool "M467"
select HAS_NUMAKER_HAL
endchoice