Skip to content

Commit

Permalink
include: rtos: interrupt.h: simplify interrupt_get_irq macro logic
Browse files Browse the repository at this point in the history
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 <laurentiu.mihalcea@nxp.com>
  • Loading branch information
LaurentiuM1234 authored and dbaluta committed Aug 20, 2024
1 parent 9e9e67c commit 2e39952
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zephyr/include/rtos/interrupt.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2e39952

Please sign in to comment.