Skip to content

Commit d6db6ba

Browse files
committed
soc: arm: gigadevice: gd32f403: simplify soc selection
There is no need to specify SoC suffixes, so simplify the selection. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 0e50aa9 commit d6db6ba

File tree

4 files changed

+5
-17
lines changed

4 files changed

+5
-17
lines changed

boards/arm/gd32f403z_eval/Kconfig.board

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
config BOARD_GD32F403Z_EVAL
55
bool "GigaDevice GD32F403Z Evaluation Kit"
6-
depends on SOC_GD32F403Z
6+
depends on SOC_GD32F403

boards/arm/gd32f403z_eval/gd32f403z_eval_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
CONFIG_SOC_SERIES_GD32F403=y
5-
CONFIG_SOC_GD32F403Z=y
5+
CONFIG_SOC_GD32F403=y
66
CONFIG_BOARD_GD32F403Z_EVAL=y
77

88
CONFIG_ARM_MPU=y
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
# Copyright (c) 2021, ATL Electronics
22
# SPDX-License-Identifier: Apache-2.0
33

4-
if SOC_GD32F403R || SOC_GD32F403V || SOC_GD32F403Z
5-
64
config SOC
7-
default "gd32f403r" if SOC_GD32F403R
8-
default "gd32f403v" if SOC_GD32F403V
9-
default "gd32f403z" if SOC_GD32F403Z
5+
default "gd32f403"
106

117
config SYS_CLOCK_HW_CYCLES_PER_SEC
128
default 168000000
139

1410
config NUM_IRQS
1511
default 68
16-
17-
endif

soc/arm/gigadevice/gd32f403/Kconfig.soc

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@ choice
55
prompt "GigaDevice GD32F403 MCU Selection"
66
depends on SOC_SERIES_GD32F403
77

8-
config SOC_GD32F403R
9-
bool "gd32f403r"
10-
11-
config SOC_GD32F403V
12-
bool "gd32f403v"
13-
14-
config SOC_GD32F403Z
15-
bool "gd32f403z"
8+
config SOC_GD32F403
9+
bool "gd32f403"
1610

1711
endchoice

0 commit comments

Comments
 (0)