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

soc: arm: nxp_s32: s32k1: improve code cache init #66161

Merged
merged 2 commits into from
Dec 8, 2023
Merged

soc: arm: nxp_s32: s32k1: improve code cache init #66161

merged 2 commits into from
Dec 8, 2023

Conversation

manuargue
Copy link
Member

@manuargue manuargue commented Dec 5, 2023

This is a follow up for the changes just merged as a hotfix in #66148.

Currently, Code Cache cannot be enabled because its initialization is guarded by Kconfig options which depend on CPU core caches and this is not the case for S32K1xx devices. Hence, introduce a SoC-specific Kconfig option, selected by default, to enable it.

Additionally, use the HAL cache driver to initialize the Code Cache.

@zephyrbot
Copy link
Collaborator

zephyrbot commented Dec 5, 2023

The following west manifest projects have been modified in this Pull Request:

Name Old Revision New Revision Diff
hal_nxp zephyrproject-rtos/hal_nxp@d0c424e zephyrproject-rtos/hal_nxp@1b2f360 (master) zephyrproject-rtos/[email protected]

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@zephyrbot zephyrbot added manifest manifest-hal_nxp DNM This PR should not be merged (Do Not Merge) labels Dec 5, 2023
dleach02
dleach02 previously approved these changes Dec 5, 2023
@dleach02 dleach02 assigned manuargue and unassigned dleach02 Dec 5, 2023
iuliana-prodan
iuliana-prodan previously approved these changes Dec 5, 2023
bperseghetti
bperseghetti previously approved these changes Dec 7, 2023
Currently Code Cache cannot be enabled because its initialization is
guarded by Kconfig options which depend on CPU core cache support,
but S32K14x devices has a SoC specific L1 cache controller. Hence,
introduce a SoC-specific symbol to enable Code Cache.

Note that the cache controller is not available for S32K11x devices.

Signed-off-by: Manuel Argüelles <[email protected]>
Use the HAL cache driver to initialize the Code Cache.

Signed-off-by: Manuel Argüelles <[email protected]>
@zephyrbot zephyrbot removed the DNM This PR should not be merged (Do Not Merge) label Dec 7, 2023
@fabiobaltieri fabiobaltieri merged commit 0ee6632 into zephyrproject-rtos:main Dec 8, 2023
20 of 21 checks passed
@manuargue manuargue deleted the manuargue-s32k1-code-cache branch December 8, 2023 11:49
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