<?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:  iMx6 EIM parallel NOR Flash slow speed in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMx6-EIM-parallel-NOR-Flash-slow-speed/m-p/638261#M97298</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now the through put is about 37.5 MByte/s with assembly memcpy function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Feb 2017 09:22:11 GMT</pubDate>
    <dc:creator>sijilcv</dc:creator>
    <dc:date>2017-02-16T09:22:11Z</dc:date>
    <item>
      <title>iMx6 EIM parallel NOR Flash slow speed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMx6-EIM-parallel-NOR-Flash-slow-speed/m-p/638252#M97289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a custom iMx6 Dual Plus board with EIM parallel NOR flash interfaced (32MB S29GL256S90DHI02), the uboot,kernel image and DTB is stored in this memory. &lt;BR /&gt;We managed to boot the device from NOR flash and load the kernel image and DTB to RAM from NOR flash. The RFS is kept inside eMMC memory.&lt;/P&gt;&lt;P&gt;The issue we are facing is the copying of kernel image from NOR to RAM is taking to much time. The NOR flash is a parallel flash with 16 bit data bus.&lt;BR /&gt;The performance is worst at u-boot level at kernel level the throughput is around 15.5 MByte/s still slow expected ( 80 MB/s)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In linux the EIM clock speed is at 132Mhz&lt;/P&gt;&lt;P&gt;cat /sys/kernel/debug/clk/eim_slow/clk_rate&lt;BR /&gt;132000000&lt;/P&gt;&lt;P&gt;U- boot&lt;BR /&gt;=&amp;gt; clocks&lt;BR /&gt;PLL_SYS 792 MHz&lt;BR /&gt;PLL_BUS 528 MHz&lt;BR /&gt;PLL_OTG 480 MHz&lt;BR /&gt;PLL_NET 125 MHz&lt;/P&gt;&lt;P&gt;IPG 66000 kHz&lt;BR /&gt;UART 80000 kHz&lt;BR /&gt;AHB 132000 kHz&lt;BR /&gt;AXI 264000 kHz&lt;BR /&gt;DDR 528000 kHz&lt;BR /&gt;USDHC1 198000 kHz&lt;BR /&gt;USDHC2 198000 kHz&lt;BR /&gt;USDHC3 198000 kHz&lt;BR /&gt;USDHC4 198000 kHz&lt;BR /&gt;EMI SLOW 66000 kHz&lt;BR /&gt;IPG PERCLK 66000 kHz&lt;/P&gt;&lt;P&gt;In U-boot I could see the EMI SLOW clock is at 66 Mhz is this need to be corrected to 132Mhz. Is this to be done as part of DCD ?&lt;BR /&gt;What all things needs to be take care to get the optimal performance of the NOR flash. ?&lt;/P&gt;&lt;P&gt;As per the application note from cypress (&lt;A href="http://www.cypress.com/file/202616/download"&gt;AN98562&lt;/A&gt;) the following are the configuration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="EIM.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/144i0C88B7E2EDEE3E5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="EIM.png" alt="EIM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is XIP supported by IMx6 &amp;nbsp;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 06:25:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMx6-EIM-parallel-NOR-Flash-slow-speed/m-p/638252#M97289</guid>
      <dc:creator>sijilcv</dc:creator>
      <dc:date>2016-12-23T06:25:12Z</dc:date>
    </item>
    <item>
      <title>Re:  iMx6 EIM parallel NOR Flash slow speed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMx6-EIM-parallel-NOR-Flash-slow-speed/m-p/638253#M97290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sijil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maximum operating frequency for EIM data transfer is 104 MHz according&lt;/P&gt;&lt;P&gt;to sect.4.9.3 External Interface Module (EIM) i.MX6DQP Datasheet&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.nxp.com/files-static/32bit/doc/data_sheet/IMX6DQPCEC.pdf" title="http://www.nxp.com/files-static/32bit/doc/data_sheet/IMX6DQPCEC.pdf"&gt;http://www.nxp.com/files-static/32bit/doc/data_sheet/IMX6DQPCEC.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it could be adjusted tweaking parent pll frequency and using description in&lt;/P&gt;&lt;P&gt;Chapter 18 Clock Controller Module (CCM) i.MX6DQ Reference Manual&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf"&gt;http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;EIM xip is supported, it is necessary to configure appropriately addresses in ivt table&lt;/P&gt;&lt;P&gt;given in Figure 8-21. Image Vector Table RM.&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>Mon, 26 Dec 2016 07:20:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMx6-EIM-parallel-NOR-Flash-slow-speed/m-p/638253#M97290</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-12-26T07:20:08Z</dc:date>
    </item>
    <item>
      <title>Re:  iMx6 EIM parallel NOR Flash slow speed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMx6-EIM-parallel-NOR-Flash-slow-speed/m-p/638254#M97291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On mx6qsabreauto I see the emi clock as 132MHz. Please make sure you are using a modern version of U-Boot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you copying the kernel and dtb from NOR flash to RAM? Are you using the U-Boot "cp" command?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have recently changed the "cp" command implementation in U-Boot so that it can use the optimized assembly memcpy() library. It does significantly increase the performance of the "cp" command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached the four patches below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.mail-archive.com/u-boot@lists.denx.de/msg234197.html" title="https://www.mail-archive.com/u-boot@lists.denx.de/msg234197.html"&gt;https://www.mail-archive.com/u-boot@lists.denx.de/msg234197.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.mail-archive.com/u-boot@lists.denx.de/msg234180.html" title="https://www.mail-archive.com/u-boot@lists.denx.de/msg234180.html"&gt;https://www.mail-archive.com/u-boot@lists.denx.de/msg234180.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.mail-archive.com/u-boot@lists.denx.de/msg234198.html" title="https://www.mail-archive.com/u-boot@lists.denx.de/msg234198.html"&gt;https://www.mail-archive.com/u-boot@lists.denx.de/msg234198.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.mail-archive.com/u-boot@lists.denx.de/msg234179.html" title="https://www.mail-archive.com/u-boot@lists.denx.de/msg234179.html"&gt;https://www.mail-archive.com/u-boot@lists.denx.de/msg234179.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if it helps for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Dec 2016 18:30:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMx6-EIM-parallel-NOR-Flash-slow-speed/m-p/638254#M97291</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2016-12-26T18:30:14Z</dc:date>
    </item>
    <item>
      <title>Re:  iMx6 EIM parallel NOR Flash slow speed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMx6-EIM-parallel-NOR-Flash-slow-speed/m-p/638255#M97292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, by default register&amp;nbsp;20C_401C (CCM_CSCMR1) has:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field:&amp;nbsp;clk_eim_slow_sel : 00 --&amp;gt;derive clock from AXI clk root&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aclk_eim_slow_podf" 01 --&amp;gt; divide by 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So AXI clk in your case is 264 MHz, so EMI_SLOW should be: 264/2 = 132 MHz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please configure&amp;nbsp;&lt;SPAN&gt;CCM_CSCMR1 correctly so that is can generate a 132MHz EMI clock.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Dec 2016 18:56:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMx6-EIM-parallel-NOR-Flash-slow-speed/m-p/638255#M97292</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2016-12-26T18:56:27Z</dc:date>
    </item>
    <item>
      <title>Re:  iMx6 EIM parallel NOR Flash slow speed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMx6-EIM-parallel-NOR-Flash-slow-speed/m-p/638256#M97293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, just checked the MX6DQP Reference Manual. The&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;aclk_eim_slow_podf field by default is 0x3 --&amp;gt; which means divide by 4, so 264 / 4 = 66 MHz. On mx6q the&amp;nbsp;&lt;SPAN&gt;aclk_eim_slow_podf field by default is 0x1 --&amp;gt; divide by 2.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;So what you need to do is configure the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;aclk_eim_slow_podf field to 1 in your board file. Then you will have 132MHz for EIM clock.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;With this change plus the series I pointed you at above I believe you will have a much better EIM throughput.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Dec 2016 19:06:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMx6-EIM-parallel-NOR-Flash-slow-speed/m-p/638256#M97293</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2016-12-26T19:06:59Z</dc:date>
    </item>
    <item>
      <title>Re:  iMx6 EIM parallel NOR Flash slow speed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMx6-EIM-parallel-NOR-Flash-slow-speed/m-p/638257#M97294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have my mx6qsabreauto nor mx6qpsabreauto handy, but the following patch makes sure the EIM clock is setup correctly on both cases. Please give it a try and let me know if you can get EIM clock at 132MHz in U-Boot. You would probably need to adapt it to your board, but that will be simple.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Dec 2016 19:54:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMx6-EIM-parallel-NOR-Flash-slow-speed/m-p/638257#M97294</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2016-12-26T19:54:37Z</dc:date>
    </item>
    <item>
      <title>Re:  iMx6 EIM parallel NOR Flash slow speed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMx6-EIM-parallel-NOR-Flash-slow-speed/m-p/638258#M97295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I am using cp command ? I will try the following patches and let you know the result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2016 04:28:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMx6-EIM-parallel-NOR-Flash-slow-speed/m-p/638258#M97295</guid>
      <dc:creator>sijilcv</dc:creator>
      <dc:date>2016-12-27T04:28:01Z</dc:date>
    </item>
    <item>
      <title>Re:  iMx6 EIM parallel NOR Flash slow speed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMx6-EIM-parallel-NOR-Flash-slow-speed/m-p/638259#M97296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;assembly memcpy() uses DMA. if no can we use DMA copy for NOR FLASH read for better performance ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 08:28:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMx6-EIM-parallel-NOR-Flash-slow-speed/m-p/638259#M97296</guid>
      <dc:creator>sijilcv</dc:creator>
      <dc:date>2017-02-13T08:28:35Z</dc:date>
    </item>
    <item>
      <title>Re:  iMx6 EIM parallel NOR Flash slow speed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMx6-EIM-parallel-NOR-Flash-slow-speed/m-p/638260#M97297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does not use DMA. &amp;nbsp;You can try to implement DMA support. What is the throughput you are getting after switching to memcpy()?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 10:09:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMx6-EIM-parallel-NOR-Flash-slow-speed/m-p/638260#M97297</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2017-02-13T10:09:42Z</dc:date>
    </item>
    <item>
      <title>Re:  iMx6 EIM parallel NOR Flash slow speed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMx6-EIM-parallel-NOR-Flash-slow-speed/m-p/638261#M97298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now the through put is about 37.5 MByte/s with assembly memcpy function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 09:22:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMx6-EIM-parallel-NOR-Flash-slow-speed/m-p/638261#M97298</guid>
      <dc:creator>sijilcv</dc:creator>
      <dc:date>2017-02-16T09:22:11Z</dc:date>
    </item>
    <item>
      <title>Re:  iMx6 EIM parallel NOR Flash slow speed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMx6-EIM-parallel-NOR-Flash-slow-speed/m-p/638262#M97299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi we are planing to move the NOR from 16 bit to 32 bit bus width do you have any suggestions ? Can we expect double throughput ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 06:44:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMx6-EIM-parallel-NOR-Flash-slow-speed/m-p/638262#M97299</guid>
      <dc:creator>sijilcv</dc:creator>
      <dc:date>2017-05-02T06:44:31Z</dc:date>
    </item>
  </channel>
</rss>

