aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3/mach-mx31lite.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-06-16 06:23:11 -0400
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-06-30 03:00:34 -0400
commita2ceeef59f8fc9303dd23ebe09e9daca70799ff5 (patch)
treec25571df25c4693880cfb5548a86c2f706766939 /arch/arm/mach-mx3/mach-mx31lite.c
parent0e7a29a8d97c4ea86b9975e65f554c0398a8fdbf (diff)
ARM: imx: Change the way nand devices are registered (imx31)
Make use of new mechanism to register a nand device. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/mach-mx31lite.c')
-rw-r--r--arch/arm/mach-mx3/mach-mx31lite.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/mach-mx3/mach-mx31lite.c b/arch/arm/mach-mx3/mach-mx31lite.c
index edcc7114e829..f0a68e64e004 100644
--- a/arch/arm/mach-mx3/mach-mx31lite.c
+++ b/arch/arm/mach-mx3/mach-mx31lite.c
@@ -41,11 +41,11 @@
41#include <mach/imx-uart.h> 41#include <mach/imx-uart.h>
42#include <mach/iomux-mx3.h> 42#include <mach/iomux-mx3.h>
43#include <mach/irqs.h> 43#include <mach/irqs.h>
44#include <mach/mxc_nand.h>
45#include <mach/spi.h> 44#include <mach/spi.h>
46#include <mach/mxc_ehci.h> 45#include <mach/mxc_ehci.h>
47#include <mach/ulpi.h> 46#include <mach/ulpi.h>
48 47
48#include "devices-imx31.h"
49#include "devices.h" 49#include "devices.h"
50 50
51/* 51/*
@@ -65,7 +65,8 @@ static unsigned int mx31lite_pins[] = {
65 MX31_PIN_CSPI2_SS2__SS2, 65 MX31_PIN_CSPI2_SS2__SS2,
66}; 66};
67 67
68static struct mxc_nand_platform_data mx31lite_nand_board_info = { 68static const struct mxc_nand_platform_data
69mx31lite_nand_board_info __initconst = {
69 .width = 1, 70 .width = 1,
70 .hw_ecc = 1, 71 .hw_ecc = 1,
71}; 72};
@@ -249,7 +250,7 @@ static void __init mxc_board_init(void)
249 250
250 /* NOR and NAND flash */ 251 /* NOR and NAND flash */
251 platform_device_register(&physmap_flash_device); 252 platform_device_register(&physmap_flash_device);
252 mxc_register_device(&mxc_nand_device, &mx31lite_nand_board_info); 253 imx31_add_mxc_nand(&mx31lite_nand_board_info);
253 254
254 mxc_register_device(&mxc_spi_device1, &spi1_pdata); 255 mxc_register_device(&mxc_spi_device1, &spi1_pdata);
255 spi_register_board_info(&mc13783_spi_dev, 1); 256 spi_register_board_info(&mc13783_spi_dev, 1);