This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Modify interrupt priority for some gpio on jacinto 6

In order to reduce gpio interrupt latency for a performance demanding service I'd like to try to modifie interrupt priority for some gpio. Is it possible and how ?

I'm currently using kernel Linux® 3.8.13 from Android JellyBean 4.3  http://www.omappedia.org/wiki/6AJ.1.3_Release_Notes

  • Hi Paolo,

    For some old DaVinci devices (like DM64x) which are based on linux kernel 2.6.x there is special place for the irq priority set up:

    linux-kernel/arch/arm/mach-davinci/dm646x.c

    /* FIQ are pri 0-1; otherwise 2-7, with 7 lowest priority */
    static u8 dm646x_default_priorities[DAVINCI_N_AINTC_IRQ] = {
    [IRQ_DM646X_VP_VERTINT0] = 7,
    [IRQ_DM646X_VP_VERTINT1] = 7,
    [IRQ_DM646X_VP_VERTINT2] = 7,
    ...............
    [IRQ_DM646X_GPIO0] = 7,
    [IRQ_DM646X_GPIO1] = 7,
    [IRQ_DM646X_GPIO2] = 7,
    [IRQ_DM646X_GPIO3] = 7,
    [IRQ_DM646X_GPIO4] = 7,
    [IRQ_DM646X_GPIO5] = 7,
    [IRQ_DM646X_GPIO6] = 7,
    [IRQ_DM646X_GPIO7] = 7,
    [IRQ_DM646X_GPIOBNK0] = 7,
    [IRQ_DM646X_GPIOBNK1] = 7,
    [IRQ_DM646X_GPIOBNK2] = 7,
    [IRQ_DM646X_DDRINT] = 7,
    [IRQ_DM646X_AEMIFINT] = 7,
    [IRQ_COMMTX] = 7,
    [IRQ_COMMRX] = 7,
    [IRQ_EMUINT] = 7,
    };

    I am not sure regarding J6 3.8.13. You can make a search for something similar.

    Otherwise you should increase/decrease the priority of interrupt by writing registers at the IRQ controller of the J6 device.

    BR
    Pavel