<?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 LS1020A/LS1021A QSPI Boot Speed Change in RCW in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/LS1020A-LS1021A-QSPI-Boot-Speed-Change-in-RCW/m-p/1485465#M10834</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I post this message in order to share our experience about issues with LS1020A QSPI Boot (also valid for LS1021).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The sample RCW files provided in LSDK all contain a command which change the divider for QSPI clock speed:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;write 0x57015c, 0x00000803&lt;/PRE&gt;&lt;P&gt;Where does this value come from?&lt;/P&gt;&lt;P&gt;Explanation:&lt;/P&gt;&lt;P&gt;- It is a write to&amp;nbsp;SCFG_QSPI_CFG&lt;/P&gt;&lt;P&gt;- As the endianess has not been setup yet, the value to be written is bit-flipped from what you can find in the reference manual.&lt;/P&gt;&lt;P&gt;- The value given in the RCW examples (0x00000803), when bit-flipped, is 0xC0100000:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;- The "1" is a default value for bit 11&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;- The is a strange value since the high-order bit must be 0 as described in the reference manual.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;- If we ignore the high-order bit (which is what the CPU seems to do), the divider value is 100 which correspond to PLL/20. I confirmed this divider with an oscilloscope.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;- If we replace this value with 0x00000802 (the same but without the strange bit), the result is the same.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;- I tested other values and all of them worked as expected &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;I hope this message will help others to setup the speed of their QSPI bus.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jul 2022 13:42:57 GMT</pubDate>
    <dc:creator>christopheniclaes</dc:creator>
    <dc:date>2022-07-06T13:42:57Z</dc:date>
    <item>
      <title>LS1020A/LS1021A QSPI Boot Speed Change in RCW</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1020A-LS1021A-QSPI-Boot-Speed-Change-in-RCW/m-p/1485465#M10834</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I post this message in order to share our experience about issues with LS1020A QSPI Boot (also valid for LS1021).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The sample RCW files provided in LSDK all contain a command which change the divider for QSPI clock speed:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;write 0x57015c, 0x00000803&lt;/PRE&gt;&lt;P&gt;Where does this value come from?&lt;/P&gt;&lt;P&gt;Explanation:&lt;/P&gt;&lt;P&gt;- It is a write to&amp;nbsp;SCFG_QSPI_CFG&lt;/P&gt;&lt;P&gt;- As the endianess has not been setup yet, the value to be written is bit-flipped from what you can find in the reference manual.&lt;/P&gt;&lt;P&gt;- The value given in the RCW examples (0x00000803), when bit-flipped, is 0xC0100000:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;- The "1" is a default value for bit 11&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;- The is a strange value since the high-order bit must be 0 as described in the reference manual.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;- If we ignore the high-order bit (which is what the CPU seems to do), the divider value is 100 which correspond to PLL/20. I confirmed this divider with an oscilloscope.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;- If we replace this value with 0x00000802 (the same but without the strange bit), the result is the same.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;- I tested other values and all of them worked as expected &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;I hope this message will help others to setup the speed of their QSPI bus.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 13:42:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1020A-LS1021A-QSPI-Boot-Speed-Change-in-RCW/m-p/1485465#M10834</guid>
      <dc:creator>christopheniclaes</dc:creator>
      <dc:date>2022-07-06T13:42:57Z</dc:date>
    </item>
  </channel>
</rss>

