Skip to content

Commit 1d7a095

Browse files
nzmichaelhkartben
authored andcommitted
soc: wch: move from qingke-v2 to the more specific qingke-v2a
The CH32V003 CPU is a QingKe V2A while others in the CH32V00x series use the QingKe V2C. Prepare for adding support for the CH32V006 moving to the more specifc qingke-v2a, moving some cases of SOC_CH32V003 actually meaning SOC_FAMILY_QINGKE_V2A. Signed-off-by: Michael Hope <michaelh@juju.nz>
1 parent 5fc5259 commit 1d7a095

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

drivers/timer/Kconfig.wch_ch32v00x

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

44
config CH32V00X_SYSTICK
55
bool "CH32V00X systick timer"
6-
depends on SOC_CH32V003 || SOC_SERIES_QINGKE_V4C
6+
depends on SOC_SERIES_QINGKE_V2A || SOC_SERIES_QINGKE_V4C
77
default y
88
depends on DT_HAS_WCH_SYSTICK_ENABLED

dts/riscv/wch/ch32v0/ch32v003.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#include <freq.h>
99
#include <mem.h>
10-
#include <wch/qingke-v2.dtsi>
10+
#include <wch/qingke-v2a.dtsi>
1111
#include <zephyr/dt-bindings/gpio/gpio.h>
1212
#include <zephyr/dt-bindings/i2c/i2c.h>
1313
#include <zephyr/dt-bindings/clock/ch32v00x-clocks.h>
File renamed without changes.

modules/hal_wch/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
if(CONFIG_SOC_CH32V003 OR CONFIG_SOC_SERIES_QINGKE_V4C)
1+
if(CONFIG_SOC_SERIES_QINGKE_V2A OR CONFIG_SOC_SERIES_QINGKE_V4C)
22
zephyr_include_directories(${ZEPHYR_HAL_WCH_MODULE_DIR}/ch32v003fun .)
33
endif()

soc/wch/ch32v/soc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
family:
55
- name: ch32v
66
series:
7-
- name: qingke-v2
7+
- name: qingke-v2a
88
socs:
99
- name: ch32v003
1010
- name: qingke-v4c

0 commit comments

Comments
 (0)