<?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>i.MX ProcessorsのトピックRe: how to config the sdma to use the external event0 to triggle an interrupt</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/how-to-config-the-sdma-to-use-the-external-event0-to-triggle-an/m-p/849858#M130046</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &amp;nbsp;玲 贾&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can look on&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/454008"&gt;SDMA external request and EIM&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://billauer.co.il/blog/2011/10/imx-sdma-howto-events-interrupts" title="http://billauer.co.il/blog/2011/10/imx-sdma-howto-events-interrupts"&gt;Freescale i.MX51 SDMA tutorial (part III)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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>Wed, 25 Jul 2018 23:10:12 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2018-07-25T23:10:12Z</dc:date>
    <item>
      <title>how to config the sdma to use the external event0 to triggle an interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/how-to-config-the-sdma-to-use-the-external-event0-to-triggle-an/m-p/849857#M130045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working on a iMX6Q board with SDMA and external hardware events. There are two external event lines available: Event 0 and Event 1. (and their alternates), I want to use event 0 to triggle a interrupt to start copy data from fpga to mcu memory through weim bus. I have verified that the pin is connected (using GPIO) and that the external trigger signal arrives on the chip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;int dts as:&lt;BR /&gt; dmas = &amp;lt;&amp;amp;sdma 14 12 0&amp;gt;;&lt;BR /&gt; dma-names = "rx";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;in my driver:&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt; dma_cap_zero(dma_m2m_mask);&lt;BR /&gt; dma_cap_set(DMA_SLAVE, dma_m2m_mask);&lt;BR /&gt; dma_m2m_chan = dma_request_slave_channel(&amp;amp;pdev-&amp;gt;dev, "rx");&lt;BR /&gt; if (!dma_m2m_chan) {&lt;BR /&gt; printk("dma request failed\n");&lt;BR /&gt; }&lt;BR /&gt; printk("dma_m2m_chan.channel=%d\n", dma_m2m_chan-&amp;gt;chan_id);&lt;BR /&gt; dma_m2m_config.direction = DMA_DEV_TO_MEM;&lt;BR /&gt; dma_m2m_config.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;&lt;BR /&gt; dma_m2m_config.src_addr = 0x08000000;&lt;/P&gt;&lt;P&gt;dmaengine_slave_config(dma_m2m_chan, &amp;amp;dma_m2m_config);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my question is:&lt;BR /&gt;1.how to config the sdma to use the external event0 to triggle an interrupt ?&lt;BR /&gt;2.how to use callback fuction connected to this interrupt?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 05:38:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/how-to-config-the-sdma-to-use-the-external-event0-to-triggle-an/m-p/849857#M130045</guid>
      <dc:creator>jial2012</dc:creator>
      <dc:date>2018-07-25T05:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to config the sdma to use the external event0 to triggle an interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/how-to-config-the-sdma-to-use-the-external-event0-to-triggle-an/m-p/849858#M130046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &amp;nbsp;玲 贾&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can look on&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/454008"&gt;SDMA external request and EIM&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://billauer.co.il/blog/2011/10/imx-sdma-howto-events-interrupts" title="http://billauer.co.il/blog/2011/10/imx-sdma-howto-events-interrupts"&gt;Freescale i.MX51 SDMA tutorial (part III)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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>Wed, 25 Jul 2018 23:10:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/how-to-config-the-sdma-to-use-the-external-event0-to-triggle-an/m-p/849858#M130046</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-07-25T23:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to config the sdma to use the external event0 to triggle an interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/how-to-config-the-sdma-to-use-the-external-event0-to-triggle-an/m-p/849859#M130047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi igorpadykov:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I have see the two part of &lt;A _jive_internal="true" data-containerid="2004" data-containertype="14" data-content-finding="Community" data-objectid="454008" data-objecttype="1" href="https://community.nxp.com/thread/454008"&gt;SDMA external request and EIM&lt;/A&gt; and &lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fbillauer.co.il%2Fblog%2F2011%2F10%2Fimx-sdma-howto-events-interrupts" rel="nofollow" target="_blank"&gt;Freescale i.MX51 SDMA tutorial (part III)&lt;/A&gt; ,but it&amp;nbsp; seems not clear to my question. should I need to write a costom SDMA script to my case? I don't kown how to write a costom assembly code can triggle the SDMA_EXT_EVENT0 signal to an interrupt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I have write to the registers to config the SDMA_EXT_EVENT0,&amp;nbsp; i want to enable event14, but sdmac-&amp;gt;channel=3, and enabled channel is channel 0. please give some guide to my case, thank you very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;tmp1 = readl(imx6_reg_iomux_gpr0)|0x80;&lt;BR /&gt; tmp2 = readl(imx6_reg_iomux_sdma_event14_input)|0x1;&lt;BR /&gt; tmp3 = readl(imx6_reg_iomux_gpio17)|0x3;&lt;/P&gt;&lt;P&gt;writel(tmp1, imx6_reg_iomux_gpr0);&lt;BR /&gt; writel(tmp2, imx6_reg_iomux_sdma_event14_input);&lt;BR /&gt; writel(0x3, imx6_reg_iomux_gpio17);&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 07:46:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/how-to-config-the-sdma-to-use-the-external-event0-to-triggle-an/m-p/849859#M130047</guid>
      <dc:creator>jial2012</dc:creator>
      <dc:date>2018-07-26T07:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to config the sdma to use the external event0 to triggle an interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/how-to-config-the-sdma-to-use-the-external-event0-to-triggle-an/m-p/849860#M130048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; It is the same question with me. Have you solved it please?Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 07:08:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/how-to-config-the-sdma-to-use-the-external-event0-to-triggle-an/m-p/849860#M130048</guid>
      <dc:creator>rclongyunteng</dc:creator>
      <dc:date>2018-08-06T07:08:26Z</dc:date>
    </item>
  </channel>
</rss>

