-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Mcxe247 enable lmem cache #98384
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
base: main
Are you sure you want to change the base?
Mcxe247 enable lmem cache #98384
Conversation
54eba40 to
6425b6f
Compare
drivers/cache/cache_nxp_lmem_cache.c
Outdated
|
|
||
| int cache_instr_invd_range(void *addr, size_t size) | ||
| { | ||
| L1CACHE_InvalidateCodeCacheByRange((uint32_t)addr, size); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: you might want to also caste size to uint32_t since the underlying API defines it this way. Although I'm aware it is unlikely we would be building this for a 64bit platform.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add uint32_t for size.
drivers/cache/cache_nxp_lmem_cache.c
Outdated
| #include <zephyr/logging/log.h> | ||
| #include <fsl_cache.h> | ||
|
|
||
| LOG_MODULE_REGISTER(cache_nxp_lmem_cache, CONFIG_CACHE_LOG_LEVEL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can removed since log is not used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
6425b6f to
e48c53a
Compare
| default y | ||
|
|
||
| # Enable cache management features | ||
| config CACHE_MANAGEMENT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is an initiative to use "configdefault" in this case: 5805685
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to configdefault.
e48c53a to
0378cf0
Compare
0378cf0 to
c84c218
Compare
|
@Holt-Sun lets address the compliance issues, merge conflicts, and twister errors. |
…E24X Select cache_lmem component for MCXE24X devices. This exposes the LMEM cache API needed by the Zephyr driver Signed-off-by: Holt Sun <holt.sun@nxp.com>
Add LMEM cache driver implementing instruction cache ops. Wire driver into cache Kconfig menu and CMake build. Enables I-cache control on SoCs with NXP LMEM controller. Signed-off-by: Holt Sun <holt.sun@nxp.com>
Select CPU_HAS_ICACHE and HAS_MCUX_LMEM_CACHE. Default CACHE_MANAGEMENT=y and select EXTERNAL_CACHE. Prepares MCXE24x to use the LMEM cache driver. Signed-off-by: Holt Sun <holt.sun@nxp.com>
c84c218 to
a8b7c54
Compare
|
|
Hi @nashif , do you see anything that block the merge of this PR? Thank you. |
PR needs get approval from assignee before merge. |
Thank you for the information. |



Enable LMEM cache for MCXE247.