Hi Fabio,<br><br><div class="gmail_quote">2010/10/20 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>
<div><div></div><div class="h5"><br>
On Tue, Oct 19, 2010 at 2:54 PM, Fabio Estevam <<a href="mailto:festevam@gmail.com">festevam@gmail.com</a>> wrote:<br>
> On Tue, Oct 19, 2010 at 1:59 PM, xiao jiang <<a href="mailto:jgq516@gmail.com">jgq516@gmail.com</a>> wrote:<br>
>><br>
>><br>
> ...<br>
>>><br>
>> I don't think so, since **_PIN_** is expected for IOMUX_TO_IRQ, not<br>
>> **_PAD_**, and I think kernel can't pass compile with<br>
>> "IOMUX_TO_IRQ(MX35_PAD_GPIO1_1__GPIO1_1)"<br>
><br>
> Have you tried the same method as in MX51_3ds?<br>
><br>
> #define EXPIO_PARENT_INT (MXC_INTERNAL_IRQS + GPIO_PORTx + y)<br>
><br>
> Regards,<br>
><br>
> Fabio Estevam<br>
><br>
<br>
</div></div>Please try the the patch below. Worked fine for me.<br></blockquote><div>The patch is ok for me too, and the definition of EXPIO_PARENT_INT is similar like mx51_3ds board<br>as I had said before. <br>But since mxc_expio_init() should be return <b>0</b> if the debug board is detected, We should use<br>
mxc_expio_init(**_BASE_ADDR, EXPIO_PARENT_INT) other than !mxc_expio_init(**_BASE_ADDR, EXPIO_PARENT_INT), right? The same issue also existed in mach-mx31_3ds.c.<br><br>Thanks,<br>Xiao Jiang<br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
</blockquote><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
diff --git a/arch/arm/mach-mx3/Kconfig b/arch/arm/mach-mx3/Kconfig<br>
index 096fd33..9658e2d 100644<br>
--- a/arch/arm/mach-mx3/Kconfig<br>
+++ b/arch/arm/mach-mx3/Kconfig<br>
@@ -143,6 +143,7 @@ config MACH_ARMADILLO5X0<br>
config MACH_MX35_3DS<br>
bool "Support MX35PDK platform"<br>
select ARCH_MX35<br>
+ select MXC_DEBUG_BOARD<br>
select IMX_HAVE_PLATFORM_IMX_UART<br>
select IMX_HAVE_PLATFORM_MXC_NAND<br>
default n<br>
<div class="im">diff --git a/arch/arm/mach-mx3/mach-mx35_3ds.c<br>
b/arch/arm/mach-mx3/mach-mx35_3ds.c<br>
</div>index 91bb065..b7e6b9c 100644<br>
<div class="im">--- a/arch/arm/mach-mx3/mach-mx35_3ds.c<br>
+++ b/arch/arm/mach-mx3/mach-mx35_3ds.c<br>
</div>@@ -39,10 +39,15 @@<br>
#include <mach/common.h><br>
<div class="im"> #include <mach/iomux-mx35.h><br>
</div> #include <mach/mxc_ehci.h><br>
<div class="im">+#include <mach/3ds_debugboard.h><br>
</div>+#include <mach/irqs.h><br>
<div class="im"><br>
#include "devices-imx35.h"<br>
#include "devices.h"<br>
<br>
</div>+#define EXPIO_PARENT_INT (MXC_INTERNAL_IRQS + GPIO_PORTA + 1)<br>
<div class="im">+<br>
static const struct imxuart_platform_data uart_pdata __initconst = {<br>
.flags = IMXUART_HAVE_RTSCTS,<br>
};<br>
</div>@@ -140,6 +145,10 @@ static void __init mxc_board_init(void)<br>
mxc_register_device(&mxc_usbh1, &usb_host_pdata);<br>
<br>
imx35_add_mxc_nand(&mx35pdk_nand_board_info);<br>
+<br>
+ if (!mxc_expio_init(MX35_CS5_BASE_ADDR, EXPIO_PARENT_INT))<br>
+ printk(KERN_WARNING "Init of the debugboard failed, all "<br>
<div><div></div><div class="h5">+ "devices on the board are unusable.\n");<br>
}<br>
<br>
static void __init mx35pdk_timer_init(void)<br>
</div></div></blockquote></div><br>