Skip to content

soc: wch: Deduplicate common files across ch32v socs #90007

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions soc/wch/ch32v/ch32v00x/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_sources(
soc_irq.S
vector.S
../common/soc_irq.S
../common/qingke_v2x/vector.S
)

zephyr_include_directories(.)
20 changes: 0 additions & 20 deletions soc/wch/ch32v/ch32v00x/soc_irq.S

This file was deleted.

File renamed without changes.
4 changes: 2 additions & 2 deletions soc/wch/ch32v/qingke_v2a/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_sources(
soc_irq.S
vector.S
../common/soc_irq.S
../common/qingke_v2x/vector.S
)

zephyr_include_directories(.)
29 changes: 0 additions & 29 deletions soc/wch/ch32v/qingke_v2a/vector.S

This file was deleted.

4 changes: 2 additions & 2 deletions soc/wch/ch32v/qingke_v4b/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_sources(
soc_irq.S
vector.S
../common/soc_irq.S
../common/qingke_v4/vector.S
)

zephyr_include_directories(.)
19 changes: 0 additions & 19 deletions soc/wch/ch32v/qingke_v4b/soc_irq.S

This file was deleted.

32 changes: 0 additions & 32 deletions soc/wch/ch32v/qingke_v4b/vector.S

This file was deleted.

4 changes: 2 additions & 2 deletions soc/wch/ch32v/qingke_v4c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_sources(
soc_irq.S
vector.S
../common/soc_irq.S
../common/qingke_v4/vector.S
)

zephyr_include_directories(.)
19 changes: 0 additions & 19 deletions soc/wch/ch32v/qingke_v4c/soc_irq.S

This file was deleted.

4 changes: 2 additions & 2 deletions soc/wch/ch32v/qingke_v4f/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_sources(
soc_irq.S
vector.S
../common/soc_irq.S
../common/qingke_v4/vector.S
)

zephyr_include_directories(.)
4 changes: 2 additions & 2 deletions soc/wch/ch32v/qingke_v4f/pinctrl_soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* @brief Type to hold a pin's pinctrl configuration.
*/
struct ch32v303_pinctrl_soc_pin {
struct ch32v30x_pinctrl_soc_pin {
uint32_t config: 22;
bool bias_pull_up: 1;
bool bias_pull_down: 1;
Expand All @@ -21,7 +21,7 @@ struct ch32v303_pinctrl_soc_pin {
uint8_t slew_rate: 2;
};

typedef struct ch32v303_pinctrl_soc_pin pinctrl_soc_pin_t;
typedef struct ch32v30x_pinctrl_soc_pin pinctrl_soc_pin_t;

#define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \
{ \
Expand Down
19 changes: 0 additions & 19 deletions soc/wch/ch32v/qingke_v4f/soc_irq.S

This file was deleted.

32 changes: 0 additions & 32 deletions soc/wch/ch32v/qingke_v4f/vector.S

This file was deleted.