<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Interrupt Handling in PowerQUICC Processors</title>
    <link>https://community.nxp.com/t5/PowerQUICC-Processors/Interrupt-Handling/m-p/624498#M1763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Can any one help in handling INTERRUPTS in MPC8323E-RDB Board.? I am using a PC with Ubuntu 8.10 with the kernel 2.6.27. I am loading a kernel image of version 2.6.20.6 into my development board. I am trying to writing a device driver for an external uart XR16L784 and able to access data read and write without IRQ Handler. Now I want to add IRQ Handler to access data in and out. I written a small piece of handler code but control is not going into IRQ Handler. Are there any settings required on either processor or external Uart side to set interrupts.? How to enable external interrupts in processor.? How to know my handler is called or not.? I already enabled interrupts in Uart control registers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; font-size: 14px;"&gt;Please, respond as soon as possible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;Thanks and Regards,&lt;/P&gt;&lt;P style="border: 0px;"&gt;Siva Prakash Reddy Narreddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Apr 2017 04:38:23 GMT</pubDate>
    <dc:creator>narreddisivapra</dc:creator>
    <dc:date>2017-04-19T04:38:23Z</dc:date>
    <item>
      <title>Interrupt Handling</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/Interrupt-Handling/m-p/624498#M1763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Can any one help in handling INTERRUPTS in MPC8323E-RDB Board.? I am using a PC with Ubuntu 8.10 with the kernel 2.6.27. I am loading a kernel image of version 2.6.20.6 into my development board. I am trying to writing a device driver for an external uart XR16L784 and able to access data read and write without IRQ Handler. Now I want to add IRQ Handler to access data in and out. I written a small piece of handler code but control is not going into IRQ Handler. Are there any settings required on either processor or external Uart side to set interrupts.? How to enable external interrupts in processor.? How to know my handler is called or not.? I already enabled interrupts in Uart control registers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; font-size: 14px;"&gt;Please, respond as soon as possible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;Thanks and Regards,&lt;/P&gt;&lt;P style="border: 0px;"&gt;Siva Prakash Reddy Narreddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 04:38:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/Interrupt-Handling/m-p/624498#M1763</guid>
      <dc:creator>narreddisivapra</dc:creator>
      <dc:date>2017-04-19T04:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt Handling</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/Interrupt-Handling/m-p/624499#M1764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;I can see the following interrupts on the MPC8323RDB board:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;~ # cat /proc/interrupts&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CPU0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;16:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 165&amp;nbsp;&amp;nbsp; IPIC&amp;nbsp;&amp;nbsp; Level&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serial&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;18:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; IPIC&amp;nbsp;&amp;nbsp; Level&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i2c-mpc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;19:&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0&amp;nbsp;&amp;nbsp; IPIC&amp;nbsp;&amp;nbsp; Level&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ehci_hcd:usb1, ohci_hcd:usb2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;20:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13837&amp;nbsp;&amp;nbsp; QEIC&amp;nbsp;&amp;nbsp; Level&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tdm&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;21:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; QEIC&amp;nbsp;&amp;nbsp; Level&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UCC Geth&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;22:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; QEIC&amp;nbsp;&amp;nbsp; Level&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mpc83xx_spi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;34:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; QEIC&amp;nbsp;&amp;nbsp; Level&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UCC Geth&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;Look at recommendations below for the MPC823x_RDB LTIB Linux BSP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;Linux makes no difference between external and internal interrupts. All interrupts in the system are handled by the same Linux API. If this API didn't work, no driver in the system would be able to operate, not just your customer's module.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;The customer is attempting to request an IRQ by the resource number which is generally incorrect. The resource number is an index to irq_desc table. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;This index is generally _not_equal to the hardware IRQ line number. See Documentation/IRQ.txt for explanation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;To request an IRQ line in a proper way, the customer should:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; Declare the IRQ properly in the DTS. Refer to /Documentation/powerpc/booting-without-of.txt for details. The value of the "interrupt" &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;property is calculated by the following&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp; formula:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp; [DTS_interrupt_number] = ([EIVPR/IIVPR_addr] - [Interrupt_Source_Configuration_Registers_Base]) / 0x20 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where [EIVPR/IIVPR_addr] is the address of the interrupt configuration registers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; of the IRQ being declared, [Interrupt_Source_Configuration_Registers_Base]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is 0x50000 for P1010&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;OL start="2"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; Request the interrupt property from the Open Firmware in the driver.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL start="3"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; Map the interrupt to the resource ID. This can be done by of_irq_to_resource() or by irq_of_parse_and_map().&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;OL start="4"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; Request the interrupt by the resource number.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;All steps above are performed by _any_ device driver in the system. Just look how it is done in e.g. drivers/net/gianfar.c or&amp;nbsp; drivers/spi/fsl_espi.c &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;and do the same in your code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;Look at also attached file. It is common method for interrupt handling under Linux.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;Check your code using this document.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;Look at also simple standalone example for external interrupt for the MPC83xx in the attached file..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 06:14:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/Interrupt-Handling/m-p/624499#M1764</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2017-04-20T06:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt Handling</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/Interrupt-Handling/m-p/624500#M1765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for valuable reply. Can I directly edit the .dts file and how to build this modified dts file.? I am adding device driver for external device which is memory mapped to different location other than what the location mentioned in soc node in .dts file, then how can I add the node in dts file for external device.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, rectify all the above mentioned doubts as soon as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Thanks and Regards,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Siva Prakash Reddy Narreddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 10:53:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/Interrupt-Handling/m-p/624500#M1765</guid>
      <dc:creator>narreddisivapra</dc:creator>
      <dc:date>2017-04-20T10:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt Handling</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/Interrupt-Handling/m-p/624501#M1766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello please respond as soon as possible to the above query and also this query too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why should I need to map IRQ num to virtual IRQ num.? All the materials I gone through, saying that use "request_irq()" directly. Can you please, explain this differentiation clearly and suggest related documents or Links.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, Respond as soon as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Siva Prakash Reddy N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2017 10:32:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/Interrupt-Handling/m-p/624501#M1766</guid>
      <dc:creator>narreddisivapra</dc:creator>
      <dc:date>2017-05-29T10:32:41Z</dc:date>
    </item>
  </channel>
</rss>

