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.

8168 GPMC as interrupt pin

Hello

                  we are using 8168 ic and we are using pin GPMC_A27/GP0[20] as interrupt pin for octal device (xr16l788) but we are not able to get the interrupt in ISR. what will be the problem.

Regards

Asif

  • Hi Asif,

    Are you using EZSDK? If yes, make sure you are on the latest one 5.05. What is the value of your PINCTRL233 register (at address 0x48140BA0) ?

    Please have a look in this wiki:

    http://processors.wiki.ti.com/index.php/Configuring_GPIO_Interrupts

    Regards,

    Pavel

  • Hi Pavel

    we are using DVRRDK version  DM8168_DVRRDK_V03.00.00.00.

    pin = 20;

                    gpio_direction_output(pin, 0x1);
                    gpio_export(pin,true);
                    status = gpio_get_value(pin);
                    printk("status = %d\n",status);

                    irq = gpio_to_irq(pin);
                    if(irq < 0)
                    {
                     printk("error irq =%d\n",irq);
                     gpio_free(pin);
                    }
                    else
                    {
                     printk("success gpio_to_irq  irq = %d\n",irq);
                     XR788_IRQ = irq;
                    }

                     set_irq_type(irq,IRQ_TYPE_EDGE_FALLING);

                     ret = request_irq(up->port.irq, serialxr788_interrupt,IRQF_SHARED, "xrserial", i);

    Regards

    Asif