<?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>i.MX ProcessorsのトピックGPIO Driver</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-Driver/m-p/199557#M10852</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;I want to add&lt;/SPAN&gt; &lt;SPAN&gt;a GPIO drive&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt; &lt;SPAN&gt;to realize the GPIO&lt;/SPAN&gt; &lt;SPAN&gt;button functions&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN&gt;who&lt;/SPAN&gt; &lt;SPAN class="highlight"&gt;can give suggestions?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jan 2012 05:43:28 GMT</pubDate>
    <dc:creator>embed_wu</dc:creator>
    <dc:date>2012-01-04T05:43:28Z</dc:date>
    <item>
      <title>GPIO Driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-Driver/m-p/199557#M10852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;I want to add&lt;/SPAN&gt; &lt;SPAN&gt;a GPIO drive&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt; &lt;SPAN&gt;to realize the GPIO&lt;/SPAN&gt; &lt;SPAN&gt;button functions&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN&gt;who&lt;/SPAN&gt; &lt;SPAN class="highlight"&gt;can give suggestions?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2012 05:43:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPIO-Driver/m-p/199557#M10852</guid>
      <dc:creator>embed_wu</dc:creator>
      <dc:date>2012-01-04T05:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO Driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-Driver/m-p/199558#M10853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can reference to the iMX pwrkey driver "linux\drivers\input\keyboard\mxc_pwrkey.c", and the machine code can be found from "linux\arch\arm\mach-mx5\mx51_babbage.c", it used an GPIO to work as power key.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;static void mxc_register_powerkey(pwrkey_callback pk_cb)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;/* Set power key as wakeup resource */&lt;BR /&gt;&amp;nbsp;int irq, ret;&lt;BR /&gt;&amp;nbsp;irq = gpio_to_irq(BABBAGE_POWER_KEY);&lt;/P&gt;&lt;P&gt;&amp;nbsp;if (gpio_get_value(BABBAGE_POWER_KEY))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;set_irq_type(irq, IRQF_TRIGGER_FALLING);&lt;BR /&gt;&amp;nbsp;else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;set_irq_type(irq, IRQF_TRIGGER_RISING);&lt;/P&gt;&lt;P&gt;&amp;nbsp;ret = request_irq(irq, power_key_int, 0, "power_key", pk_cb);&lt;BR /&gt;&amp;nbsp;if (ret)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;pr_info("register on-off key interrupt failed\n");&lt;BR /&gt;&amp;nbsp;else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;enable_irq_wake(irq);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;static int mxc_pwrkey_getstatus(int id)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;return gpio_get_value(BABBAGE_POWER_KEY);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;static struct power_key_platform_data pwrkey_data = {&lt;BR /&gt;&amp;nbsp;.key_value = KEY_F4,&lt;BR /&gt;&amp;nbsp;.register_pwrkey = mxc_register_powerkey,&lt;BR /&gt;&amp;nbsp;.get_key_status = mxc_pwrkey_getstatus,&lt;BR /&gt;};&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2012 03:53:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPIO-Driver/m-p/199558#M10853</guid>
      <dc:creator>qiang_li-mpu_se</dc:creator>
      <dc:date>2012-01-05T03:53:59Z</dc:date>
    </item>
  </channel>
</rss>

