<?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: How do I read and write fpga through EIM? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-do-I-read-and-write-fpga-through-EIM/m-p/740486#M115245</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;one can look at commands used by mfg tool (in ucl2.xml)&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/webapp/Download?colCode=IMX_L4.1.15_2.1.0_MFG_TOOL&amp;amp;appType=license&amp;amp;location=null&amp;amp;Parent_nodeId=1337699481071706174845&amp;amp;Parent_pageType=product" title="https://www.nxp.com/webapp/Download?colCode=IMX_L4.1.15_2.1.0_MFG_TOOL&amp;amp;appType=license&amp;amp;location=null&amp;amp;Parent_nodeId=1337699481071706174845&amp;amp;Parent_pageType=product"&gt;https://www.nxp.com/webapp/Download?colCode=IMX_L4.1.15_2.1.0_MFG_TOOL&amp;amp;appType=license&amp;amp;location=null&amp;amp;Parent_nodeId=13376…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;use for example mfgtool2-yocto-mx-sabreauto-weim-nor-cpu3.vbs script.&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>Tue, 17 Apr 2018 09:08:35 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2018-04-17T09:08:35Z</dc:date>
    <item>
      <title>How do I read and write fpga through EIM?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-do-I-read-and-write-fpga-through-EIM/m-p/740485#M115244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;I 've now configured the EIM bus. &amp;nbsp;Is there an error? How do i read and write fpga through EIM?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static struct mtd_partition mxc_nor_partitions[] = {&lt;BR /&gt; {&lt;BR /&gt; .name = "FPGA.EIM",&lt;BR /&gt; .offset = 0,&lt;BR /&gt; .size = 0x00080000,&lt;BR /&gt; }, &lt;BR /&gt;};&lt;BR /&gt;static struct resource nor_flash_resource = {&lt;BR /&gt; .start = CS0_BASE_ADDR,&lt;BR /&gt; .end = CS0_BASE_ADDR + 0x02000000 - 1,&lt;BR /&gt; .flags = IORESOURCE_MEM,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;static struct physmap_flash_data nor_flash_data = {&lt;BR /&gt; .probe_type = "cfi_probe",&lt;BR /&gt; .width = 2,&lt;BR /&gt; .parts = mxc_nor_partitions,&lt;BR /&gt; .nr_parts = ARRAY_SIZE(mxc_nor_partitions),&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;static struct platform_device physmap_flash_device = {&lt;BR /&gt; .name = "physmap-flash",&lt;BR /&gt; .id = 0,&lt;BR /&gt; .dev = {&lt;BR /&gt; .platform_data = &amp;amp;nor_flash_data,&lt;BR /&gt; },&lt;BR /&gt; .resource = &amp;amp;nor_flash_resource,&lt;BR /&gt; .num_resources = 1,&lt;BR /&gt;};&lt;BR /&gt;/* eim */&lt;BR /&gt;static void mx6q_setup_eim_cs(void)&lt;BR /&gt;{&lt;BR /&gt; void __iomem *ram_reg = MX6_IO_ADDRESS(WEIM_BASE_ADDR);&lt;BR /&gt; void __iomem *ccm_reg = MX6_IO_ADDRESS(CCM_BASE_ADDR);&lt;BR /&gt; unsigned int reg;&lt;BR /&gt; struct clk *clk;&lt;BR /&gt; u32 rate; &lt;BR /&gt; &lt;BR /&gt; /* CLKCTL_CCGR6: Set emi_slow_clock to be on in all modes */&lt;BR /&gt; reg = readl(ccm_reg + 0x80);&lt;BR /&gt; reg |= 0x00000C00;&lt;BR /&gt; writel(reg, ccm_reg + 0x80);&lt;BR /&gt; &lt;BR /&gt; clk = clk_get(NULL, "emi_slow_clk");&lt;BR /&gt; if (IS_ERR(clk))&lt;BR /&gt; printk(KERN_ERR "emi_slow_clk not found\n");&lt;BR /&gt; &lt;BR /&gt; rate = clk_get_rate(clk);&lt;BR /&gt; if (rate != 132000000)&lt;BR /&gt; printk(KERN_ERR "Warning: emi_slow_clk not set to 132 MHz!"&lt;BR /&gt; " WEIM NOR timing may be incorrect!\n");&lt;BR /&gt; &lt;BR /&gt; writel(0x403304b1, ram_reg);&lt;BR /&gt; writel(0x0, ram_reg + 0x4);&lt;BR /&gt; &lt;BR /&gt; writel(0x0f010000, ram_reg + 0x8);&lt;BR /&gt; writel(0x00000008, ram_reg + 0xc);&lt;BR /&gt; &lt;BR /&gt; writel(0x0f040040, ram_reg + 0x10);&lt;BR /&gt; writel(0x00000000, ram_reg + 0x14);&lt;BR /&gt; &lt;BR /&gt; writel(0x00000000, ram_reg + 0x90);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 07:01:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-do-I-read-and-write-fpga-through-EIM/m-p/740485#M115244</guid>
      <dc:creator>martin_wilson</dc:creator>
      <dc:date>2018-04-17T07:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read and write fpga through EIM?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-do-I-read-and-write-fpga-through-EIM/m-p/740486#M115245</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;one can look at commands used by mfg tool (in ucl2.xml)&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/webapp/Download?colCode=IMX_L4.1.15_2.1.0_MFG_TOOL&amp;amp;appType=license&amp;amp;location=null&amp;amp;Parent_nodeId=1337699481071706174845&amp;amp;Parent_pageType=product" title="https://www.nxp.com/webapp/Download?colCode=IMX_L4.1.15_2.1.0_MFG_TOOL&amp;amp;appType=license&amp;amp;location=null&amp;amp;Parent_nodeId=1337699481071706174845&amp;amp;Parent_pageType=product"&gt;https://www.nxp.com/webapp/Download?colCode=IMX_L4.1.15_2.1.0_MFG_TOOL&amp;amp;appType=license&amp;amp;location=null&amp;amp;Parent_nodeId=13376…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;use for example mfgtool2-yocto-mx-sabreauto-weim-nor-cpu3.vbs script.&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>Tue, 17 Apr 2018 09:08:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-do-I-read-and-write-fpga-through-EIM/m-p/740486#M115245</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-04-17T09:08:35Z</dc:date>
    </item>
  </channel>
</rss>

