From 2e39952d4b7b855b3b85b02c3bf045b15eb467b3 Mon Sep 17 00:00:00 2001 From: Laurentiu Mihalcea Date: Mon, 19 Aug 2024 15:05:39 +0300 Subject: [PATCH] include: rtos: interrupt.h: simplify `interrupt_get_irq` macro logic The imx-related macro logic from `interrupt_get_irq` can be simplified. Now that `CONFIG_IMX93_A55` selects `CONFIG_IMX`, `interrupt_get_irq` should return the INTID for all imx platforms except for imx8m, which is yet to be transitioned to zephyr native drivers. Signed-off-by: Laurentiu Mihalcea --- zephyr/include/rtos/interrupt.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zephyr/include/rtos/interrupt.h b/zephyr/include/rtos/interrupt.h index 45ee4a1aa758..50dee3c9a37e 100644 --- a/zephyr/include/rtos/interrupt.h +++ b/zephyr/include/rtos/interrupt.h @@ -49,8 +49,7 @@ static inline void interrupt_unregister(uint32_t irq, const void *arg) static inline int interrupt_get_irq(unsigned int irq, const char *cascade) { #if defined(CONFIG_LIBRARY) || defined(CONFIG_ACE) || defined(CONFIG_CAVS) || \ - defined(CONFIG_ZEPHYR_POSIX) || defined(CONFIG_ARM64) || \ - defined(CONFIG_IMX8) || defined(CONFIG_IMX8X) || defined(CONFIG_IMX8ULP) + defined(CONFIG_ZEPHYR_POSIX) || (defined(CONFIG_IMX) && !defined(CONFIG_IMX8M)) return irq; #else if (cascade == irq_name_level2)