<?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 How to change clock in linux-imx in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-change-clock-in-linux-imx/m-p/932744#M139877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to understand how&amp;nbsp; the clock is setup in imx6ul in uboot and linux-imx.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following are my questions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. When I ran the command below -&lt;/P&gt;&lt;P&gt;&amp;nbsp;cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq&lt;/P&gt;&lt;P&gt;I get the value - 5280000 is it the ARM_PPL value or system PLL value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I want to set following values in CCM&lt;/P&gt;&lt;DIV style="font-family: 'Consolas'; font-size: 10.0pt; color: #ffffff; background-color: #000000; font-style: normal; font-weight: normal; text-decoration: none;"&gt;&lt;PRE&gt;&lt;SPAN style="color: #00f5ff;"&gt;SIM_PRE_CLK_SEL = 101 =&amp;gt; PLL3 PFD2 = 508.2MHz&lt;/SPAN&gt;&lt;SPAN style="color: #00f5ff;"&gt;SIM_PODF        = 001 =&amp;gt; divide by 2.&lt;/SPAN&gt;&lt;SPAN style="color: #00f5ff;"&gt;SIM_CLK_SEL     = 000 =&amp;gt; derive clock from pre-muxed SIM clock&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;How can I set it and which is the ideal place to set this value after linux has booted?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Asma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Aug 2019 08:21:27 GMT</pubDate>
    <dc:creator>asmaa</dc:creator>
    <dc:date>2019-08-16T08:21:27Z</dc:date>
    <item>
      <title>How to change clock in linux-imx</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-change-clock-in-linux-imx/m-p/932744#M139877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to understand how&amp;nbsp; the clock is setup in imx6ul in uboot and linux-imx.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following are my questions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. When I ran the command below -&lt;/P&gt;&lt;P&gt;&amp;nbsp;cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq&lt;/P&gt;&lt;P&gt;I get the value - 5280000 is it the ARM_PPL value or system PLL value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I want to set following values in CCM&lt;/P&gt;&lt;DIV style="font-family: 'Consolas'; font-size: 10.0pt; color: #ffffff; background-color: #000000; font-style: normal; font-weight: normal; text-decoration: none;"&gt;&lt;PRE&gt;&lt;SPAN style="color: #00f5ff;"&gt;SIM_PRE_CLK_SEL = 101 =&amp;gt; PLL3 PFD2 = 508.2MHz&lt;/SPAN&gt;&lt;SPAN style="color: #00f5ff;"&gt;SIM_PODF        = 001 =&amp;gt; divide by 2.&lt;/SPAN&gt;&lt;SPAN style="color: #00f5ff;"&gt;SIM_CLK_SEL     = 000 =&amp;gt; derive clock from pre-muxed SIM clock&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;How can I set it and which is the ideal place to set this value after linux has booted?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Asma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2019 08:21:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-change-clock-in-linux-imx/m-p/932744#M139877</guid>
      <dc:creator>asmaa</dc:creator>
      <dc:date>2019-08-16T08:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to change clock in linux-imx</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-change-clock-in-linux-imx/m-p/932745#M139878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. When I ran the command below -&lt;/P&gt;&lt;P&gt;&amp;nbsp;cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq&lt;/P&gt;&lt;P&gt;I get the value - 5280000 is it the ARM_PPL value or system PLL value?&lt;/P&gt;&lt;P&gt;&amp;gt; refer to the imx6ul referen manual, 528M is from PLL2 which is system PLL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. you can refer to the driver source code as below:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/cpufreq/imx6q-cpufreq.c?h=imx_4.14.98_2.1.0" title="https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/cpufreq/imx6q-cpufreq.c?h=imx_4.14.98_2.1.0"&gt;imx6q-cpufreq.c\cpufreq\drivers - linux-imx - i.MX Linux kernel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2019 08:53:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-change-clock-in-linux-imx/m-p/932745#M139878</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2019-08-19T08:53:43Z</dc:date>
    </item>
  </channel>
</rss>

