platform: imx93_a55: select CONFIG_IMX#9373
Merged
dbaluta merged 4 commits intothesofproject:mainfrom Aug 20, 2024
Merged
Conversation
`CONFIG_COMPILER_WORKAROUND_CACHE_ATTR` is only applicable to xtensa-based platforms. As such, add dependency on `CONFIG_XTENSA`. Additionally, `CONFIG_IMX` should be selected by all imx platforms. Since not all imx platforms are xtensa-based, make sure `COMPILER_WORKAROUND_CACHE_ATTR` is selected only for those platforms. Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
On 64-bit platforms, size_t may be 64-bit. As such, change the "%u" format to "%zu" as done in commit faf725a ("Use %zu format for printing size_t variables"). Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
i.MX93 is an IMX platform so its config (i.e: `CONFIG_IMX93_A55`) should also select `CONFIG_IMX`. Additionally, xtensa-based imx platforms have the heap placed in the ".heap_mem" section, while arm-based imx platforms have the heap placed inside the .bss section. As such, fix the macro-based logic inside `zephyr/lib/alloc.c` to account for this. Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
The imx-related macro logic from `interrupt_get_irq` can be simplified. Now that `CONFIG_IMX93_A55` selects `CONFIG_IMX`, `interrupt_get_irq` should return the INTID for all imx platforms except for imx8m, which is yet to be transitioned to zephyr native drivers. Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
dbaluta
approved these changes
Aug 19, 2024
lyakh
approved these changes
Aug 20, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
imx93_a55 is an imx platform so it should select
CONFIG_IMX. As such, makeCONFIG_IMX93_A55also selectCONFIG_IMX. SinceCONFIG_IMXhas only been used for xtensa-based imx platforms, make necessary changes for it to also work on arm-based imx platforms (i.e: imx93_a55).