soc: renesas: Add initial support for Renesas RZ/V2N
Add initial support for Renesas RZ/V2N Signed-off-by: Hieu Nguyen <hieu.nguyen.ym@bp.renesas.com> Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
This commit is contained in:
parent
8144a6638a
commit
73c63f9ca6
8 changed files with 120 additions and 0 deletions
8
soc/renesas/rz/rzv2n/CMakeLists.txt
Normal file
8
soc/renesas/rz/rzv2n/CMakeLists.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Copyright (c) 2025 Renesas Electronics Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
zephyr_sources(soc.c)
|
||||
|
||||
zephyr_include_directories(.)
|
||||
|
||||
set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "")
|
12
soc/renesas/rz/rzv2n/Kconfig
Normal file
12
soc/renesas/rz/rzv2n/Kconfig
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Copyright (c) 2025 Renesas Electronics Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_SERIES_RZV2N
|
||||
select ARM
|
||||
select CPU_CORTEX_M33
|
||||
select CPU_HAS_ARM_MPU
|
||||
select HAS_RENESAS_RZ_FSP
|
||||
select CPU_CORTEX_M_HAS_DWT
|
||||
select SOC_EARLY_INIT_HOOK
|
||||
select CPU_HAS_FPU
|
||||
select ARMV8_M_DSP
|
27
soc/renesas/rz/rzv2n/Kconfig.defconfig
Normal file
27
soc/renesas/rz/rzv2n/Kconfig.defconfig
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Copyright (c) 2025 Renesas Electronics Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SOC_SERIES_RZV2N
|
||||
|
||||
config NUM_IRQS
|
||||
default 480
|
||||
|
||||
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||
default $(dt_node_int_prop_int,/cpus/cpu@0,clock-frequency)
|
||||
|
||||
config FLASH_SIZE
|
||||
default $(dt_chosen_reg_size_int,$(DT_CHOSEN_Z_FLASH),0,K)
|
||||
|
||||
config FLASH_BASE_ADDRESS
|
||||
default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_FLASH))
|
||||
|
||||
config SYS_CLOCK_EXISTS
|
||||
default y
|
||||
|
||||
config INIT_ARCH_HW_AT_BOOT
|
||||
default y
|
||||
|
||||
config BUILD_OUTPUT_S19
|
||||
default y
|
||||
|
||||
endif # SOC_SERIES_RZV2N
|
24
soc/renesas/rz/rzv2n/Kconfig.soc
Normal file
24
soc/renesas/rz/rzv2n/Kconfig.soc
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Copyright (c) 2025 Renesas Electronics Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_SERIES_RZV2N
|
||||
bool
|
||||
select SOC_FAMILY_RENESAS_RZ
|
||||
help
|
||||
Renesas RZ/V2N series
|
||||
|
||||
config SOC_SERIES
|
||||
default "rzv2n" if SOC_SERIES_RZV2N
|
||||
|
||||
config SOC_R9A09G056N48GBG
|
||||
bool
|
||||
select SOC_SERIES_RZV2N
|
||||
help
|
||||
R9A09G056N48GBG
|
||||
|
||||
config SOC_R9A09G056N48GBG_CM33
|
||||
bool
|
||||
select SOC_R9A09G056N48GBG
|
||||
|
||||
config SOC
|
||||
default "r9a09g056n48gbg" if SOC_R9A09G056N48GBG
|
11
soc/renesas/rz/rzv2n/pinctrl_soc.h
Normal file
11
soc/renesas/rz/rzv2n/pinctrl_soc.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* Copyright (c) 2025 Renesas Electronics Corporation
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef ZEPHYR_SOC_RENESAS_RZ_RZV2N_PINCTRL_SOC_H_
|
||||
#define ZEPHYR_SOC_RENESAS_RZ_RZV2N_PINCTRL_SOC_H_
|
||||
|
||||
#include <pinctrl_rzv.h>
|
||||
|
||||
#endif /* ZEPHYR_SOC_RENESAS_RZ_RZV2N_PINCTRL_SOC_H_ */
|
21
soc/renesas/rz/rzv2n/soc.c
Normal file
21
soc/renesas/rz/rzv2n/soc.c
Normal file
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* Copyright (c) 2025 Renesas Electronics Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief System/hardware module for Renesas RZ/V2N Group
|
||||
*/
|
||||
|
||||
#include <zephyr/init.h>
|
||||
#include <bsp_api.h>
|
||||
|
||||
/* System core clock is set to 200 MHz after reset */
|
||||
uint32_t SystemCoreClock = 200000000;
|
||||
|
||||
void soc_early_init_hook(void)
|
||||
{
|
||||
bsp_clock_init();
|
||||
}
|
12
soc/renesas/rz/rzv2n/soc.h
Normal file
12
soc/renesas/rz/rzv2n/soc.h
Normal file
|
@ -0,0 +1,12 @@
|
|||
/*
|
||||
* Copyright (c) 2025 Renesas Electronics Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef ZEPHYR_SOC_RENESAS_RZV2N_SOC_H_
|
||||
#define ZEPHYR_SOC_RENESAS_RZV2N_SOC_H_
|
||||
|
||||
#include <bsp_api.h>
|
||||
|
||||
#endif /* ZEPHYR_SOC_RENESAS_RZV2N_SOC_H_ */
|
|
@ -35,6 +35,11 @@ family:
|
|||
- name: r9a09g057h44gbg
|
||||
cpuclusters:
|
||||
- name: cm33
|
||||
- name: rzv2n
|
||||
socs:
|
||||
- name: r9a09g056n48gbg
|
||||
cpuclusters:
|
||||
- name: cm33
|
||||
- name: rzn2l
|
||||
socs:
|
||||
- name: r9a07g084m04gbg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue