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

zephyr: lib/cpu.h: remove dependency to platform layer #9648

Merged
merged 3 commits into from
Nov 13, 2024

Conversation

kv2019i
Copy link
Collaborator

@kv2019i kv2019i commented Nov 12, 2024

b7598de platform: imx93_a55/imx95: remove lib/cpu.h
634bd11 platform: Intel: remove lib/cpu.h
198c718 zephyr: lib/cpu.h: remove dependency to platform layer

Link: #5794

Remove dependency to platform cpu.h layer for Zephyr targets. The lib/cpu.h
is now common to all SOF targets when building for Zephyr.

Add a note to PLATFORM_PRIMARY_CORE_ID documentation that "primary core"
is a SOF/application convention and not visible in Zephyr OS interfaces.

Core 0 is the boot core in Zephyr, so use this definition as
PLATFORM_PRIMARY_CORE_ID for all SOF targets. This was already the case
in all platform definitions, so no functional change.

In SOF, the primary/secondary distinction is primarily used
in IPC code, together with Zephyr CONFIG_SMP_BOOT_DELAY=y.

Signed-off-by: Kai Vehmanen <[email protected]>
cpu.h definition is no longer needed in platform definitions for
SOF Zephyr builds. Remove for all Intel targets.

Signed-off-by: Kai Vehmanen <[email protected]>
Platform cpu.h no longer needed in Zephyr builds, so remove
these files as obsolete.

Signed-off-by: Kai Vehmanen <[email protected]>
@kv2019i
Copy link
Collaborator Author

kv2019i commented Nov 12, 2024

@thesofproject/nxp I left imx8 family out still from this PR as #9608 is open still.

@kv2019i
Copy link
Collaborator Author

kv2019i commented Nov 13, 2024

sof-docs fail and Intel LNL fails all known and tracked in https://github.com/thesofproject/sof/issues?q=is%3Aissue+is%3Aopen+label%3ACI

@kv2019i kv2019i merged commit 429fa14 into thesofproject:main Nov 13, 2024
44 of 47 checks passed
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.

5 participants