<br><br><div class="gmail_quote">2010/10/19 Fabio Estevam <span dir="ltr"><<a href="mailto:festevam@gmail.com">festevam@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Xiao,<br>
...<br>
<div class="im"><br>
> I tried to use MX35_PAD_GPIO1_1__GPIO1_1, but there isn't function to<br>
> transform to irq num, so I added<br>
> the pin definition in iomux-mx3.h. Is there any function can transform the<br>
> PAD to irq num?<br>
<br>
</div>You can do the following:<br>
<br>
#define EXPIO_PARENT_INT IOMUX_TO_IRQ(MX35_PAD_GPIO1_1__GPIO1_1)<br>
<br>
and also add MX35_PAD_GPIO1_1__GPIO1_1 into the mx35pdk_pads struct.<br>
<br></blockquote><div>I don't think so, since **_PIN_** is expected for IOMUX_TO_IRQ, not **_PAD_**, and I think kernel can't pass compile with "IOMUX_TO_IRQ(MX35_PAD_GPIO1_1__GPIO1_1)"<br>
<br>Thanks,<br>
Xiao Jiang <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Regards,<br>
<font color="#888888"><br>
Fabio Estevam<br>
</font></blockquote></div><br>