ls1046a how to use IRQ0~11 in kernel?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ls1046a how to use IRQ0~11 in kernel?

2,051 Views
Rainight
Contributor III

RCW

         Rainight_0-1645169341242.png

Reference Mamnul

    Rainight_1-1645169422937.png

DTS

     Rainight_2-1645169597010.png

I want to known How to use IRQ0~11 in kernel module independly without "of function"?

and I use follwed code , but all failed。

 

        irq = 167;
        //irq = 167 - 32;
        //irq = 3;
        //no = irq_create_mapping(NULL, irq);
        irq_set_irq_type(irq , IRQ_TYPE_LEVEL_LOW);
        ret = request_irq(irq, irq_data_handle, IRQF_SHARED, "irqdata", &self);

 

 

Tags (2)
0 Kudos
Reply
2 Replies