aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3/mx31lite.c
diff options
context:
space:
mode:
authorMagnus Lilja <lilja.magnus@gmail.com>2009-05-04 16:18:09 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2009-05-16 10:17:40 -0400
commit183c7fff50a6a83234b5dc6673b6906bd7145326 (patch)
treece68dfd88d9c8263630309875abc980c1f4f153f /arch/arm/mach-mx3/mx31lite.c
parentc8a4fb472c5101ec52f94b1e1277b8fde4b823cf (diff)
i.MX31: Add NAND device driver for Litekit board.
Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/mx31lite.c')
-rw-r--r--arch/arm/mach-mx3/mx31lite.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/mx31lite.c b/arch/arm/mach-mx3/mx31lite.c
index e70922913164..86fe70fa3e13 100644
--- a/arch/arm/mach-mx3/mx31lite.c
+++ b/arch/arm/mach-mx3/mx31lite.c
@@ -38,6 +38,7 @@
38#include <mach/imx-uart.h> 38#include <mach/imx-uart.h>
39#include <mach/iomux-mx3.h> 39#include <mach/iomux-mx3.h>
40#include <mach/irqs.h> 40#include <mach/irqs.h>
41#include <mach/mxc_nand.h>
41#include "devices.h" 42#include "devices.h"
42 43
43/* 44/*
@@ -58,6 +59,11 @@ static struct imxuart_platform_data uart_pdata = {
58 .flags = IMXUART_HAVE_RTSCTS, 59 .flags = IMXUART_HAVE_RTSCTS,
59}; 60};
60 61
62static struct mxc_nand_platform_data mx31lite_nand_board_info = {
63 .width = 1,
64 .hw_ecc = 1,
65};
66
61static struct smsc911x_platform_config smsc911x_config = { 67static struct smsc911x_platform_config smsc911x_config = {
62 .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW, 68 .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
63 .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL, 69 .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL,
@@ -124,6 +130,7 @@ static void __init mxc_board_init(void)
124 "mx31lite"); 130 "mx31lite");
125 131
126 mxc_register_device(&mxc_uart_device0, &uart_pdata); 132 mxc_register_device(&mxc_uart_device0, &uart_pdata);
133 mxc_register_device(&mxc_nand_device, &mx31lite_nand_board_info);
127 134
128 /* SMSC9117 IRQ pin */ 135 /* SMSC9117 IRQ pin */
129 ret = gpio_request(IOMUX_TO_GPIO(MX31_PIN_SFS6), "sms9117-irq"); 136 ret = gpio_request(IOMUX_TO_GPIO(MX31_PIN_SFS6), "sms9117-irq");