<div><br clear="all">Hi all </div>
<div> </div>
<div>I am trying to use the external interrupts on the Powerpc architecture MPC8542 .</div>
<div> </div>
<div>My  problem is that my driver is trying to request the external <br>interrupt IRQ1, and I dont know what number use in INTR_NUM: <br><br>request_irq(INTR_NUM, , , , ) </div>
<div> </div>
<div>As per the MPC85xx documentation Documentation/powerpc/dts-bindings/fsl/mpic.txt </div>
<div>about the implementation of interrupts virtual numbers </div>
<div>the external interrupt virtual irq number for IRQ1 should be 1</div>
<div> </div>
<div>but when i try to give INTR_NUM ins request_irq as 1 it gives error .</div>
<div> </div>
<div>When i use irq_create_mapping() it gives me output as 16.. and it registers .. but the problem is it is not fixed </div>
<div>neither it gives interrupts .</div>
<div>when i remove and add it registers to some other addresses</div>
<div> </div>
<div>i even tried irq_of_parse_map()</div>
<div> </div>
<div>for_each_node_by_type(np,"interrupt-controller"){</div>
<div>    if(of_device_is_compatible(np,"chrp,open-pic")){</div>
<div>           found=np;</div>
<div>           break;</div>
<div>}</div>
<div>}</div>
<div><br>virq = irq_of_parse_and_map(found, irq);</div>
<div> </div>
<div>this always returns 0</div>
<div>whatever may be the irq value..</div>
<div>as a result the driver gives error for irq 0</div>
<div> </div>
<div><br><br>-- <br>Cheeers<br><br>Deebul !!!!!!<br><br></div>