<?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: Clock sources for timers (i.MX6Q SDP) in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264380#M27210</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="western"&gt;&lt;EM style="font-style: normal;"&gt;CCM_CCSR[pll1_sw_clk_sel] = 0 &lt;EM style="font-style: normal;"&gt;← &lt;/EM&gt;pll1_main_clk(default)&lt;/EM&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;BR /&gt; &lt;/P&gt;&lt;P class="western"&gt;&lt;EM style="font-style: normal;"&gt;CCM_CCOSR = 0x10A0100 ← arm_clk_root&lt;/EM&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;EM style="font-style: normal;"&gt;CCM_CCOSR = 0x82 ← pll1_main_clk / 2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jul 2013 06:39:18 GMT</pubDate>
    <dc:creator>jotes</dc:creator>
    <dc:date>2013-07-12T06:39:18Z</dc:date>
    <item>
      <title>Clock sources for timers (i.MX6Q SDP)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264361#M27191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="western"&gt;Hello everyone!&lt;/P&gt;&lt;P class="western"&gt;&lt;/P&gt;&lt;P class="western"&gt;I have 2 questions related to clock sources on i.MX6Q SDP. I'm using L3.0.35_4.0.0_130424, CPU frequency is 996 MHz.&lt;/P&gt;&lt;P class="western"&gt;&lt;/P&gt;&lt;P class="western"&gt;1) What is the frequency of the ARM private timer's clock? Is it IPG_CLK_ROOT, ½ of ARM_CLK_ROOT, or maybe something else?&lt;/P&gt;&lt;P class="western"&gt;&lt;/P&gt;&lt;P class="western"&gt;2) How to set the clock input source for EPIT to ipq_clk (Peripheral clock)? According to i.MX 6Dual/6Quad Applications Processor Reference Manual it should be done by setting bit 24 in EPITx_CR register. But as I observed, EPIT starts only when CLKSRC is set to Low-frequency reference clock (bits 24 and 25 are set).&lt;/P&gt;&lt;P class="western"&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 13:50:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264361#M27191</guid>
      <dc:creator>jotes</dc:creator>
      <dc:date>2013-07-10T13:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Clock sources for timers (i.MX6Q SDP)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264362#M27192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please use the Platform SDK, take a look at&amp;nbsp; Chapter 8 (Configuring the EPIT Driver) of "iMX6_Firmware_Guide.pdf"&lt;/P&gt;&lt;P&gt;in SDK docs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.freescale.com/webapp/Download?colCode=i.MX6_PLATFORM_SDK&amp;amp;location=null&amp;amp;fpsp=1&amp;amp;WT_TYPE=Lab%20and%20Test%20Software&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=tgz&amp;amp;WT_ASSET=Downloads&amp;amp;sr=100&amp;amp;Parent_nodeId=1337637154535695831062&amp;amp;Parent_pageType=product" title="https://www.freescale.com/webapp/Download?colCode=i.MX6_PLATFORM_SDK&amp;amp;location=null&amp;amp;fpsp=1&amp;amp;WT_TYPE=Lab%20and%20Test%20Software&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=tgz&amp;amp;WT_ASSET=Downloads&amp;amp;sr=100&amp;amp;Parent_nodeId=1337637154535695831062&amp;amp;Parent_pageType=product"&gt;https://www.freescale.com/webapp/Download?colCode=i.MX6_PLATFORM_SDK&amp;amp;location=null&amp;amp;fpsp=1&amp;amp;WT_TYPE=Lab%20and%20Test%20Sof…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=i.MX6Q&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab" title="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=i.MX6Q&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;i.MX6Q Product Summary Page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 03:28:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264362#M27192</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2013-07-11T03:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Clock sources for timers (i.MX6Q SDP)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264363#M27193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Jotes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. ARM's private timer's freq is 1/2 of ARM freq, we call it local timer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Programme 2b'01 to EPITx_CR bit 24-25 is to set its clock source to ipg clock, then you should set bit 0 of EPITx_CR to enable EPIT, and you also need to make sure its clock gate is ungated, via setting CCM_CCGR1_CG6 to 2'b11, then you will see EPIT start counting down from 0xffffffff. I tried setting CCM_CCGR1_CG6, then write 0x1000001 to EPIT1_CR, I can see it is running, and its freq is 66MHz, which is IPG's freq. I think you didn't enable its clock in CCM_CCGR1_CG6, please try it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 05:19:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264363#M27193</guid>
      <dc:creator>AnsonHuang</dc:creator>
      <dc:date>2013-07-11T05:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Clock sources for timers (i.MX6Q SDP)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264364#M27194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="western"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif;"&gt;Thank you both for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif;"&gt;Yongcai, &lt;/SPAN&gt; &lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif;"&gt;1) You &lt;SPAN style="color: #000000;"&gt;mean &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;½ of ARM_CLK_ROOT&lt;/SPAN&gt; frequency? If yes, it should be 498 MHz, but as I observed it is only about 68 – 69 MHz.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif;"&gt;2) You were right, I didn't enable the clock.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 06:38:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264364#M27194</guid>
      <dc:creator>jotes</dc:creator>
      <dc:date>2013-07-11T06:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Clock sources for timers (i.MX6Q SDP)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264365#M27195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you observe the local timers's freq? As local timer is system tick timer, so it is modified very frequently due to kernel scheduler, so if you just read its counter, please be aware that normally, it will be reset in several ms. So, you can try a kernel bootup with global timer, then enable local timer manually to observe its freq. Just add "nosmp" in the uboot command line, system will boot up with single core and gpt timer. Then enable localtimer manually.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 06:45:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264365#M27195</guid>
      <dc:creator>AnsonHuang</dc:creator>
      <dc:date>2013-07-11T06:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Clock sources for timers (i.MX6Q SDP)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264366#M27196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="western"&gt;I work with Linux on CPU0, then I enable CPU1 and configure local timer to generate the tick interrupt. Then I measure time between interrupts. I have time measured as well as value which is written to Private Timer Load Register, so I can count clock frequency.&lt;/P&gt;&lt;P class="western"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 07:00:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264366#M27196</guid>
      <dc:creator>jotes</dc:creator>
      <dc:date>2013-07-11T07:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Clock sources for timers (i.MX6Q SDP)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264367#M27197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I didn't have environment to test it and give you the answer, but I am pretty sure that local timer's freq is 1/2 of ARM freq, as when ARM freq change, we need to update localtimer's freq too. And the whole system tick is based on localtimer's freq.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you can try like this, just enable local timer and set its load value to highest(assume it is counting down), then read its count, after 10 seconds(from your watch) later, read again, compare these two counts and divided by 10, you will get its freq.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 07:12:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264367#M27197</guid>
      <dc:creator>AnsonHuang</dc:creator>
      <dc:date>2013-07-11T07:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Clock sources for timers (i.MX6Q SDP)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264368#M27198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="western"&gt;Value in Private Timer Load Register: 0xFFFF.FFFF&lt;/P&gt;&lt;P class="western"&gt;Value in Private Timer Counter Register after 10 s: 0xD6FA.B75A&lt;/P&gt;&lt;P class="western"&gt;It gives: 0x2905.48A5 = 688.212.133&lt;/P&gt;&lt;P class="western"&gt;After dividing by 10, it gives about 69 MHz.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 07:32:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264368#M27198</guid>
      <dc:creator>jotes</dc:creator>
      <dc:date>2013-07-11T07:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Clock sources for timers (i.MX6Q SDP)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264369#M27199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you dump the private timer’s control register value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;Anson huang 黄勇才&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Freescale Semiconductor Shanghai&lt;/P&gt;&lt;P&gt;上海浦东新区亮景路192号A座2楼&lt;/P&gt;&lt;P&gt;201203&lt;/P&gt;&lt;P&gt;Tel:021-28937058&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 07:35:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264369#M27199</guid>
      <dc:creator>AnsonHuang</dc:creator>
      <dc:date>2013-07-11T07:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Clock sources for timers (i.MX6Q SDP)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264370#M27200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Private Timer Control Register (0x00A0.0608):&amp;nbsp; 0x0000.0001&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 07:41:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264370#M27200</guid>
      <dc:creator>jotes</dc:creator>
      <dc:date>2013-07-11T07:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Clock sources for timers (i.MX6Q SDP)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264371#M27201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tried it, it is ½ of ARM freq.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In uboot, I boot up with CORE0 @792MHz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then write 0x404521 to SRC_SCR register to enable CORE1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then using JTAG attach CORE1, and write 0xffffffff to 0xA00600(load register), I can see the 0xA00604(count) is set to 0xffffffff too. Then I write 0x1 to 0xA00608(control register), then run CORE1, after 10s, 0xA00604 is 0x10A84339, so the freq is (0xffffffff – 0x10a84339) / 10 = 401550458 ~= 401MHz, as CORE’s freq is ~800MHz, so it is ½ of ARM freq.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;Anson huang 黄勇才&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Freescale Semiconductor Shanghai&lt;/P&gt;&lt;P&gt;上海浦东新区亮景路192号A座2楼&lt;/P&gt;&lt;P&gt;201203&lt;/P&gt;&lt;P&gt;Tel:021-28937058&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 07:49:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264371#M27201</guid>
      <dc:creator>AnsonHuang</dc:creator>
      <dc:date>2013-07-11T07:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Clock sources for timers (i.MX6Q SDP)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264372#M27202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="western"&gt;I have two boards with i.MX6Q: SABRE Platform for Smart Devices Based and Sabre Lite. Since with both of them I get similar results, I guess there is something I am doing wrong. Is there any additional clock setting for this timer? I configure only two registers:&lt;/P&gt;&lt;P class="western"&gt;- Private Timer Load Register&lt;/P&gt;&lt;P class="western"&gt;- Private Timer Control Register&lt;/P&gt;&lt;P class="western"&gt;and apart from 'Prescaler' bits there is nothing that can change clock frequency.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 08:16:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264372#M27202</guid>
      <dc:creator>jotes</dc:creator>
      <dc:date>2013-07-11T08:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Clock sources for timers (i.MX6Q SDP)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264373#M27203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is no selection or additional setting for&lt;/P&gt;&lt;P&gt;local timer setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you need to pay attention for the local timer register read and write. As each core can only read its own local timer. I am pretty sure that my test in uboot is making sense, but it is hard for me to point out where is wrong with your platform, you need to be careful about the CPU number , as interrupt handle may be in different CPU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from Anson's iPhone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;在 2013-7-11，16:18，"jotes" &amp;lt;admin@community.freescale.com&amp;lt;mailto:admin@community.freescale.com&amp;gt;&amp;gt; 写道：&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="Freescale Community"&gt;Freescale Community&lt;/A&gt;&amp;lt;https://community.freescale.com/index.jspa&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.freescale.com/index.jspa&amp;gt;&lt;/P&gt;&lt;P&gt;Clock sources for timers (i.MX6Q SDP)&lt;/P&gt;&lt;P&gt;created by jotes&amp;lt;https://community.freescale.com/people/jotes&amp;gt; in i.MX Community - View the full discussion&amp;lt;https://community.freescale.com/message/339453#339453&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 08:30:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264373#M27203</guid>
      <dc:creator>AnsonHuang</dc:creator>
      <dc:date>2013-07-11T08:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Clock sources for timers (i.MX6Q SDP)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264374#M27204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You were right, when I test it in u-boot, I get the same result as you get (~= 401MHz). However, I don't understand why the frequency is lower when Linux is up and running.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 09:37:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264374#M27204</guid>
      <dc:creator>jotes</dc:creator>
      <dc:date>2013-07-11T09:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Clock sources for timers (i.MX6Q SDP)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264375#M27205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It must be something wrong with you measurement method or interrupt handle, you can pay more attention to them, I think. Hardware should be OK, and the clock source for localtimer is fix, can NOT be changed via software config, I think.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 09:39:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264375#M27205</guid>
      <dc:creator>AnsonHuang</dc:creator>
      <dc:date>2013-07-11T09:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Clock sources for timers (i.MX6Q SDP)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264376#M27206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="western"&gt;I am doing it exactly the same way, as I did before on &lt;EM&gt;&lt;SPAN style="font-style: normal;"&gt;ZedBoard from Xilinx &lt;/SPAN&gt;&lt;SPAN style="font-style: normal;"&gt;(with 2 ARM Cortex-A9 cores)&lt;/SPAN&gt;&lt;SPAN style="font-style: normal;"&gt;. &lt;/SPAN&gt;&lt;SPAN style="font-style: normal;"&gt;And everything was ok, &lt;/SPAN&gt;&lt;SPAN style="font-style: normal;"&gt;the frequency of the local timer&lt;/SPAN&gt;&lt;SPAN style="font-style: normal;"&gt; was exactly half of ARM clock's frequency. This is why I do not understand why it is different on i.MX6 board.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;EM&gt;&lt;SPAN style="font-style: normal;"&gt;Nevertheless, t&lt;/SPAN&gt;&lt;SPAN style="font-style: normal;"&gt;hank you very much for your help!&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 10:18:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264376#M27206</guid>
      <dc:creator>jotes</dc:creator>
      <dc:date>2013-07-11T10:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Clock sources for timers (i.MX6Q SDP)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264377#M27207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BTW, did you enable wait mode? Please check CCM clpcr register value, bit0-1, if wait mode is enabled and you config arm clock disabled in wait mode, then when enter wait mode local timer will lost its clock   too, then it will stop running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from Anson's iPhone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;在 2013-7-11，18:19，"jotes" &amp;lt;admin@community.freescale.com&amp;lt;mailto:admin@community.freescale.com&amp;gt;&amp;gt; 写道：&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="Freescale Community"&gt;Freescale Community&lt;/A&gt;&amp;lt;https://community.freescale.com/index.jspa&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.freescale.com/index.jspa&amp;gt;&lt;/P&gt;&lt;P&gt;Clock sources for timers (i.MX6Q SDP)&lt;/P&gt;&lt;P&gt;created by jotes&amp;lt;https://community.freescale.com/people/jotes&amp;gt; in i.MX Community - View the full discussion&amp;lt;https://community.freescale.com/message/339481#339481&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 12:44:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264377#M27207</guid>
      <dc:creator>AnsonHuang</dc:creator>
      <dc:date>2013-07-11T12:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Clock sources for timers (i.MX6Q SDP)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264378#M27208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="western"&gt;&lt;EM style="font-style: normal;"&gt;Value in CCM_CLPCR: 0x00200038. Even when I set it to 0x00200018 (ARM clock enabled on wait mode) nothing has changed. &lt;/EM&gt; &lt;BR /&gt; &lt;/P&gt;&lt;P class="western"&gt;&lt;EM style="font-style: normal;"&gt;I tried to generate clock signal on the output pin by use of CCM_CCOSR register. What I've observed:&lt;/EM&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;EM style="font-style: normal;"&gt;1) CLKO1_SEL: 0010 &lt;STRONG&gt;pll1_main_clk&lt;/STRONG&gt; (this inputs has additional constant division /2)&lt;/EM&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;EM&gt;&lt;SPAN style="font-style: normal;"&gt;output: &lt;STRONG&gt;~ 398 MHz &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: normal;"&gt;← so it's ok (I tested it on Sabre Lite)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;EM style="font-style: normal;"&gt;2) CLKO2_SEL: 01010 &lt;STRONG&gt;arm_clk_root&lt;/STRONG&gt; (default)&lt;/EM&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;EM&gt;&lt;SPAN style="font-style: normal;"&gt;output: &lt;STRONG&gt;~ 66,7 MHz &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-style: normal;"&gt;← s&lt;/STRONG&gt;&lt;SPAN style="font-style: normal;"&gt;ince CACRR[ARM_PODF] = 0, &lt;/SPAN&gt;&lt;SPAN style="font-style: normal;"&gt;it&lt;/SPAN&gt;&lt;SPAN style="font-style: normal;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-style: normal;"&gt;should be equal to pll1_main_clk, am I right?&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2013 06:27:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264378#M27208</guid>
      <dc:creator>jotes</dc:creator>
      <dc:date>2013-07-12T06:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Clock sources for timers (i.MX6Q SDP)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264379#M27209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That depend on how you set the CCM_CCSR_PLL1_SW_CLK_SEL, if it is set to pll1, then yes, if it is set to step clock, then it is coming from step clock, and you need to check what freq it is for step clock. And can you tell me the CCOSR setting under your environment?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;Anson huang 黄勇才&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Freescale Semiconductor Shanghai&lt;/P&gt;&lt;P&gt;上海浦东新区亮景路192号A座2楼&lt;/P&gt;&lt;P&gt;201203&lt;/P&gt;&lt;P&gt;Tel:021-28937058&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2013 06:32:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264379#M27209</guid>
      <dc:creator>AnsonHuang</dc:creator>
      <dc:date>2013-07-12T06:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Clock sources for timers (i.MX6Q SDP)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264380#M27210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="western"&gt;&lt;EM style="font-style: normal;"&gt;CCM_CCSR[pll1_sw_clk_sel] = 0 &lt;EM style="font-style: normal;"&gt;← &lt;/EM&gt;pll1_main_clk(default)&lt;/EM&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;BR /&gt; &lt;/P&gt;&lt;P class="western"&gt;&lt;EM style="font-style: normal;"&gt;CCM_CCOSR = 0x10A0100 ← arm_clk_root&lt;/EM&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;EM style="font-style: normal;"&gt;CCM_CCOSR = 0x82 ← pll1_main_clk / 2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2013 06:39:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-sources-for-timers-i-MX6Q-SDP/m-p/264380#M27210</guid>
      <dc:creator>jotes</dc:creator>
      <dc:date>2013-07-12T06:39:18Z</dc:date>
    </item>
  </channel>
</rss>

