soc: use HWMv2 for renesas_rzt2m SoC

This commit move the renesas_rzt2m SoC to soc/v2 and adopt HWMv2.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
This commit is contained in:
Torsten Rasmussen
2023-11-20 15:58:54 +01:00
committed by Jamie McCrae
parent 4f52bc646e
commit 3abb792073
11 changed files with 28 additions and 22 deletions

View File

@@ -1,6 +0,0 @@
# Copyright (c) 2023 Antmicro <www.antmicro.com>
# SPDX-License-Identifier: Apache-2.0
zephyr_sources(
soc.c
)

View File

@@ -1,12 +0,0 @@
# Copyright (c) 2023 Antmicro <www.antmicro.com>
# SPDX-License-Identifier: Apache-2.0
config SOC_RENESAS_RZT2M
bool "Renesas RZ/T2M MCU"
select ARM
select CPU_CORTEX_R52
select CPU_HAS_ARM_MPU
select GIC_V3
select GIC_SINGLE_SECURITY_STATE
select ARM_ARCH_TIMER
select SYSCON

View File

@@ -0,0 +1,10 @@
# Copyright (c) 2023 Antmicro <www.antmicro.com>
# SPDX-License-Identifier: Apache-2.0
zephyr_sources(
soc.c
)
zephyr_include_directories(.)
set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_r/scripts/linker.ld CACHE INTERNAL "")

View File

@@ -2,7 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
config SOC_RENESAS_RZT2M
bool
select ARM
select CPU_CORTEX_R52
select CPU_HAS_ARM_MPU
select GIC_V3
select GIC_SINGLE_SECURITY_STATE
select ARM_ARCH_TIMER
select SYSCON
if SOC_RENESAS_RZT2M

View File

@@ -3,9 +3,6 @@
if SOC_RENESAS_RZT2M
config SOC
default "renesas_rzt2m"
config NUM_IRQS
default 994

View File

@@ -0,0 +1,9 @@
# Copyright (c) 2023 Antmicro <www.antmicro.com>
# SPDX-License-Identifier: Apache-2.0
config SOC_RENESAS_RZT2M
bool
config SOC
default "renesas_rzt2m"
depends on SOC_RENESAS_RZT2M

View File

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