Repository navigation
platform: intel: ace: remove all unnecessary clk.h definitions - #9683
Conversation
There was a problem hiding this comment.
this is a bit confusing. It's used in https://github.com/thesofproject/sof/blob/5389b257519c1fa00873386d94b70825dee04271/zephyr/lib/clk.c#L16 as a size of array, but then lines https://github.com/thesofproject/sof/blob/5389b257519c1fa00873386d94b70825dee04271/zephyr/lib/clk.c#L29-L32 iterate over that array, but using CONFIG_CORE_COUNT as the iteration number? So, e.g. on MTL NUM_CPU_FREQ is set to 2, but it has 3 cores... Same with LNL?
There was a problem hiding this comment.
Thanks @lyakh , this was a good catch. This is mixing number of clocks and number of frequencies (each CPU clock has). Fixed version uploaded now.
Strip all unnecessary definitions from Intel ACE clk.h platform code. Only expose the main DSP clock via the SOF clk.h layer, as required by cpu-clk-manager.c. Signed-off-by: Kai Vehmanen <[email protected]>
5389b25 to
d721f76
Compare
Add a build assert to ensure platform NUM_CLOCKS is set to at least CONFIG_CORE_COUNT. This is assumed to hold in the implementation of platform_clock_init(). Signed-off-by: Kai Vehmanen <[email protected]>
d721f76 to
92a3c29
Compare
|
SOFCI TEST |
Strip all unnecessary definitions from Intel ACE clk.h platform code. Only expose the main DSP clock via the SOF clk.h layer, as required by cpu-clk-manager.c.