Skip to content

[FEATURE][Zephyr] Move all hw init code from platform_init() to Zephyr #5602

@kv2019i

Description

@kv2019i

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ZephyrIssues only observed with Zephyr integratedenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions