<?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 iMX8QXP C0: Why didn't SCFW reboot function work ? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QXP-C0-Why-didn-t-SCFW-reboot-function-work/m-p/1153651#M161859</link>
    <description>&lt;P&gt;Hi, all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are devepping our custom i.mx8qxp C0 version board based L4.14.98.2.3.0&lt;/P&gt;&lt;P&gt;When I issue reset(uboot) or reboot(kernel), I 'd like to reset PMIC.&lt;/P&gt;&lt;P&gt;but, when I did reset command on u-boot , I found that&amp;nbsp; sc_pm_reboot() didn't work.&lt;/P&gt;&lt;P&gt;this is reset command from reset.c in u-boot.&lt;/P&gt;&lt;P&gt;int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])&lt;BR /&gt;{&lt;BR /&gt;puts ("resetting...\n");&lt;/P&gt;&lt;P&gt;udelay (50000); /* wait 50 ms */&lt;BR /&gt;disable_interrupts();&lt;BR /&gt;reset_misc(); /*call goes to armv8 fwcall.c PSCI reset and never returns*/&lt;BR /&gt;reset_cpu(0);&lt;/P&gt;&lt;P&gt;/*NOTREACHED*/&lt;BR /&gt;return 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;and, reset_cpu(0) comes from imx8qxp_mek.c&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;* Board specific reset that is system reset.&lt;BR /&gt;*/&lt;BR /&gt;void reset_cpu(ulong addr)&lt;BR /&gt;{&lt;BR /&gt;puts("SCI reboot request");&lt;BR /&gt;sc_pm_reboot(SC_IPC_CH, SC_PM_RESET_TYPE_COLD);&lt;/P&gt;&lt;P&gt;while (1)&lt;BR /&gt;putc('.');&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I comment out reset_misc() in do_reset(),&amp;nbsp; I get dots in while loop like this,&lt;/P&gt;&lt;P&gt;..............................................&lt;/P&gt;&lt;P&gt;so, I think sc_pm_reboot() didn't work.&lt;/P&gt;&lt;P&gt;How can I make sc_pm_reboot() work ?&lt;/P&gt;&lt;P&gt;Is there any other way to reset PMIC ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Sep 2020 19:21:35 GMT</pubDate>
    <dc:creator>jw_song</dc:creator>
    <dc:date>2020-09-15T19:21:35Z</dc:date>
    <item>
      <title>iMX8QXP C0: Why didn't SCFW reboot function work ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QXP-C0-Why-didn-t-SCFW-reboot-function-work/m-p/1153651#M161859</link>
      <description>&lt;P&gt;Hi, all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are devepping our custom i.mx8qxp C0 version board based L4.14.98.2.3.0&lt;/P&gt;&lt;P&gt;When I issue reset(uboot) or reboot(kernel), I 'd like to reset PMIC.&lt;/P&gt;&lt;P&gt;but, when I did reset command on u-boot , I found that&amp;nbsp; sc_pm_reboot() didn't work.&lt;/P&gt;&lt;P&gt;this is reset command from reset.c in u-boot.&lt;/P&gt;&lt;P&gt;int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])&lt;BR /&gt;{&lt;BR /&gt;puts ("resetting...\n");&lt;/P&gt;&lt;P&gt;udelay (50000); /* wait 50 ms */&lt;BR /&gt;disable_interrupts();&lt;BR /&gt;reset_misc(); /*call goes to armv8 fwcall.c PSCI reset and never returns*/&lt;BR /&gt;reset_cpu(0);&lt;/P&gt;&lt;P&gt;/*NOTREACHED*/&lt;BR /&gt;return 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;and, reset_cpu(0) comes from imx8qxp_mek.c&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;* Board specific reset that is system reset.&lt;BR /&gt;*/&lt;BR /&gt;void reset_cpu(ulong addr)&lt;BR /&gt;{&lt;BR /&gt;puts("SCI reboot request");&lt;BR /&gt;sc_pm_reboot(SC_IPC_CH, SC_PM_RESET_TYPE_COLD);&lt;/P&gt;&lt;P&gt;while (1)&lt;BR /&gt;putc('.');&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I comment out reset_misc() in do_reset(),&amp;nbsp; I get dots in while loop like this,&lt;/P&gt;&lt;P&gt;..............................................&lt;/P&gt;&lt;P&gt;so, I think sc_pm_reboot() didn't work.&lt;/P&gt;&lt;P&gt;How can I make sc_pm_reboot() work ?&lt;/P&gt;&lt;P&gt;Is there any other way to reset PMIC ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 19:21:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QXP-C0-Why-didn-t-SCFW-reboot-function-work/m-p/1153651#M161859</guid>
      <dc:creator>jw_song</dc:creator>
      <dc:date>2020-09-15T19:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8QXP C0: Why didn't SCFW reboot function work ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QXP-C0-Why-didn-t-SCFW-reboot-function-work/m-p/1153727#M161873</link>
      <description>&lt;P&gt;Hi&amp;nbsp;jaewhansong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;L4.14.98.2.3.0 is old kerenel, please try latest which has many improvements&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_5.4.24_2.1.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_5.4.24_2.1.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Linux 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"&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>Wed, 16 Sep 2020 01:16:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QXP-C0-Why-didn-t-SCFW-reboot-function-work/m-p/1153727#M161873</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-09-16T01:16:39Z</dc:date>
    </item>
  </channel>
</rss>

