Skip to content
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

boards: nrf54h20: refactor MRAM board level code #2115

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gmarull
Copy link
Member

@gmarull gmarull commented Oct 15, 2024

Move code to soc level, also refactor it a bit. This makes sure this setting is applied regardless of the board.

@@ -38,8 +38,6 @@ config NRFS
bool "nRF Services Support"
select NRFS_LOCAL_DOMAIN if (SOC_NRF54H20_CPUAPP || SOC_NRF54H20_CPURAD || SOC_NRF9280_CPUAPP || SOC_NRF9280_CPURAD)
depends on HAS_NRFS
depends on !MISRA_SANE
Copy link
Contributor

@57300 57300 Oct 15, 2024

Choose a reason for hiding this comment

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

Do you know if this is addressed? #1856 (comment)

(if not, maybe it should've been taken upstream)

Copy link
Member Author

Choose a reason for hiding this comment

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

If that's the case then this needs to be upstreamed.

Copy link
Member Author

Choose a reason for hiding this comment

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

I've tested with the option and I'm able to compile successfully, maybe it's not a problem anymore?

soc/nordic/nrf54h/Kconfig Outdated Show resolved Hide resolved
soc/nordic/nrf54h/mram.c Outdated Show resolved Hide resolved
soc/nordic/nrf54h/mram.c Outdated Show resolved Hide resolved
Copy link
Contributor

@hubertmis hubertmis left a comment

Choose a reason for hiding this comment

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

This module should be hooked up with pm_policy_latency_changed_subscribe() instead of SYS_INIT(). But I understand, this comes in future PRs.

@gmarull gmarull force-pushed the 54h20-no-board-code branch 2 times, most recently from da027be to db06f4d Compare November 4, 2024 16:31
@gmarull gmarull added this to the ncs-2.8.0 milestone Nov 4, 2024
gmarull and others added 2 commits November 7, 2024 12:48
… DK"

This reverts commit 38f2104.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
Turn off suspending MRAM for nRF54H20 SoC.
This change is required so sections of code depending on critical
timings will not have unacceptable latency.

Signed-off-by: Jan Zyczkowski <[email protected]>
Signed-off-by: Gerard Marull-Paretas <[email protected]>
(cherry picked from commit 58284ff)
(cherry picked from commit 9b6cae8)
(cherry picked from commit 2c2f60d)
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.

8 participants