-
Notifications
You must be signed in to change notification settings - Fork 325
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
[FEATURE][Zephyr] Move all hw init code from platform_init() to Zephyr #5602
Comments
see this #5068 (comment) |
Making a v2.2 for Intel platforms. @dbaluta NXP likewise for v2.2 ? |
@dbaluta I don't see any clear overlap in platform/imx8/platform.c where SOF side platform code would be initializing hw that is already handle in Zephyr. IMX8 interrupt handling is one possible item, but I guess this is not overlapping with Zephyr yet (it's really handled on SOF side). Feel free to yet in the task tracking list. |
With #7702 merged, we can now close this. |
Moving this meta item to v2.8. For v2.7, we completed #7896 and start to be completed for Intel targets. |
Is your feature request related to a problem? Please describe.
Much of the HW init code is already ignored in Zephyr builds in the Zephyr main() -> sof_main() -> primary_core_init() -> platform_init() code path, but not all. This work should be completed.
Examples like platform_init_hw() must be moved to Zephyr side and not the SOF definition should not be used when building for Zephyr.
This has created multiple problems for unit tests on Zephyr side (like for cAVS SSP driver, FYI @juimonen ).
Update 2023: this doesn't really affect "pure Zephyr" platforms unless we remove platform.h completely, but that's beyond scope of this item. So I filed #7248 to track the general discussion of platform.h fate and let's use this to track existing issues with HW init code in platform_init() or current hybrid platforms:
The text was updated successfully, but these errors were encountered: