Skip to content

platform: imx93_a55: select CONFIG_IMX#9373

Merged
dbaluta merged 4 commits intothesofproject:mainfrom
LaurentiuM1234:fix/imx93_select_imx
Aug 20, 2024
Merged

platform: imx93_a55: select CONFIG_IMX#9373
dbaluta merged 4 commits intothesofproject:mainfrom
LaurentiuM1234:fix/imx93_select_imx

Conversation

@LaurentiuM1234
Copy link
Contributor

imx93_a55 is an imx platform so it should select CONFIG_IMX. As such, make CONFIG_IMX93_A55 also select CONFIG_IMX. Since CONFIG_IMX has 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).

`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 dbaluta merged commit 2e39952 into thesofproject:main Aug 20, 2024
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.

3 participants