soc: renesas: Add support for RX62N MCU

The qemu-system-rx is based on RX62N, this commit added
support for the RX62N SOC layer. MCU is using RXv1 core and
system timer running at 6MHz

Signed-off-by: Duy Nguyen <duy.nguyen.xa@renesas.com>
This commit is contained in:
Duy Nguyen 2025-02-26 09:19:00 +07:00 committed by Benjamin Cabé
commit d4d2b09cac
7 changed files with 171 additions and 0 deletions

View file

@ -0,0 +1,6 @@
# Copyright (c) 2024 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0
zephyr_include_directories(.)
set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/rx/linker.ld CACHE INTERNAL "")

View file

@ -0,0 +1,8 @@
# Copyright (c) 2024 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0
config SOC_SERIES_RX62N
select RX
select CPU_RXV1
select XIP
select CLOCK_CONTROL

View file

@ -0,0 +1,9 @@
# Copyright (c) 2024 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0
if SOC_SERIES_RX62N
config INITIALIZATION_STACK_SIZE
default 512
endif # SOC_SERIES_RX62N

View file

@ -0,0 +1,20 @@
# Copyright (c) 2024 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0
config SOC_SERIES_RX62N
bool
select SOC_FAMILY_RENESAS_RX
help
Renesas RX62N series
config SOC_R5F562N8
bool
select SOC_SERIES_RX62N
help
R5F562N8
config SOC_SERIES
default "rx62n" if SOC_SERIES_RX62N
config SOC
default "r5f562n8" if SOC_R5F562N8

View file

@ -0,0 +1,12 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __RX62N_SOC_H__
#define __RX62N_SOC_H__
#include "reg_protection.h"
#endif /* __RX62N_SOC_H__ */

View file

@ -4,3 +4,6 @@ family:
- name: rx130
socs:
- name: r5f513083xfb
- name: rx62n
socs:
- name: r5f562n8