<?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 How to change eMMC(usdhc) frequency from uboot ? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-change-eMMC-usdhc-frequency-from-uboot/m-p/1021395#M151041</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;&lt;/P&gt;&lt;P&gt;How to changes frequency for usdhc frequency&amp;nbsp;in imx6sx board with kernel version: 4.1.15.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have custom board based on imx6sx and we are using eMMC with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have changed value in following but changes are not reflected.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 13px;"&gt;&lt;SPAN&gt;&lt;STRONG&gt;File:&lt;/STRONG&gt;&amp;nbsp;board/freescale/mx6sxsabresd/mx6sxsabresd.c&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 13px;"&gt;&lt;SPAN&gt;&lt;STRONG&gt;API:&lt;/STRONG&gt;&amp;nbsp;board_mmc_init&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;Code : &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 13px;"&gt;&lt;SPAN&gt;usdhc_cfg[2].sdhc_clk = 190000000;&lt;BR /&gt; printf("DEBUG: Passing new EMMC value 190000000\n");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;Output from Linux:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 13px;"&gt;&lt;SPAN&gt; cat /sys/kernel/debug/mmc3/clock&lt;BR /&gt;198000000&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 13px;"&gt;Is it possible to change eMMC frequency for kernel(or dts file) ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Feb 2020 15:22:21 GMT</pubDate>
    <dc:creator>rakesh_patel</dc:creator>
    <dc:date>2020-02-26T15:22:21Z</dc:date>
    <item>
      <title>How to change eMMC(usdhc) frequency from uboot ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-change-eMMC-usdhc-frequency-from-uboot/m-p/1021395#M151041</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;&lt;/P&gt;&lt;P&gt;How to changes frequency for usdhc frequency&amp;nbsp;in imx6sx board with kernel version: 4.1.15.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have custom board based on imx6sx and we are using eMMC with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have changed value in following but changes are not reflected.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 13px;"&gt;&lt;SPAN&gt;&lt;STRONG&gt;File:&lt;/STRONG&gt;&amp;nbsp;board/freescale/mx6sxsabresd/mx6sxsabresd.c&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 13px;"&gt;&lt;SPAN&gt;&lt;STRONG&gt;API:&lt;/STRONG&gt;&amp;nbsp;board_mmc_init&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;Code : &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 13px;"&gt;&lt;SPAN&gt;usdhc_cfg[2].sdhc_clk = 190000000;&lt;BR /&gt; printf("DEBUG: Passing new EMMC value 190000000\n");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;Output from Linux:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 13px;"&gt;&lt;SPAN&gt; cat /sys/kernel/debug/mmc3/clock&lt;BR /&gt;198000000&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 13px;"&gt;Is it possible to change eMMC frequency for kernel(or dts file) ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2020 15:22:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-change-eMMC-usdhc-frequency-from-uboot/m-p/1021395#M151041</guid>
      <dc:creator>rakesh_patel</dc:creator>
      <dc:date>2020-02-26T15:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to change eMMC(usdhc) frequency from uboot ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-change-eMMC-usdhc-frequency-from-uboot/m-p/1021396#M151042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rakesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can try to change usdhc frequency in dcd header&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/uboot-imx/tree/board/freescale/mx6sxsabresd/imximage.cfg?h=nxp/imx_v2016.03_4.1.15_2.0.0_ga" title="https://source.codeaurora.org/external/imx/uboot-imx/tree/board/freescale/mx6sxsabresd/imximage.cfg?h=nxp/imx_v2016.03_4.1.15_2.0.0_ga"&gt;imximage.cfg\mx6sxsabresd\freescale\board - uboot-imx - i.MX U-Boot&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;use Figure 19-2. Clock Tree &lt;A href="https://www.nxp.com/webapp/Download?colCode=IMX6SXRM" target="_blank"&gt;&lt;STRONG&gt;i.MX 6SoloX Applications Processor Reference Manual&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;in linux one can pay attention to "state_100mhz", "state_200mhz" properties&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts/imx6sx-sdb.dtsi?h=imx_4.19.35_1.1.0" title="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts/imx6sx-sdb.dtsi?h=imx_4.19.35_1.1.0"&gt;imx6sx-sdb.dtsi\dts\boot\arm\arch - linux-imx - i.MX Linux kernel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However linux driver sets usdhc frequency automatically based on emmc CSD register&lt;/P&gt;&lt;P&gt;information. May be useful to check :&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://linux-mmc.vger.kernel.narkive.com/90HY5X0m/patch-1-1-mmc-debugfs-set-frequency-to-maximum-possible-on-higher-request" title="https://linux-mmc.vger.kernel.narkive.com/90HY5X0m/patch-1-1-mmc-debugfs-set-frequency-to-maximum-possible-on-higher-request"&gt;[PATCH 1/1] mmc: debugfs: Set frequency to maximum possible on higher request&lt;/A&gt;&amp;nbsp;&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>Thu, 27 Feb 2020 00:42:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-change-eMMC-usdhc-frequency-from-uboot/m-p/1021396#M151042</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-02-27T00:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to change eMMC(usdhc) frequency from uboot ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-change-eMMC-usdhc-frequency-from-uboot/m-p/1021397#M151043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/igorpadykov"&gt;igorpadykov&lt;/A&gt;‌:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for sharing this information.&lt;/P&gt;&lt;P&gt;eMMC frequency changes take effect if frequency is &amp;lt; 100Mhz. For 100Mhz to 198Mhz, it always sets 99Mhz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@imx6sxsabresd:/sys/kernel/debug/mmc3# echo 100000000 &amp;gt; clock &lt;BR /&gt;root@imx6sxsabresd:/sys/kernel/debug/mmc3# cat ios &lt;BR /&gt;clock: 100000000 Hz&lt;BR /&gt;actual clock: 99000000 Hz&lt;BR /&gt;vdd: 21 (3.3 ~ 3.4 V)&lt;BR /&gt;bus mode: 2 (push-pull)&lt;BR /&gt;chip select: 0 (don't care)&lt;BR /&gt;power mode: 2 (on)&lt;BR /&gt;bus width: 3 (8 bits)&lt;BR /&gt;timing spec: 9 (mmc HS200)&lt;BR /&gt;signal voltage: 0 (1.80 V)&lt;BR /&gt;root@imx6sxsabresd:/sys/kernel/debug/mmc3# echo 190000000 &amp;gt; clock &lt;BR /&gt;root@imx6sxsabresd:/sys/kernel/debug/mmc3# cat ios &lt;BR /&gt;clock: 190000000 Hz&lt;BR /&gt;actual clock: 99000000 Hz&lt;BR /&gt;vdd: 21 (3.3 ~ 3.4 V)&lt;BR /&gt;bus mode: 2 (push-pull)&lt;BR /&gt;chip select: 0 (don't care)&lt;BR /&gt;power mode: 2 (on)&lt;BR /&gt;bus width: 3 (8 bits)&lt;BR /&gt;timing spec: 9 (mmc HS200)&lt;BR /&gt;signal voltage: 0 (1.80 V)&lt;BR /&gt;root@imx6sxsabresd:/sys/kernel/debug/mmc3# echo 198000000 &amp;gt; clock &lt;BR /&gt;root@imx6sxsabresd:/sys/kernel/debug/mmc3# cat ios &lt;BR /&gt;clock: 198000000 Hz&lt;BR /&gt;actual clock: 198000000 Hz&lt;BR /&gt;vdd: 21 (3.3 ~ 3.4 V)&lt;BR /&gt;bus mode: 2 (push-pull)&lt;BR /&gt;chip select: 0 (don't care)&lt;BR /&gt;power mode: 2 (on)&lt;BR /&gt;bus width: 3 (8 bits)&lt;BR /&gt;timing spec: 9 (mmc HS200)&lt;BR /&gt;signal voltage: 0 (1.80 V)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any divider need to set anywhere ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2020 13:04:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-change-eMMC-usdhc-frequency-from-uboot/m-p/1021397#M151043</guid>
      <dc:creator>rakesh_patel</dc:creator>
      <dc:date>2020-03-02T13:04:19Z</dc:date>
    </item>
  </channel>
</rss>

