soc: riscv: gd32vf103: reorganize SoC folder

Move things out from riscv-privileged, and create the new RISC-V GD32
family. New family folder follows the <vnd>_<family> naming convention.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
Gerard Marull-Paretas 2024-01-03 14:14:00 +01:00 committed by Carles Cufí
parent 72e52a06aa
commit 5a98d87335
16 changed files with 31 additions and 3 deletions

View file

@ -2995,7 +2995,7 @@ GD32 Platforms:
- dts/*/gigadevice/
- dts/bindings/*/*gd32*
- soc/arm/gigadevice/
- soc/riscv/riscv-privileged/gd32vf103/
- soc/riscv/gd_gd32/
- scripts/west_commands/*/*gd32*
labels:
- "platform: GD32"

View file

@ -0,0 +1,4 @@
# Copyright (c) 2024 Nordic Semiconductor
# SPDX-License-Identifier: Apache-2.0
add_subdirectory(${SOC_SERIES})

15
soc/riscv/gd_gd32/Kconfig Normal file
View file

@ -0,0 +1,15 @@
# Copyright (c) 2024 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
config SOC_FAMILY_GD32
bool
if SOC_FAMILY_GD32
config SOC_FAMILY
string
default "gd_gd32"
source "soc/riscv/gd_gd32/*/Kconfig.soc"
endif # SOC_FAMILY_GIGADEVICE_GD32

View file

@ -0,0 +1,4 @@
# Copyright (c) 2024 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
source "soc/riscv/gd_gd32/*/Kconfig.defconfig.series"

View file

@ -0,0 +1,4 @@
# Copyright (c) 2024 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
source "soc/riscv/gd_gd32/*/Kconfig.series"

View file

@ -3,7 +3,7 @@
if SOC_SERIES_GD32VF103
source "soc/riscv/riscv-privileged/gd32vf103/Kconfig.defconfig.gd32vf103*"
source "soc/riscv/gd_gd32/gd32vf103/Kconfig.defconfig.gd32vf103*"
config SOC_SERIES
default "gd32vf103"

View file

@ -15,6 +15,7 @@ config SOC_SERIES_GD32VF103
select GD32_HAS_IRC_40K
select HAS_GD32_HAL
select RISCV_HAS_CLIC
select SOC_FAMILY_GD32
select RISCV_PRIVILEGED_STANDALONE
help
Enable support for GigaDevice GD32VF1 series SoC