summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3/mach-mx35_3ds.c
diff options
context:
space:
mode:
authorXiao Jiang2010-10-21 10:15:50 +0200
committerSascha Hauer2010-10-22 08:29:01 +0200
commit2c6605def534fc6d3d0635dd95f88d3d87d44d9f (patch)
tree1ebfc98c702c1d9eb5ac7f088f84ac892494e206 /arch/arm/mach-mx3/mach-mx35_3ds.c
parentcpufreq for freescale mx51 (diff)
downloadkernel-qcow2-linux-2c6605def534fc6d3d0635dd95f88d3d87d44d9f.tar.gz
kernel-qcow2-linux-2c6605def534fc6d3d0635dd95f88d3d87d44d9f.tar.xz
kernel-qcow2-linux-2c6605def534fc6d3d0635dd95f88d3d87d44d9f.zip
mx35pdk: add debug board support
Enable debug board support for mx35pdk. Signed-off-by: Xiao Jiang <jgq516@gmail.com> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/mach-mx35_3ds.c')
-rw-r--r--arch/arm/mach-mx3/mach-mx35_3ds.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/mach-mx35_3ds.c b/arch/arm/mach-mx3/mach-mx35_3ds.c
index f0277c293f1a..b248c6a6dfb6 100644
--- a/arch/arm/mach-mx3/mach-mx35_3ds.c
+++ b/arch/arm/mach-mx3/mach-mx35_3ds.c
@@ -38,11 +38,15 @@
#include <mach/hardware.h>
#include <mach/common.h>
#include <mach/iomux-mx35.h>
+#include <mach/irqs.h>
+#include <mach/3ds_debugboard.h>
#include <mach/mxc_ehci.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,
};
@@ -148,6 +152,10 @@ static void __init mxc_board_init(void)
imx35_add_mxc_nand(&mx35pdk_nand_board_info);
imx35_add_esdhc(0, NULL);
+
+ if (mxc_expio_init(MX35_CS5_BASE_ADDR, EXPIO_PARENT_INT))
+ pr_warn("Init of the debugboard failed, all "
+ "devices on the debugboard are unusable.\n");
}
static void __init mx35pdk_timer_init(void)