Skip to content

Conversation

@soburi
Copy link
Member

@soburi soburi commented Nov 4, 2022

Adds support for GD32 timer

Note: It not supporting RISC-V(GD32V) device at this time.
It needs some work on the interrupt controller first.

Signed-off-by: TOKITA Hiroshi [email protected]


The first 3 commits fix clock_control_gd32.
ied with the GD32F407-START board. The other boards checked compilation only.

@cameled
Copy link
Contributor

cameled commented Nov 5, 2022

For the CI failure, commit 7d3fdff should contain a change description block. more commit-guidelines

@soburi
Copy link
Member Author

soburi commented Nov 5, 2022

For the CI failure, commit 7d3fdff should contain a change description block. more commit-guidelines

Thank you for notification.
I corrected it.

@soburi soburi requested a review from cameled November 6, 2022 05:07
@soburi soburi force-pushed the gd32_timer branch 2 times, most recently from bfc0326 to 33a432d Compare November 6, 2022 05:50
@cameled cameled added this to the v3.3.0 milestone Nov 16, 2022
@soburi soburi force-pushed the gd32_timer branch 3 times, most recently from 80812dd to 0f90ca2 Compare November 18, 2022 04:26
@soburi soburi mentioned this pull request Nov 18, 2022
55 tasks
Copy link
Contributor

@cameled cameled left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some function name need update, others look good for me.

cameled
cameled previously approved these changes Nov 21, 2022
Copy link
Contributor

@cameled cameled left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@cameled
Copy link
Contributor

cameled commented Nov 28, 2022

@nandojve @nordic-krch Please help to review this PR.

@nandojve
Copy link
Member

nandojve commented Dec 4, 2022

Hi @soburi ,
Please, rebase.

RCU_CFG1_TIMERSEK_MSK -> RCU_CFG1_TIMERSEL_MSK

Signed-off-by: TOKITA Hiroshi <[email protected]>
DT_COMPAT_GET_ANY_STATUS_OKAY is not suited for the node's existing check.
(This macro returns the stem of the DTS macro name,
 the stem part is not a defined symbol.)
Instead, it should use the DT_HAS_COMPAT_STATUS_OKAY macro.

Signed-off-by: TOKITA Hiroshi <[email protected]>
The timer_ids contain timers that belong to any bus.
So, It should recognize with entire id, not only the CLOCK_ID_BIT part.

Signed-off-by: TOKITA Hiroshi <[email protected]>
Adds support for GD32 timer

Note: Currently, it is not supporting RISC-V(GD32V) devices.
It needs some work on the interrupt controller first.

Signed-off-by: TOKITA Hiroshi <[email protected]>
Add line to yaml for supporting counter

Signed-off-by: TOKITA Hiroshi <[email protected]>
Add support for boards that implements the GD32 SoCs.

Signed-off-by: TOKITA Hiroshi <[email protected]>
@soburi
Copy link
Member Author

soburi commented Dec 6, 2022

Hi @nandojve
Rebase done. Thank you for notification.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't there be (void)? Same as line below?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing out.
I fixed it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name of the variable (now) sounds a bit missleading.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to compare

Add support for boards that implements the GD32 SoCs.

Signed-off-by: TOKITA Hiroshi <[email protected]>
@carlescufi carlescufi merged commit e965db9 into zephyrproject-rtos:main Dec 12, 2022
@soburi soburi deleted the gd32_timer branch December 21, 2022 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants