mirror of https://github.com/thesofproject/sof.git
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:
parent
fcf6c8c416
commit
ee9283c159
|
@ -45,8 +45,12 @@ struct notifier {
|
||||||
void (*cb)(int message, void *cb_data, void *event_data);
|
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) \
|
#define NOTIFIER_CLK_CHANGE_ID(clk) \
|
||||||
((clk) == CLK_SSP ? NOTIFIER_ID_SSP_FREQ : NOTIFIER_ID_CPU_FREQ)
|
((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);
|
struct notify **arch_notify_get(void);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue