<?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: WL1271 register power function with MMC device in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/WL1271-register-power-function-with-MMC-device/m-p/345535#M47697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've implemented this scheme but the problem is still there. My understanding is that I should see the set power function called at the correct time. The correct time being when the interface is configured up and down. However this is not happening and I still have the problem. There seems to some linkage missing between the SDIO/MMC stack and the low level set-power.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Android and kernel version are older than the one used in the IMX6 but I believe I've implemented an equivalent functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Sep 2014 09:50:36 GMT</pubDate>
    <dc:creator>bdp42</dc:creator>
    <dc:date>2014-09-26T09:50:36Z</dc:date>
    <item>
      <title>WL1271 register power function with MMC device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/WL1271-register-power-function-with-MMC-device/m-p/345532#M47694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a custom iMX53 based platform running Android Gingerbread, Linux kernel 2.6.35 with a TiWi-BLE Wlan/Bluetooth device using the SDIO interface for WLAN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a problem when the radio is being restarted where the OS loses communication with the radio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like the problem is caused by the fact that the power control initialisation in the platform-specific section is not being done correctly. The WL12xx porting guide&lt;/P&gt;&lt;P&gt;&lt;A href="http://processors.wiki.ti.com/index.php/WL127x_Porting_Guide#Board_Initialization_file" rel="nofollow noopener noreferrer" target="_blank"&gt;http://processors.wiki.ti.com/index.php/WL127x_Porting_Guide#Board_Initialization_file&lt;/A&gt;&lt;/P&gt;&lt;P&gt;has a section on power control and details how to register the power control function with the MMC device. Specifically the key piece of code is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_14116375133063358 jive_text_macro jive_macro_code" jivemacro_uid="_14116375133063358" modifiedtitle="true"&gt;
&lt;P&gt;static void wl12xx_init(int evm_id, int profile)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;struct device *dev;&lt;/P&gt;
&lt;P&gt;struct omap_mmc_platform_data *pdata;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;…&lt;/P&gt;
&lt;P&gt;…&lt;/P&gt;
&lt;P&gt;dev = am335x_mmc[1].dev;&lt;/P&gt;
&lt;P&gt;…&lt;/P&gt;
&lt;P&gt;pdata-&amp;gt;slots[0].set_power = wl12xx_set_power;&lt;/P&gt;
&lt;P&gt;out:&lt;/P&gt;
&lt;P&gt;return;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done a similar thing on our platform in the WL1271 driver. I dont think this is correct and the right approach is to do this in the board-specific code as specified in the porting guide. However the example above is TI/OMAP-specific and I'm unsure how to do this on the Freescale platform since the structures are different and the Freescale structures do no appear to support this in the same way.&lt;/P&gt;&lt;P&gt;Can anyone clarify if this is the right thing to do and how this is done on the Freescale platform?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 09:52:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/WL1271-register-power-function-with-MMC-device/m-p/345532#M47694</guid>
      <dc:creator>bdp42</dc:creator>
      <dc:date>2014-09-25T09:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: WL1271 register power function with MMC device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/WL1271-register-power-function-with-MMC-device/m-p/345533#M47695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That way (following TI's instructions) leads to disaster!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We wrote some notes about this a while back:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://boundarydevices.com/android-jellybean-on-i-mx6-with-no-disclaimers/#wifi" title="http://boundarydevices.com/android-jellybean-on-i-mx6-with-no-disclaimers/#wifi"&gt;http://boundarydevices.com/android-jellybean-on-i-mx6-with-no-disclaimers/#wifi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The gist of it is in the sdhci.c file, which expects to be able to toggle a GPIO through&lt;/P&gt;&lt;P&gt;the SDHCI registers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="https://github.com/boundarydevices/linux-imx6/blob/cdee0ec7fd5cdd21c205e76fea6398eea343eec0/drivers/mmc/host/sdhci.c#L1352" title="https://github.com/boundarydevices/linux-imx6/blob/cdee0ec7fd5cdd21c205e76fea6398eea343eec0/drivers/mmc/host/sdhci.c#L1352"&gt;linux-imx6/sdhci.c at cdee0ec7fd5cdd21c205e76fea6398eea343eec0 · boundarydevices/linux-imx6 · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the i.MX5x and i.MX6x SDHCI controller doesn't support this, you need to allow a call-back&lt;/P&gt;&lt;P&gt;into platform-specific code to toggle the RESET pin on the WL1271.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 13:56:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/WL1271-register-power-function-with-MMC-device/m-p/345533#M47695</guid>
      <dc:creator>EricNelson</dc:creator>
      <dc:date>2014-09-25T13:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: WL1271 register power function with MMC device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/WL1271-register-power-function-with-MMC-device/m-p/345534#M47696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This looks very useful. I will investigate and see how it goes. We have an older Android and kernel version but the principle is presumably the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 08:27:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/WL1271-register-power-function-with-MMC-device/m-p/345534#M47696</guid>
      <dc:creator>bdp42</dc:creator>
      <dc:date>2014-09-26T08:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: WL1271 register power function with MMC device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/WL1271-register-power-function-with-MMC-device/m-p/345535#M47697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've implemented this scheme but the problem is still there. My understanding is that I should see the set power function called at the correct time. The correct time being when the interface is configured up and down. However this is not happening and I still have the problem. There seems to some linkage missing between the SDIO/MMC stack and the low level set-power.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Android and kernel version are older than the one used in the IMX6 but I believe I've implemented an equivalent functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 09:50:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/WL1271-register-power-function-with-MMC-device/m-p/345535#M47697</guid>
      <dc:creator>bdp42</dc:creator>
      <dc:date>2014-09-26T09:50:36Z</dc:date>
    </item>
  </channel>
</rss>

