sof: lib: notifier: Do not break build on platforms without CLK_SSP

Some platforms do not have a SSP clock, so a dummy define for CLK_SSP
and related macros shouldn't be required to exist in order for the
firmware to build.

Signed-off-by: Paul Olaru <paul.olaru@nxp.com>
This commit is contained in:
Paul Olaru 2019-11-22 13:19:09 +02:00 committed by Liam Girdwood
parent fcf6c8c416
commit ee9283c159
1 changed files with 4 additions and 0 deletions

View File

@ -45,8 +45,12 @@ struct notifier {
void (*cb)(int message, void *cb_data, void *event_data);
};
#if defined(CLK_SSP) && defined(NOTIFIER_ID_SSP_FREQ)
#define NOTIFIER_CLK_CHANGE_ID(clk) \
((clk) == CLK_SSP ? NOTIFIER_ID_SSP_FREQ : NOTIFIER_ID_CPU_FREQ)
#else
#define NOTIFIER_CLK_CHANGE_ID(clk) NOTIFIER_ID_CPU_FREQ
#endif
struct notify **arch_notify_get(void);