Skip to content

Commit 5ccc0eb

Browse files
soburifabiobaltieri
authored andcommitted
soc: arm: add support for Renesas RA4M1 series SoC
Add essential support for RA4M1 Series. It only defines `r7fa4m1ab3cfm` currently. Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent 2c972d5 commit 5ccc0eb

File tree

15 files changed

+180
-0
lines changed

15 files changed

+180
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) 2023 TOKITA Hiroshi <[email protected]>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <renesas/ra/ra4-cm4-common.dtsi>
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/*
2+
* Copyright (c) 2023 TOKITA Hiroshi <[email protected]>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <mem.h>
8+
#include <freq.h>
9+
#include <arm/armv7-m.dtsi>
10+
11+
/ {
12+
cpus {
13+
#address-cells = <1>;
14+
#size-cells = <0>;
15+
16+
cpu@0 {
17+
device_type = "cpu";
18+
compatible = "arm,cortex-m4";
19+
reg = <0>;
20+
};
21+
};
22+
23+
sram0: memory0@20000000 {
24+
compatible = "mmio-sram";
25+
reg = <0x20000000 DT_SIZE_K(32)>;
26+
};
27+
28+
soc {
29+
fcu: flash-controller@4001c000 {
30+
compatible = "renesas,ra-flash-controller";
31+
reg = <0x4001c000 0x44>;
32+
reg-names = "fcache";
33+
34+
#address-cells = <1>;
35+
#size-cells = <1>;
36+
37+
flash0: flash0@0 {
38+
compatible = "soc-nv-flash";
39+
reg = <0x00000000 DT_SIZE_K(256)>;
40+
};
41+
42+
flash1: flash1@40100000 {
43+
compatible = "soc-nv-flash";
44+
reg = <0x40100000 DT_SIZE_K(8)>;
45+
};
46+
};
47+
};
48+
};
49+
50+
&nvic {
51+
arm,num-irq-priority-bits = <4>;
52+
};
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) 2023 TOKITA Hiroshi <[email protected]>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <renesas/ra/ra-cm4-common.dtsi>

soc/arm/renesas_ra/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) 2023 TOKITA Hiroshi <[email protected]>
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
zephyr_include_directories(common)
5+
6+
add_subdirectory(${SOC_SERIES})

soc/arm/renesas_ra/Kconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright (c) 2023 TOKITA Hiroshi <[email protected]>
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config SOC_FAMILY_RA
5+
bool
6+
7+
if SOC_FAMILY_RA
8+
9+
config SOC_FAMILY
10+
string
11+
default "renesas_ra"
12+
13+
config SERIES_SPECIFIC_SOC_INIT
14+
bool "Use series specific initialize"
15+
16+
source "soc/arm/renesas_ra/*/Kconfig.soc"
17+
18+
endif # SOC_FAMILY_RA
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright (c) 2023 TOKITA Hiroshi <[email protected]>
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
source "soc/arm/renesas_ra/*/Kconfig.defconfig.series"

soc/arm/renesas_ra/Kconfig.soc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright (c) 2023 TOKITA Hiroshi <[email protected]>
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
source "soc/arm/renesas_ra/*/Kconfig.series"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Copyright (c) 2023 TOKITA Hiroshi <[email protected]>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#ifndef ZEPHYR_SOC_ARM_RENESAS_RA_COMMON_RA_COMMON_SOC_H_
8+
#define ZEPHYR_SOC_ARM_RENESAS_RA_COMMON_RA_COMMON_SOC_H_
9+
10+
#ifdef __cplusplus
11+
extern "C" {
12+
#endif
13+
14+
#ifdef __cplusplus
15+
}
16+
#endif
17+
18+
#endif /* ZEPHYR_SOC_ARM_RENESAS_RA_COMMON_RA_COMMON_SOC_H_ */
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright (c) 2023 TOKITA Hiroshi <[email protected]>
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# empty
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright (c) 2023 TOKITA Hiroshi <[email protected]>
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
if SOC_R7FA4M1AB3CFM
5+
6+
config SOC
7+
default "r7fa4m1ab3cfm"
8+
9+
endif # SOC_R7FA4M1AB3CFM

0 commit comments

Comments
 (0)