<?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: power on without PMIC in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/power-on-without-PMIC/m-p/793406#M122884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi victor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for debugging kernel hanging one can use AN4553 Using Open Source Debugging Tools&lt;/P&gt;&lt;P&gt;for Linux on i.MX Processors&lt;BR /&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4553.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN4553.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As pmic is highly integrated to linux codes, I am afraid it is not possible to use the same image&lt;/P&gt;&lt;P&gt;which included power management on the board which have no PMIC. One look at codes and remove&lt;/P&gt;&lt;P&gt;all pmic related functions and references, note uboot also has such codes.&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>Mon, 09 Jul 2018 10:18:10 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2018-07-09T10:18:10Z</dc:date>
    <item>
      <title>power on without PMIC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/power-on-without-PMIC/m-p/793405#M122883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;I'm working on i.MX6 DL sabreSD board without PMIC.&lt;/P&gt;&lt;P&gt;I build image with Android 6 source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I read the document "i.MX Linux® Reference Manual" I tried to modify Power Management configuration in menuconfig to disabled it.&lt;/P&gt;&lt;P&gt;These were what I had done.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;disabled CONFIG_PM&lt;/P&gt;&lt;P&gt;disabled CONFIG_SUSPEND&lt;/P&gt;&lt;P&gt;disabled&amp;nbsp;PF100 Regulator Driver&lt;/P&gt;&lt;P&gt;disabled&amp;nbsp;Anatop Regulator Driver&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But after I disabled all this configuration and rebuild image, it showed error to me and said there is something undeclared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am afraid that it will cause the system cannot reboot normally or it would dead when I starting the kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are my questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Can I use the same image which included power management on the board which have no PMIC?&lt;/LI&gt;&lt;LI&gt;If can't what can I do ? Did I just need to set all configurations which are related with PMIC to disabled or I have to modify driver to fitch board which have no PMIC?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advanced!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 07:45:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/power-on-without-PMIC/m-p/793405#M122883</guid>
      <dc:creator>wangvictor</dc:creator>
      <dc:date>2018-07-09T07:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: power on without PMIC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/power-on-without-PMIC/m-p/793406#M122884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi victor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for debugging kernel hanging one can use AN4553 Using Open Source Debugging Tools&lt;/P&gt;&lt;P&gt;for Linux on i.MX Processors&lt;BR /&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4553.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN4553.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As pmic is highly integrated to linux codes, I am afraid it is not possible to use the same image&lt;/P&gt;&lt;P&gt;which included power management on the board which have no PMIC. One look at codes and remove&lt;/P&gt;&lt;P&gt;all pmic related functions and references, note uboot also has such codes.&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>Mon, 09 Jul 2018 10:18:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/power-on-without-PMIC/m-p/793406#M122884</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-07-09T10:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: power on without PMIC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/power-on-without-PMIC/m-p/793407#M122885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&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;Thanks for your reply.&lt;/P&gt;&lt;P&gt;And I had try to set Power Management disabled and compile it.&lt;/P&gt;&lt;P&gt;But I got an error here.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;host C++: libicuuc-host_32 &amp;lt;= external/icu/icu4c/source/common/ustrenum.cpp&lt;BR /&gt;drivers/pci/host/pci-imx6.c:1413:10: error: 'pci_imx_pm_ops' undeclared here (not in a function)&lt;BR /&gt; .pm = &amp;amp;pci_imx_pm_ops,&lt;BR /&gt; ^&lt;BR /&gt;make[4]: *** [drivers/pci/host/pci-imx6.o] Error 1&lt;BR /&gt;make[4]: *** Waiting for unfinished jobs....&lt;BR /&gt;make[3]: *** [drivers/pci/host] Error 2&lt;BR /&gt;make[3]: *** Waiting for unfinished jobs....&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;After I traced the code I found that&amp;nbsp;"pci_imx_pm_ops" is defined at pci-imx6.c&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;#ifdef CONFIG_PM_SLEEP&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;static const struct dev_pm_ops pci_imx_pm_ops = {&lt;BR /&gt; .suspend_noirq = pci_imx_suspend_noirq,&lt;BR /&gt; .resume_noirq = pci_imx_resume_noirq,&lt;BR /&gt; .freeze_noirq = pci_imx_suspend_noirq,&lt;BR /&gt; .thaw_noirq = pci_imx_resume_noirq,&lt;BR /&gt; .poweroff_noirq = pci_imx_suspend_noirq,&lt;BR /&gt; .restore_noirq = pci_imx_resume_noirq,&lt;BR /&gt;};&lt;BR /&gt;#endif&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;static struct platform_driver imx6_pcie_driver = {&lt;BR /&gt; .driver = {&lt;BR /&gt; .name = "imx6q-pcie",&lt;BR /&gt; .of_match_table = imx6_pcie_of_match,&lt;BR /&gt; .pm = &amp;amp;pci_imx_pm_ops,&lt;BR /&gt; },&lt;BR /&gt; .shutdown = imx6_pcie_shutdown,&lt;BR /&gt;};&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As you can see pci_imx_pm_ops is defined in CONFIG_PM_SLEEP but since I disabled CONFIG_PM the CONFIG_PM_SLEEP will also be disabled.&lt;/P&gt;&lt;P&gt;That means code will not defined pci_imx_pm_ops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But imx6_pcie_driver still defined ".pm = &amp;amp;pci_imx_pm_ops" at the end of the code even &lt;SPAN&gt;pci_imx_pm_ops do not be defined at all&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;This is what I can not understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If pci_imx_pm_ops is defined in CONFIG_PM_SLEEP why did imx6_pcie_driver's&amp;nbsp; ".pm = &amp;amp;pci_imx_pm_ops" do not defined in CONFIG_PM_SLEEP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if I mark&amp;nbsp;&lt;SPAN&gt;out&amp;nbsp;".pm = &amp;amp;pci_imx_pm_ops", would kernel system appear with error that I didn't know?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in Advanced!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 02:50:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/power-on-without-PMIC/m-p/793407#M122885</guid>
      <dc:creator>wangvictor</dc:creator>
      <dc:date>2018-07-10T02:50:29Z</dc:date>
    </item>
  </channel>
</rss>

