<?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のトピックwhere to define clock frequency for DDR</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/where-to-define-clock-frequency-for-DDR/m-p/411742#M61691</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have got custom board for which we have changed memory. Our memory module is 400 MHz module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in our u-boot code at one place, we are trying to print memory frequency by using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clock = mxc_get_clock(MXC_DDR_CLK) / 1000000U;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;printf("clock: %dMHz", clock);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, for reference board it is printing 400 MHz correctly, But for our board it is printing 528 MHz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In LPDDR2 script file it is shown that&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="left" height="20" style="border: 1px solid #ffffff;" valign="bottom"&gt;&lt;SPAN style="color: #000000;"&gt;setmem /32&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="left" style="border: 1px solid #ffffff;" valign="bottom"&gt;&lt;SPAN style="color: #000000;"&gt;0x020c4018 = &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="left" style="border: 1px solid #ffffff;" valign="bottom"&gt;&lt;SPAN style="color: #000000;"&gt;0x00060324 &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="left" style="border: 1px solid #ffffff;" valign="bottom"&gt;&lt;SPAN style="color: #000000;"&gt;//DDR clk to 400MHz&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to define this in someplace (0x020c4018) as 0x00060324. wher it needs to defined so that mmc_get_clock returns correct value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Nov 2015 20:52:02 GMT</pubDate>
    <dc:creator>srinivasaporam</dc:creator>
    <dc:date>2015-11-13T20:52:02Z</dc:date>
    <item>
      <title>where to define clock frequency for DDR</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/where-to-define-clock-frequency-for-DDR/m-p/411742#M61691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have got custom board for which we have changed memory. Our memory module is 400 MHz module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in our u-boot code at one place, we are trying to print memory frequency by using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clock = mxc_get_clock(MXC_DDR_CLK) / 1000000U;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;printf("clock: %dMHz", clock);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, for reference board it is printing 400 MHz correctly, But for our board it is printing 528 MHz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In LPDDR2 script file it is shown that&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="left" height="20" style="border: 1px solid #ffffff;" valign="bottom"&gt;&lt;SPAN style="color: #000000;"&gt;setmem /32&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="left" style="border: 1px solid #ffffff;" valign="bottom"&gt;&lt;SPAN style="color: #000000;"&gt;0x020c4018 = &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="left" style="border: 1px solid #ffffff;" valign="bottom"&gt;&lt;SPAN style="color: #000000;"&gt;0x00060324 &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="left" style="border: 1px solid #ffffff;" valign="bottom"&gt;&lt;SPAN style="color: #000000;"&gt;//DDR clk to 400MHz&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to define this in someplace (0x020c4018) as 0x00060324. wher it needs to defined so that mmc_get_clock returns correct value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 20:52:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/where-to-define-clock-frequency-for-DDR/m-p/411742#M61691</guid>
      <dc:creator>srinivasaporam</dc:creator>
      <dc:date>2015-11-13T20:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: where to define clock frequency for DDR</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/where-to-define-clock-frequency-for-DDR/m-p/411743#M61692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivasa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;usually this and other new ddr settings are defined in dcd header:&lt;/P&gt;&lt;P&gt;appropriate&amp;nbsp; *.cfg file, like uboot/..mx6sabresd/mx6dl_4x_mt41j128.cfg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 01:34:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/where-to-define-clock-frequency-for-DDR/m-p/411743#M61692</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-11-16T01:34:54Z</dc:date>
    </item>
  </channel>
</rss>

