AnsweredAssumed Answered

How to request a irq for s32v?

Question asked by huang zhong on Dec 11, 2017
Latest reply on Dec 12, 2017 by Cezar Dobromir

I have problem in requesting a irq for s32v, I don't konw the first parameter in s32v should be, for example I want to set the PA0 port to be a irq function, and I user the following code:


   volatile struct SIUL2_tag *Siul2_Reg = NULL;
   Siul2_Reg = ioremap((uintptr_t)&SIUL2, sizeof(struct SIUL2_tag));

   //PA0 irq
   Siul2_Reg->MSCR[590].B.MUX_MODE = 2; // interrupt mux mode selected


   // PA0 (the pad is )

   ret = request_irq(???, PA0_interrupt_handle, IRQF_TRIGGER_FALLING, "PA0_IRQ", NULL);
      printk("request_irq failed!\n");
      return -1;



   the "???" should be? could you tell me how to fill it in a simple case.


         Look forward to your answer , thank you very much!