[PATCH 1/1] Mx35pdk: enable debug board support

Fabio Estevam festevam at gmail.com
Tue Oct 19 14:20:54 EDT 2010


Xiao,

On Tue, Oct 19, 2010 at 2:54 PM, Fabio Estevam <festevam at gmail.com> wrote:
> On Tue, Oct 19, 2010 at 1:59 PM, xiao jiang <jgq516 at gmail.com> wrote:
>>
>>
> ...
>>>
>> 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)"
>
> Have you tried the same method as in MX51_3ds?
>
> #define EXPIO_PARENT_INT    (MXC_INTERNAL_IRQS + GPIO_PORTx + y)
>
> Regards,
>
> Fabio Estevam
>

Please try the the patch below. Worked fine for me.

diff --git a/arch/arm/mach-mx3/Kconfig b/arch/arm/mach-mx3/Kconfig
index 096fd33..9658e2d 100644
--- a/arch/arm/mach-mx3/Kconfig
+++ b/arch/arm/mach-mx3/Kconfig
@@ -143,6 +143,7 @@ config MACH_ARMADILLO5X0
 config MACH_MX35_3DS
 	bool "Support MX35PDK platform"
 	select ARCH_MX35
+	select MXC_DEBUG_BOARD
 	select IMX_HAVE_PLATFORM_IMX_UART
 	select IMX_HAVE_PLATFORM_MXC_NAND
 	default n
diff --git a/arch/arm/mach-mx3/mach-mx35_3ds.c
b/arch/arm/mach-mx3/mach-mx35_3ds.c
index 91bb065..b7e6b9c 100644
--- a/arch/arm/mach-mx3/mach-mx35_3ds.c
+++ b/arch/arm/mach-mx3/mach-mx35_3ds.c
@@ -39,10 +39,15 @@
 #include <mach/common.h>
 #include <mach/iomux-mx35.h>
 #include <mach/mxc_ehci.h>
+#include <mach/3ds_debugboard.h>
+#include <mach/irqs.h>

 #include "devices-imx35.h"
 #include "devices.h"

+#define EXPIO_PARENT_INT       (MXC_INTERNAL_IRQS + GPIO_PORTA + 1)
+
 static const struct imxuart_platform_data uart_pdata __initconst = {
 	.flags = IMXUART_HAVE_RTSCTS,
 };
@@ -140,6 +145,10 @@ static void __init mxc_board_init(void)
 	mxc_register_device(&mxc_usbh1, &usb_host_pdata);

 	imx35_add_mxc_nand(&mx35pdk_nand_board_info);
+
+	if (!mxc_expio_init(MX35_CS5_BASE_ADDR, EXPIO_PARENT_INT))
+		printk(KERN_WARNING "Init of the debugboard failed, all "
+				    "devices on the board are unusable.\n");
 }

 static void __init mx35pdk_timer_init(void)



More information about the linux-arm-kernel mailing list