Skip to content

Conversation

@mstasiaknordic
Copy link
Contributor

Since selectable per-instance configs are removed, allow selecting the general symbol for driver.

Upstream PR #: 96792

Since selectable per-instance configs are removed, allow
selecting the general symbol for driver.

Upstream PR #: 96792

Signed-off-by: Michał Stasiak <[email protected]>
bool "SPIM driver"
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_SPIM))

DT_COMPAT_NORDIC_NRF_SPIS := nordic,nrf-spis
Copy link
Contributor

Choose a reason for hiding this comment

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

Why can't it be passed directly?

Copy link
Contributor

Choose a reason for hiding this comment

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

Comma probably

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also, an alternative to dt_has_compat would be dt_compat_enabled. We allow using NRFX driver if the HW is there (indicated by presence of node with compat) but IMO the node does not have to be enabled

Copy link
Contributor

Choose a reason for hiding this comment

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

I am looking at the definitions of HAS_HW_NRF and I see they use DT_COMPAT_NORDIC_NRF_ without it being defined (probably because of what you sent). Maybe those symbols do not need to be defined?
I will approve anyway; I do not want to block it, but I have a feeling someone might comment on this when we try to merge the collab into main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants