mirror of https://github.com/thesofproject/sof.git
zephyr: interrupt.h: conditionally include drivers/interrupt.h
NXP's i.MX8 and Intel's CAVS are the only platforms using Zephyr that also require the usage of drivers/interrupt.h. Since for i.MX8 platforms drivers/interrupt.h is included through xtos/rtos/interrupt.h, add a macro guard around the inclusion of drivers/interrupt.h which will allow the other Zephyr platforms (i.e: NXP's i.MX93 and Intel's ACE) to finally remove the SOF-specific drivers/interrupt.h. This is desired because the platforms should only rely on the Zephyr interrupt support instead of having to use a hybrid between Zephyr and SOF interrupt support. Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
This commit is contained in:
parent
3de7b96566
commit
17844811db
|
@ -19,9 +19,11 @@
|
|||
|
||||
#include <sof/trace/trace.h>
|
||||
|
||||
#ifdef CONFIG_CAVS
|
||||
/* to be removed once driver upstream in Zephyr */
|
||||
#define __SOF_DRIVERS_INTERRUPT_H__
|
||||
#include <platform/drivers/interrupt.h>
|
||||
#endif /* CONFIG_CAVS */
|
||||
|
||||
extern struct tr_ctx zephyr_tr;
|
||||
|
||||
|
|
Loading…
Reference in New Issue