Hi, It seems that these definitions were taken from the imx6q reference manual (or compatible derivative). The interrupt table there has three columns: irq number, source (module/ip block) and description(/function). Some sources have more than one interrupt line.
The definition in Nuttx uses only the source of the irq, not the function. The description from the table went into the comment. So instead of removing definitions, they should be extended with the info from the comments to distinguish between them. Note that this file is called imx6/irq.h but is not valid for all devices in the imx6 line. It probably started with the first popular one in the family (imx6q), but later additions (like imx6ul) have different irq assignments. You can create an account on the NXP website to download the reference manuals. Cheers, Maarten Op di 7 apr 2026 21:30 schreef Peter Barada <[email protected]>: > Looking through nuttx/arch/arm/include/imx.h, I see the following > symbols definitions that cause redefinition warnings: > > #define IMX_IRQ_VPU 35 /* JPEG codec interrupt request */ > #define IMX_IRQ_VPU 44 /* VPU interrupt request */ > ... > #define IMX_IRQ_IPU2 39 /* IPU2 error interrupt request */ > #define IMX_IRQ_IPU2 40 /* IPU2 sync interrupt request */ > ... > #define IMX_IRQ_SNVS 36 /* PMIC power off request */ > #define IMX_IRQ_SNVS 51 /* SRTC consolidated interrupt */ > #define IMX_IRQ_SNVS 52 /* SRTC security interrupt */ > > Which single definitions should be removed, 35 for IMX_IRQ_VPU, 39 for > IMX_IRQ_IPU2, 36&51 for IMX_IRQ_SNVS? > > -- > Peter Barada > [email protected] >
