Skip to content

drivers: counter: siwx91x: Enable siwx91x Counter driver #88756

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 1 commit into
base: main
Choose a base branch
from

Conversation

smalae
Copy link
Collaborator

@smalae smalae commented Apr 17, 2025

Enable sleeptimer counter driver for siwx91x device

Enable sleeptimer counter driver for siwx91x device

Signed-off-by: Sai Santhosh Malae <[email protected]>
select SOC_SILABS_SLEEPTIMER
help
Enable the counter driver for Sleep Timer module for Silicon Labs
Gecko chips.

if SOC_FAMILY_SILABS_SIWX91X
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't see why a new Kconfig option needs to be added, the existing one should be sufficient and work for both Series 2 and SiWx91x.

@@ -281,7 +276,9 @@ BUILD_ASSERT((DT_INST_PROP(0, prescaler) > 0U) && (DT_INST_PROP(0, prescaler) <=

static void counter_gecko_0_irq_config(void)
{
IRQ_DIRECT_CONNECT(DT_INST_IRQN(0), DT_INST_IRQ(0, priority), STIMER_IRQ_HANDLER, 0);
IRQ_DIRECT_CONNECT(DT_IRQ(DT_RTC, irq), DT_IRQ(DT_RTC, priority),
Copy link
Collaborator

Choose a reason for hiding this comment

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

The responsibility of interrupt configuration between the Timer and Counter drivers needs to be decided, they shouldn't both configure it.

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.

3 participants