Browse Source

soc: ra: Port to HWMv2

Ports the ra SoC configuration to hardware model version 2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
pull/69687/head
Jamie McCrae 1 year ago committed by Carles Cufi
parent
commit
2689b3f0ee
  1. 0
      soc/renesas/ra/CMakeLists.txt
  2. 13
      soc/renesas/ra/Kconfig
  3. 7
      soc/renesas/ra/Kconfig.defconfig
  4. 10
      soc/renesas/ra/Kconfig.soc
  5. 0
      soc/renesas/ra/common/pinctrl_ra.h
  6. 0
      soc/renesas/ra/common/ra_common_soc.h
  7. 2
      soc/renesas/ra/ra4m1/CMakeLists.txt
  8. 2
      soc/renesas/ra/ra4m1/Kconfig
  9. 5
      soc/renesas/ra/ra4m1/Kconfig.defconfig
  10. 20
      soc/renesas/ra/ra4m1/Kconfig.soc
  11. 0
      soc/renesas/ra/ra4m1/pinctrl_soc.h
  12. 0
      soc/renesas/ra/ra4m1/soc.h
  13. 6
      soc/renesas/ra/soc.yml
  14. 4
      soc/soc_legacy/arm/renesas_ra/Kconfig.defconfig
  15. 4
      soc/soc_legacy/arm/renesas_ra/Kconfig.soc
  16. 11
      soc/soc_legacy/arm/renesas_ra/ra4m1/Kconfig.soc

0
soc/soc_legacy/arm/renesas_ra/CMakeLists.txt → soc/renesas/ra/CMakeLists.txt

13
soc/soc_legacy/arm/renesas_ra/Kconfig → soc/renesas/ra/Kconfig

@ -1,18 +1,11 @@ @@ -1,18 +1,11 @@
# Copyright (c) 2023 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
# SPDX-License-Identifier: Apache-2.0
config SOC_FAMILY_RA
bool
if SOC_FAMILY_RA
config SOC_FAMILY
string
default "renesas_ra"
if SOC_FAMILY_RENESAS_RA
config SERIES_SPECIFIC_SOC_INIT
bool "Use series specific initialize"
source "soc/soc_legacy/arm/renesas_ra/*/Kconfig.soc"
rsource "*/Kconfig"
endif # SOC_FAMILY_RA
endif # SOC_FAMILY_RENESAS_RA

7
soc/soc_legacy/arm/renesas_ra/ra4m1/Kconfig.defconfig.r7fa4m1xxxxxx → soc/renesas/ra/Kconfig.defconfig

@ -1,9 +1,8 @@ @@ -1,9 +1,8 @@
# Copyright (c) 2023 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
# SPDX-License-Identifier: Apache-2.0
if SOC_R7FA4M1AB3CFM
if SOC_FAMILY_RENESAS_RA
config SOC
default "r7fa4m1ab3cfm"
rsource "*/Kconfig.defconfig"
endif # SOC_R7FA4M1AB3CFM
endif # SOC_FAMILY_RENESAS_RA

10
soc/renesas/ra/Kconfig.soc

@ -0,0 +1,10 @@ @@ -0,0 +1,10 @@
# Copyright (c) 2023 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
# SPDX-License-Identifier: Apache-2.0
config SOC_FAMILY_RENESAS_RA
bool
config SOC_FAMILY
default "renesas_ra" if SOC_FAMILY_RENESAS_RA
rsource "*/Kconfig.soc"

0
soc/soc_legacy/arm/renesas_ra/common/pinctrl_ra.h → soc/renesas/ra/common/pinctrl_ra.h

0
soc/soc_legacy/arm/renesas_ra/common/ra_common_soc.h → soc/renesas/ra/common/ra_common_soc.h

2
soc/soc_legacy/arm/renesas_ra/ra4m1/CMakeLists.txt → soc/renesas/ra/ra4m1/CMakeLists.txt

@ -1,4 +1,6 @@ @@ -1,4 +1,6 @@
# Copyright (c) 2023 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
# SPDX-License-Identifier: Apache-2.0
zephyr_include_directories(.)
set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "")

2
soc/soc_legacy/arm/renesas_ra/ra4m1/Kconfig.series → soc/renesas/ra/ra4m1/Kconfig

@ -2,12 +2,10 @@ @@ -2,12 +2,10 @@
# SPDX-License-Identifier: Apache-2.0
config SOC_SERIES_RA4M1
bool "Renesas RA4M1"
select ARM
select CPU_CORTEX_M4
select CPU_HAS_ARM_MPU
select CPU_CORTEX_M_HAS_SYSTICK
select DYNAMIC_INTERRUPTS
select SOC_FAMILY_RA
select TIMER_READS_ITS_FREQUENCY_AT_RUNTIME
select XIP

5
soc/soc_legacy/arm/renesas_ra/ra4m1/Kconfig.defconfig.series → soc/renesas/ra/ra4m1/Kconfig.defconfig

@ -3,11 +3,6 @@ @@ -3,11 +3,6 @@
if SOC_SERIES_RA4M1
rsource "Kconfig.defconfig.r7fa4*"
config SOC_SERIES
default "ra4m1"
config NUM_IRQS
default 32

20
soc/renesas/ra/ra4m1/Kconfig.soc

@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
# Copyright (c) 2023 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
# SPDX-License-Identifier: Apache-2.0
config SOC_SERIES_RA4M1
bool
select SOC_FAMILY_RENESAS_RA
help
Renesas RA4M1
config SOC_R7FA4M1AB3CFM
bool
select SOC_SERIES_RA4M1
help
R7FA4M1AB3CFM
config SOC_SERIES
default "ra4m1" if SOC_SERIES_RA4M1
config SOC
default "r7fa4m1ab3cfm" if SOC_R7FA4M1AB3CFM

0
soc/soc_legacy/arm/renesas_ra/ra4m1/pinctrl_soc.h → soc/renesas/ra/ra4m1/pinctrl_soc.h

0
soc/soc_legacy/arm/renesas_ra/ra4m1/soc.h → soc/renesas/ra/ra4m1/soc.h

6
soc/renesas/ra/soc.yml

@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
family:
- name: renesas_ra
series:
- name: ra4m1
socs:
- name: r7fa4m1ab3cfm

4
soc/soc_legacy/arm/renesas_ra/Kconfig.defconfig

@ -1,4 +0,0 @@ @@ -1,4 +0,0 @@
# Copyright (c) 2023 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
# SPDX-License-Identifier: Apache-2.0
source "soc/soc_legacy/arm/renesas_ra/*/Kconfig.defconfig.series"

4
soc/soc_legacy/arm/renesas_ra/Kconfig.soc

@ -1,4 +0,0 @@ @@ -1,4 +0,0 @@
# Copyright (c) 2023 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
# SPDX-License-Identifier: Apache-2.0
source "soc/soc_legacy/arm/renesas_ra/*/Kconfig.series"

11
soc/soc_legacy/arm/renesas_ra/ra4m1/Kconfig.soc

@ -1,11 +0,0 @@ @@ -1,11 +0,0 @@
# Copyright (c) 2023 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
# SPDX-License-Identifier: Apache-2.0
choice
prompt "Renesas RA4M1 SoC Selection"
depends on SOC_SERIES_RA4M1
config SOC_R7FA4M1AB3CFM
bool "R7FA4M1AB3CFM"
endchoice
Loading…
Cancel
Save