summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-11-23 17:34:04 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2008-12-16 14:58:14 +0100
commit3287abbd71fded81469adce21628e838c566b86b (patch)
treedc54f9d20a9b24846e60b8ab2dd00181bbc6dfa3 /arch/arm/mach-mx3
parentcb96cf1ad641334ca605cdf25841ac020d6ae01c (diff)
downloadlinux-3287abbd71fded81469adce21628e838c566b86b.tar.gz
linux-3287abbd71fded81469adce21628e838c566b86b.tar.bz2
linux-3287abbd71fded81469adce21628e838c566b86b.zip
[ARM] pcm037: add NAND support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3')
-rw-r--r--arch/arm/mach-mx3/pcm037.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/pcm037.c b/arch/arm/mach-mx3/pcm037.c
index 4438444ce749..8cea82587222 100644
--- a/arch/arm/mach-mx3/pcm037.c
+++ b/arch/arm/mach-mx3/pcm037.c
@@ -36,6 +36,7 @@
#include <mach/imx-uart.h>
#include <mach/iomux-mx3.h>
#include <mach/board-pcm037.h>
+#include <mach/mxc_nand.h>
#include "devices.h"
@@ -111,6 +112,11 @@ static struct platform_device pcm037_sram_device = {
.resource = &pcm038_sram_resource,
};
+static struct mxc_nand_platform_data pcm037_nand_board_info = {
+ .width = 1,
+ .hw_ecc = 1,
+};
+
static struct platform_device *devices[] __initdata = {
&pcm037_flash,
&pcm037_eth,
@@ -143,6 +149,8 @@ static void __init mxc_board_init(void)
mxc_iomux_mode(IOMUX_MODE(MX31_PIN_GPIO3_1, IOMUX_CONFIG_GPIO));
if (!gpio_request(MX31_PIN_GPIO3_1, "pcm037-eth"))
gpio_direction_input(MX31_PIN_GPIO3_1);
+
+ mxc_register_device(&mxc_nand_device, &pcm037_nand_board_info);
}
/*