-
Notifications
You must be signed in to change notification settings - Fork 349
Description
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:
- remove HW init from Intel cAVS platform