<?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: Manually Enabling QSPI Writes Through Mainline U-Boot in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/Manually-Enabling-QSPI-Writes-Through-Mainline-U-Boot/m-p/351173#M39</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;Hello Patrick Morrow,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;Since IFC and QSPI/SPI are pin mutiplexed, in SDK 1.7 IFC isn't supported, and QSPI/SPI is supported in SD boot mode, for the mainline u-boot, there should be a patched applied to adjust the feature to support IFC instead. So now IFC is supported and QSPI is disabled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;So please try whether it would be helpful to make attached patch reverted to enable QSPI again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;For switch and RCW setting, please refer to this thread &lt;A href="https://community.nxp.com/message/491310"&gt;Re: LS1021A - QSPI Flash on ls1021atwr not found&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;In addition, please use the following commands to do verification in u-boot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;=&amp;gt; sf probe 0:0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replytoname"&gt;=&amp;gt; sf erase 0 100000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replytoname"&gt;=&amp;gt; sf write 82000000 0 1000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replytoname"&gt;=&amp;gt; sf read 81100000 0 1000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Yiping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Thu, 26 Mar 2015 11:55:15 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2015-03-26T11:55:15Z</dc:date>
    <item>
      <title>Manually Enabling QSPI Writes Through Mainline U-Boot</title>
      <link>https://community.nxp.com/t5/Layerscape/Manually-Enabling-QSPI-Writes-Through-Mainline-U-Boot/m-p/351172#M38</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using the LS1021A-TWR Board.&lt;/P&gt;&lt;P&gt;We are running Mainline U-Boot 2015.01 off of an SD Card.&lt;/P&gt;&lt;P&gt;The following is our physical switch configuration and RCW:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;SW2[1-8]:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [OFF] [OFF] [ON] [OFF]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [OFF] [ON] [ON] [OFF] &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;SW3[1-8]:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [OFF] [ON] [ON] [OFF]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ON] [OFF] [OFF] [ON]&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;RCW:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0608000a 00000000 00000000 00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20000000 00407900 60025A00 21046000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000000 00000000 00000000 21038000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 12pt; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20024800 881B1540 00000000 00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issuing U-Boot "md" commands to addresses in the 0x0155XXXX CCSR QSPI and 0x4XXXXXXX QSPI address spaces appear to complete successfully in that they produce an output and do not hang.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our most recent attempt at manually switching on QSPI Write Enable, w&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;e used the U-Boot "mm" command to write the following values to the corresponding addresses.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="384" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="border: 1px solid rgb(0, 0, 0); width: 606px; height: 364px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Address&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Value&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Intention&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;0x01550310&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;0x06041808 &lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;Queue the command (04) for "Write Enable" (06) where &lt;/P&gt;&lt;P&gt;the bit length of the associated memory address (08) is 18h.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;0x01550314&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;0x00000000 &lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;Declare that no additional data will be sent with the command (0000).&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;0x01550100&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;0x00000040 &lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;The previously mentioned 18h=24d bit address is 0x000000 &lt;/P&gt;&lt;P&gt;(indicating that this command does not write to the QSPI storage).&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;0x01550008&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;0x00000000 &lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;Issue the command and write 0 bytes of return data to 0x01550200.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;0x01550310&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;0x05041808 &lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;Queue another command (04) for "Read Status Register" (05) where&lt;/P&gt;&lt;P&gt;the bit length of the associated memory address (08) is 18h.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;0x01550314&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;0x011C0000 &lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;Declare a read (1C) of 01 byte then declare that&lt;/P&gt;&lt;P&gt;no additional data will be sent with the command (0000).&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;0x01550100&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;0x00000040 &lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;The previously mentioned 18h=24d bit address is 0x000000&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;(indicating that this command does not write to the QSPI storage).&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;0x01550008&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;0x01000000 &lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;Issue the command and write 01 byte of return data to 0x01550200.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each "mm" command has been verified as being successful through the use of the "md" command.&lt;/P&gt;&lt;P&gt;After the above commands, the write latch bit (bit #1) in the Status Register should be 1 as indicated by Micron's N25Q512A Serial NOR Flash Documentation but it is still 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To clarify, this question solely relates to QSPI and we are not experiencing any problems with U-Boot or booting Linux from an SD Card.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any direction would be greatly appreciated. Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 21:51:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Manually-Enabling-QSPI-Writes-Through-Mainline-U-Boot/m-p/351172#M38</guid>
      <dc:creator>patrickmorrow</dc:creator>
      <dc:date>2015-03-25T21:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Manually Enabling QSPI Writes Through Mainline U-Boot</title>
      <link>https://community.nxp.com/t5/Layerscape/Manually-Enabling-QSPI-Writes-Through-Mainline-U-Boot/m-p/351173#M39</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;Hello Patrick Morrow,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;Since IFC and QSPI/SPI are pin mutiplexed, in SDK 1.7 IFC isn't supported, and QSPI/SPI is supported in SD boot mode, for the mainline u-boot, there should be a patched applied to adjust the feature to support IFC instead. So now IFC is supported and QSPI is disabled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;So please try whether it would be helpful to make attached patch reverted to enable QSPI again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;For switch and RCW setting, please refer to this thread &lt;A href="https://community.nxp.com/message/491310"&gt;Re: LS1021A - QSPI Flash on ls1021atwr not found&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;In addition, please use the following commands to do verification in u-boot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;=&amp;gt; sf probe 0:0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replytoname"&gt;=&amp;gt; sf erase 0 100000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replytoname"&gt;=&amp;gt; sf write 82000000 0 1000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replytoname"&gt;=&amp;gt; sf read 81100000 0 1000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Yiping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Thu, 26 Mar 2015 11:55:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Manually-Enabling-QSPI-Writes-Through-Mainline-U-Boot/m-p/351173#M39</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2015-03-26T11:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Manually Enabling QSPI Writes Through Mainline U-Boot</title>
      <link>https://community.nxp.com/t5/Layerscape/Manually-Enabling-QSPI-Writes-Through-Mainline-U-Boot/m-p/351174#M40</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Applying the patch did not produce any changes within our current access of the QSPI flash from u-boot.&amp;nbsp; Our attempts to access the QSPI may be skipping over a few important things that need to be fixed first.&amp;nbsp; We may have jumped the gun when trying to ask about accessing the QSPI flash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 17:05:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Manually-Enabling-QSPI-Writes-Through-Mainline-U-Boot/m-p/351174#M40</guid>
      <dc:creator>patrickmorrow</dc:creator>
      <dc:date>2015-03-27T17:05:12Z</dc:date>
    </item>
  </channel>
</rss>

