<?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 Re: EPIT support IMX6SX in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/EPIT-support-IMX6SX/m-p/442889#M68095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you have to make any changes to clock setup in Clock Controller Module to get 66 MHz as source clock for EPIT?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Dec 2015 07:25:24 GMT</pubDate>
    <dc:creator>zvonimirmandi_</dc:creator>
    <dc:date>2015-12-10T07:25:24Z</dc:date>
    <item>
      <title>EPIT support IMX6SX</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/EPIT-support-IMX6SX/m-p/442886#M68092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;BR /&gt;I'm starting developing an application on an imx6sx-sabre-sd like board. I need to collect data from an adc converter every 3microseconds through using an SPI connection. &lt;BR /&gt;My kernel version is linux 3.10.53. I've already read this thread: &lt;A _jive_internal="true" data-containerid="2004" data-containertype="14" data-objectid="355213" data-objecttype="1" href="https://community.nxp.com/thread/355213"&gt;GPT as system timer, EPIT as user timer&lt;/A&gt;, but the boot will hang at "Starting Kernel...".&lt;/P&gt;&lt;P&gt;I've also tried to use the timer linux has to offer, but they really can't meet the requirements i need.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing something obvious?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can find attached the patch I made based on the thread i quoted, and the u-boot log.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: &lt;BR /&gt;I actually made the EPIT working by deleting every reference to one of the epit timers in clk-imx6sx.c. Now i can see the timer ticking downward to 0 and then reset to the value in the LR Register. I also enabled the OCIEN bit in the epit.c. Still I cannot seem to generate an interrupt as the gpio I'm trying to drive is not toggling. Also if I use memtool on the address 0x20d4000 (the epit2 register) I can see that the OCIEN bit is disabled. I'll keep digging into it and edit if I have new informations.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336156"&gt;0001-Add-epit-timer-support.patch.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336156"&gt;u-boot-log.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 10:17:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/EPIT-support-IMX6SX/m-p/442886#M68092</guid>
      <dc:creator>alancasinelli</dc:creator>
      <dc:date>2015-11-25T10:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: EPIT support IMX6SX</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/EPIT-support-IMX6SX/m-p/442887#M68093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you identified if the OCIEN bit is just not modified or maybe some other process changed it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Alejandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 18:31:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/EPIT-support-IMX6SX/m-p/442887#M68093</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2015-12-03T18:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: EPIT support IMX6SX</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/EPIT-support-IMX6SX/m-p/442888#M68094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Sorry for the late reply, but I still haven't figured it out. Since I had a very limited time to debug the source code, I decided to move the time critical section of my application to the m4 core. Once I'll have enough spare time to test it, I'll update the post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 13:27:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/EPIT-support-IMX6SX/m-p/442888#M68094</guid>
      <dc:creator>alancasinelli</dc:creator>
      <dc:date>2015-12-09T13:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: EPIT support IMX6SX</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/EPIT-support-IMX6SX/m-p/442889#M68095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you have to make any changes to clock setup in Clock Controller Module to get 66 MHz as source clock for EPIT?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 07:25:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/EPIT-support-IMX6SX/m-p/442889#M68095</guid>
      <dc:creator>zvonimirmandi_</dc:creator>
      <dc:date>2015-12-10T07:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: EPIT support IMX6SX</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/EPIT-support-IMX6SX/m-p/442890#M68096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, i did. &lt;BR /&gt;I had to change the perclk_clk_sel bit in order to switch from the osc (24MHz) to the ipg_clk. The bit is located in the CCM_CSCMR1 register. &lt;BR /&gt;The file is arch/arm/mach-imx/clk-imx6sx.c. Edit the line:&lt;SPAN style="font-family: HelveticaLTStd-Bold; font-size: 16pt; color: #000000;"&gt;&lt;BR style="text-align: -webkit-auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;/* set perclk to from OSC */&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;imx_clk_set_parent(clks[IMX6SX_CLK_PERCLK_SEL], clks[IMX6SX_CLK_OSC]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* set perclk to from IPG */&lt;/P&gt;&lt;P&gt;imx_clk_set_parent(clks[IMX6SX_CLK_PERCLK_SEL], clks[IMX6SX_CLK_IPG]);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 11:33:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/EPIT-support-IMX6SX/m-p/442890#M68096</guid>
      <dc:creator>alancasinelli</dc:creator>
      <dc:date>2015-12-11T11:33:32Z</dc:date>
    </item>
  </channel>
</rss>

