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.

DM355 Interrupt Line on GIO6

Hi All,

 

We have connected a interrupt line from a video device to GIO6 pin of DM355. The video device make the GIO6 pin high when motion is detected but in DM355 there is no interrupt generated(isr is never called).

 

I have done following to use GIO6 as interrupt line.

 

ret = request_irq(IRQ_DM355_GPIO6, vpfe_motion_isr, SA_INTERRUPT,
              "dm355v4l2", (void *)&vpfe_device);
    if (ret < 0) {
        platform_device_unregister(&_vpfe_device);
        driver_unregister(&vpfe_driver);
        /* Free memory for all image buffers */
        for (i = 0; i < VPFE_DEFNUM_FBUFS; i++) {
            free_reserved_pages((unsigned long)
                        vpfe_device.fbuffers[i], fbuf_size);
        }
        free_irq(IRQ_VDINT1, &vpfe_device);
        free_irq(IRQ_VDINT0, &vpfe_device);
        return -1;
    }

 

But I found that the irq hander is never called.

 

Can some tell me how to set the interrupt line for GIO6 on DM355?

 

 -Azam