aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3/mach-armadillo5x0.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-armadillo5x0.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-armadillo5x0.c')
-rw-r--r--arch/arm/mach-mx3/mach-armadillo5x0.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/mach-mx3/mach-armadillo5x0.c b/arch/arm/mach-mx3/mach-armadillo5x0.c
index 2a8de89e0b68..633107a69acd 100644
--- a/arch/arm/mach-mx3/mach-armadillo5x0.c
+++ b/arch/arm/mach-mx3/mach-armadillo5x0.c
@@ -53,10 +53,10 @@
53#include <mach/mmc.h> 53#include <mach/mmc.h>
54#include <mach/ipu.h> 54#include <mach/ipu.h>
55#include <mach/mx3fb.h> 55#include <mach/mx3fb.h>
56#include <mach/mxc_nand.h>
57#include <mach/mxc_ehci.h> 56#include <mach/mxc_ehci.h>
58#include <mach/ulpi.h> 57#include <mach/ulpi.h>
59 58
59#include "devices-imx31.h"
60#include "devices.h" 60#include "devices.h"
61#include "crm_regs.h" 61#include "crm_regs.h"
62 62
@@ -300,7 +300,8 @@ static struct platform_device armadillo5x0_button_device = {
300/* 300/*
301 * NAND Flash 301 * NAND Flash
302 */ 302 */
303static struct mxc_nand_platform_data armadillo5x0_nand_flash_pdata = { 303static const struct mxc_nand_platform_data
304armadillo5x0_nand_board_info __initconst = {
304 .width = 1, 305 .width = 1,
305 .hw_ecc = 1, 306 .hw_ecc = 1,
306}; 307};
@@ -531,7 +532,7 @@ static void __init armadillo5x0_init(void)
531 &armadillo5x0_nor_flash_pdata); 532 &armadillo5x0_nor_flash_pdata);
532 533
533 /* Register NAND Flash */ 534 /* Register NAND Flash */
534 mxc_register_device(&mxc_nand_device, &armadillo5x0_nand_flash_pdata); 535 imx31_add_mxc_nand(&armadillo5x0_nand_board_info);
535 536
536 /* set NAND page size to 2k if not configured via boot mode pins */ 537 /* set NAND page size to 2k if not configured via boot mode pins */
537 __raw_writel(__raw_readl(MXC_CCM_RCSR) | (1 << 30), MXC_CCM_RCSR); 538 __raw_writel(__raw_readl(MXC_CCM_RCSR) | (1 << 30), MXC_CCM_RCSR);