<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@等线";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Arial Narrow";
        panose-1:2 11 6 6 2 2 2 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.gmail-m-6064122675089964078msolistparagraph, li.gmail-m-6064122675089964078msolistparagraph, div.gmail-m-6064122675089964078msolistparagraph
        {mso-style-name:gmail-m_-6064122675089964078msolistparagraph;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:DengXian;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><o:p> </o:p></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph">Best Regards,<o:p></o:p></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><o:p> </o:p></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph">Zhenhua<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>From:</b> meta-freescale-bounces@yoctoproject.org <meta-freescale-bounces@yoctoproject.org>
<b>On Behalf Of </b>Tim Hammer<br>
<b>Sent:</b> Monday, September 10, 2018 11:41 AM<br>
<b>To:</b> meta-freescale@yoctoproject.org<br>
<b>Subject:</b> [meta-freescale] LS1012A USB 2.0<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">On a board design based on the LS1012A Freedom board, we added a USB 2.0 connection (in addition to the USB 3.0 included on the Freedom board).<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I have run into a challenge building the Linux kernel driver to support the ULPI connection.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1F497D">With </span><span style="font-size:10.0pt;font-family:"Courier New";color:black">CONFIG_USB_EHCI_FSL</span><span style="color:#1F497D"> defined, the
 code will not build because </span><span style="font-size:10.0pt;font-family:"Courier New";color:black">CONFIG_PM </span><span style="color:#1F497D">is defined and causes </span><span style="font-size:10.0pt;font-family:"Courier New";color:black">drivers/usb/host/ehci-fsl.c</span><span style="font-size:10.0pt;color:black"> </span><span style="color:#1F497D">to
 try and pull in </span><span style="font-size:10.0pt;font-family:"Courier New";color:black">asm/fsl_pm.h</span><span style="color:#1F497D"> which is not provided for qoriq (only for powerpc!).</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><o:p> </o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Courier New";color:black">CONFIG_PM</span><span style="color:#1F497D"> is:</span><o:p></o:p></p>
<p class="gmail-m-6064122675089964078msolistparagraph" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt">
<span style="font-family:Symbol;color:#1F497D">·</span><span style="font-size:7.0pt;font-family:"Times New Roman",serif;color:#1F497D">         </span><span style="color:#1F497D">not in arch/arm64/configs/defconfig (which I am pretty sure is used as the â€œbase”
 for </span><span style="font-size:10.0pt;font-family:"Courier New";color:black">make defconfig</span><span style="color:#1F497D"> in </span><span style="font-size:10.0pt;font-family:"Courier New";color:black">meta-freescale/recipes-kernel/linux/<a href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flinux-qoriq_4.14.bb%2F&data=02%7C01%7Czhenhua.luo%40nxp.com%7C979924ffd21d46edc99508d616cf45d8%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C636721476826179512&sdata=bqnBBZuT1J9PnL7kN7hXQn8ofjVeaQZP1Dn%2BRzI4V9c%3D&reserved=0" target="_blank">linux-qoriq_4.14.bb</a></span><span style="color:#1F497D">)</span><o:p></o:p></p>
<p class="gmail-m-6064122675089964078msolistparagraph" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt">
<span style="font-family:Symbol;color:#1F497D">·</span><span style="font-size:7.0pt;font-family:"Times New Roman",serif;color:#1F497D">         </span><span style="color:#1F497D">nor is it in </span><span style="font-size:10.0pt;font-family:"Courier New";color:black">arch/arm64/configs/lsdk.config</span><span style="color:#1F497D"> (which
 I am pretty sure is the </span><span style="font-size:10.0pt;font-family:"Courier New";color:black">DELTA_KERNEL_DEFCONFIG</span><span style="color:#1F497D"> used in </span><span style="font-size:10.0pt;font-family:"Courier New";color:black">meta-freescale/recipes-kernel/linux/<a href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flinux-qoriq_4.14.bb%2F&data=02%7C01%7Czhenhua.luo%40nxp.com%7C979924ffd21d46edc99508d616cf45d8%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C636721476826179512&sdata=bqnBBZuT1J9PnL7kN7hXQn8ofjVeaQZP1Dn%2BRzI4V9c%3D&reserved=0" target="_blank">linux-qoriq_4.14.bb</a></span><span style="color:#1F497D">)</span><o:p></o:p></p>
<p class="gmail-m-6064122675089964078msolistparagraph" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt">
<span style="font-family:Symbol;color:#1F497D">·</span><span style="font-size:7.0pt;font-family:"Times New Roman",serif;color:#1F497D">         </span><span style="color:#1F497D">nor can I find it in any </span><span style="font-size:10.0pt;font-family:"Courier New";color:black">Kconfig</span><span style="color:#1F497D"> in
 the linux-qoriq source tree</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><o:p> </o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1F497D">Even so, it ends up in the .config file created when I build the linux-qoriq recipe. </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Can anyone point out what I am missing that results in CONFIG_PM getting defined? <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I have put in a workaround to #undef CONFIG_PM in ehci-fsl.c and am now able to get the second USB 2.0 bus, but I would like to find the "root source" to patch if I can.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks!<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><br>
<span style="font-family:"Arial Narrow",sans-serif">.Tim</span><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>