soc: arm: intel_socfpga_std: Move and convert to HWMv2

Move and convert to HWMv2 `soc/arm/intel_socfpga_std`
SoC family configuration, its SoC series `cyclonev`,
and SoC `intel_socfpga_std_cyclonev`.

Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
This commit is contained in:
Dmitrii Golovanov
2024-02-13 00:43:51 +01:00
committed by Carles Cufi
parent 841c2a9d99
commit 2271f17a86
18 changed files with 69 additions and 76 deletions

View File

@@ -1,6 +1,4 @@
# Copyright (c) 2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# Description:
# Adding support for Intel Cyclone V SoC
add_subdirectory(${SOC_SERIES})

View File

@@ -0,0 +1,8 @@
# Copyright (c) 2022-2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
if SOC_FAMILY_INTEL_SOCFPGA_STD
rsource "*/Kconfig"
endif # SOC_FAMILY_INTEL_SOCFPGA_STD

View File

@@ -0,0 +1,8 @@
# Copyright (c) 2022-2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
if SOC_FAMILY_INTEL_SOCFPGA_STD
rsource "*/Kconfig.defconfig.series"
endif # SOC_FAMILY_INTEL_SOCFPGA_STD

View File

@@ -0,0 +1,10 @@
# Copyright (c) 2021-2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
config SOC_FAMILY_INTEL_SOCFPGA_STD
bool
config SOC_FAMILY
default "intel_socfpga_std" if SOC_FAMILY_INTEL_SOCFPGA_STD
rsource "*/Kconfig.soc"

View File

@@ -1,7 +1,5 @@
# Copyright (c) 2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# Description:
# Adding support for Cyclone V SoC FPGA
zephyr_include_directories(.)
zephyr_sources(soc.c)

View File

@@ -0,0 +1,8 @@
# Copyright (c) 2022-2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
config SOC_SERIES_CYCLONE5
select ARM
select CPU_CORTEX_A9
select ARM_ARCH_TIMER_ERRATUM_740657 if ARM_ARCH_TIMER
select ARCH_HAS_RESERVED_PAGE_FRAMES

View File

@@ -1,13 +1,8 @@
# Copyright (c) 2022 Intel Corporation
# Copyright (c) 2022-2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# Description:
# Adding support for Cyclone V SoC FPGA
if SOC_CYCLONE5
config SOC
default "intel_socfpga_std_cyclonev"
config NUM_IRQS
int
default 211

View File

@@ -0,0 +1,8 @@
# Copyright (c) 2022-2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
if SOC_SERIES_CYCLONE5
rsource "Kconfig.defconfig.cyclonev*"
endif # SOC_SERIES_CYCLONE5

View File

@@ -0,0 +1,20 @@
# Copyright (c) 2021-2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
config SOC_SERIES_CYCLONE5
bool
select SOC_FAMILY_INTEL_SOCFPGA_STD
help
Intel SoC FPGA Cyclone V Series
config SOC_SERIES
default "cyclonev" if SOC_SERIES_CYCLONE5
config SOC_CYCLONE5
bool
select SOC_SERIES_CYCLONE5
help
Intel SoC FPGA Cyclone V
config SOC
default "intel_socfpga_std_cyclonev" if SOC_CYCLONE5

View File

@@ -0,0 +1,6 @@
family:
- name: intel_socfpga_std
series:
- name: cyclonev
socs:
- name: intel_socfpga_std_cyclonev

View File

@@ -1,15 +0,0 @@
# Copyright (c) 2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# Description:
# Adding support to Cyclone V SoC FPGA
config SOC_FAMILY_INTEL_SOCFPGA_STD
bool
if SOC_FAMILY_INTEL_SOCFPGA_STD
config SOC_FAMILY
string
default "intel_socfpga_std"
source "soc/soc_legacy/arm/intel_socfpga_std/*/Kconfig.soc"
endif

View File

@@ -1,6 +0,0 @@
# Copyright (c) 2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# Description:
# Adding support for Cyclone V SoC FPGA
source "soc/soc_legacy/arm/intel_socfpga_std/*/Kconfig.defconfig.series"

View File

@@ -1,6 +0,0 @@
# Copyright (c) 2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# Description:
# Adding support for Cyclone V SoC FPGA
source "soc/soc_legacy/arm/intel_socfpga_std/*/Kconfig.series"

View File

@@ -1,13 +0,0 @@
# Copyright (c) 2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# Description:
# Adding support for Cyclone V SoC FPGA
if SOC_SERIES_CYCLONE5
config SOC_SERIES
default "cyclonev"
source "soc/soc_legacy/arm/intel_socfpga_std/cyclonev/Kconfig.defconfig.cyclonev*"
endif # SOC_SERIES_CYCLONE5

View File

@@ -1,14 +0,0 @@
# Copyright (c) 2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# Description
# Adding configuration options for Cyclone V SoC FPGA
config SOC_SERIES_CYCLONE5
bool "Intel SoC FPGA Cyclone5 Series"
select ARM
select CPU_CORTEX_A9
select SOC_FAMILY_INTEL_SOCFPGA_STD
select ARM_ARCH_TIMER_ERRATUM_740657 if ARM_ARCH_TIMER
select ARCH_HAS_RESERVED_PAGE_FRAMES
help
Support for Intel SoC FPGA Series

View File

@@ -1,12 +0,0 @@
# Copyright (c) 2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# Description:
# Adding support to Cyclone V SoC FPGA
choice
prompt "Intel SoC FPGA Cyclone5"
depends on SOC_SERIES_CYCLONE5
config SOC_CYCLONE5
bool "Intel SoC FPGA Cyclone5"
endchoice