<?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 to enable SPI wait state in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SPI-wait-state/m-p/1290766#M175353</link>
    <description>&lt;P&gt;I made a mistake...&lt;BR /&gt;&lt;BR /&gt;my code is :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;period = readl(spi_imx-&amp;gt;base + MX51_ECSPI_PERIOD);&lt;BR /&gt;period = 0x16;&lt;BR /&gt;printk("period %x\n",period);&lt;BR /&gt;writel(period, spi_imx-&amp;gt;base + MX51_ECSPI_PERIOD);&lt;BR /&gt;period = readl(spi_imx-&amp;gt;base + MX51_ECSPI_PERIOD);&lt;BR /&gt;printk("period %x\n",period);&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jun 2021 13:46:55 GMT</pubDate>
    <dc:creator>hillcoder</dc:creator>
    <dc:date>2021-06-10T13:46:55Z</dc:date>
    <item>
      <title>How to enable SPI wait state</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SPI-wait-state/m-p/1290750#M175351</link>
      <description>&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;I'm working on a linux system running on a board based on imx6q dual.&lt;/P&gt;&lt;P&gt;I need to put some wait states in my SPI communication. From datasheet I read that for do this I have to write in to the&amp;nbsp;ECSPIx_PERIODREG register.&lt;/P&gt;&lt;P&gt;Below the code that I added at the end on&amp;nbsp;mx51_ecspi_config functio on spi-imx.c:&lt;/P&gt;&lt;P&gt;period = readl(spi_imx-&amp;gt;base + MX51_ECSPI_PERIOD);&lt;BR /&gt;period = 0x800F;&lt;BR /&gt;printk("period %x\n",period);&lt;BR /&gt;writel(period, spi_imx-&amp;gt;base + MX51_ECSPI_PERIOD);&lt;BR /&gt;period = readl(spi_imx-&amp;gt;base + MX51_ECSPI_PERIOD);&lt;BR /&gt;printk("period %x\n",period);&lt;/P&gt;&lt;P&gt;Also if the written value is right no wait states between words appears...&lt;/P&gt;&lt;P&gt;Where I have wrong ?&lt;/P&gt;&lt;P&gt;Many thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 13:06:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SPI-wait-state/m-p/1290750#M175351</guid>
      <dc:creator>hillcoder</dc:creator>
      <dc:date>2021-06-10T13:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable SPI wait state</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SPI-wait-state/m-p/1290766#M175353</link>
      <description>&lt;P&gt;I made a mistake...&lt;BR /&gt;&lt;BR /&gt;my code is :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;period = readl(spi_imx-&amp;gt;base + MX51_ECSPI_PERIOD);&lt;BR /&gt;period = 0x16;&lt;BR /&gt;printk("period %x\n",period);&lt;BR /&gt;writel(period, spi_imx-&amp;gt;base + MX51_ECSPI_PERIOD);&lt;BR /&gt;period = readl(spi_imx-&amp;gt;base + MX51_ECSPI_PERIOD);&lt;BR /&gt;printk("period %x\n",period);&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 13:46:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SPI-wait-state/m-p/1290766#M175353</guid>
      <dc:creator>hillcoder</dc:creator>
      <dc:date>2021-06-10T13:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable SPI wait state</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SPI-wait-state/m-p/1295044#M175747</link>
      <description>&lt;P&gt;Hi Hill&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what bsp used in the case, may be recommended to try with latest nxp release :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/?h=lf-5.10.y" target="_blank" rel="noopener"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/?h=lf-5.10.y&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/imx-test/tree/test/mxc_spi_test?h=lf-5.10.y_1.0.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/imx-test/tree/test/mxc_spi_test?h=lf-5.10.y_1.0.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Documentation :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX?tab=In-Depth_Tab" target="_blank" rel="noopener"&gt;https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX?tab=In-Depth_Tab&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 01:01:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SPI-wait-state/m-p/1295044#M175747</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-06-21T01:01:13Z</dc:date>
    </item>
  </channel>
</rss>

