From 4a12a0bcc0a1005a734048be4c0331818ad45572 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 11 Nov 2008 15:15:39 +0100 Subject: [PATCH] --- yaml --- r: 123778 b: refs/heads/master c: cb96cf1ad641334ca605cdf25841ac020d6ae01c h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-mx3/devices.c | 19 +++++++++++++++++++ trunk/arch/arm/mach-mx3/devices.h | 1 + trunk/drivers/mtd/nand/Kconfig | 2 +- 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 98899f1132c3..dbe1e4859532 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 01f71a371969c753add171991d8f5ecce3b368d4 +refs/heads/master: cb96cf1ad641334ca605cdf25841ac020d6ae01c diff --git a/trunk/arch/arm/mach-mx3/devices.c b/trunk/arch/arm/mach-mx3/devices.c index 12b3e3c00460..3e61ff4646fe 100644 --- a/trunk/arch/arm/mach-mx3/devices.c +++ b/trunk/arch/arm/mach-mx3/devices.c @@ -160,3 +160,22 @@ struct platform_device mxc_w1_master_device = { .num_resources = ARRAY_SIZE(mxc_w1_master_resources), .resource = mxc_w1_master_resources, }; + +static struct resource mxc_nand_resources[] = { + { + .start = NFC_BASE_ADDR, + .end = NFC_BASE_ADDR + 0xfff, + .flags = IORESOURCE_MEM + }, { + .start = MXC_INT_NANDFC, + .end = MXC_INT_NANDFC, + .flags = IORESOURCE_IRQ + }, +}; + +struct platform_device mxc_nand_device = { + .name = "mxc_nand", + .id = 0, + .num_resources = ARRAY_SIZE(mxc_nand_resources), + .resource = mxc_nand_resources, +}; diff --git a/trunk/arch/arm/mach-mx3/devices.h b/trunk/arch/arm/mach-mx3/devices.h index cb1459c7c960..9949ef4e0694 100644 --- a/trunk/arch/arm/mach-mx3/devices.h +++ b/trunk/arch/arm/mach-mx3/devices.h @@ -5,3 +5,4 @@ extern struct platform_device mxc_uart_device2; extern struct platform_device mxc_uart_device3; extern struct platform_device mxc_uart_device4; extern struct platform_device mxc_w1_master_device; +extern struct platform_device mxc_nand_device; diff --git a/trunk/drivers/mtd/nand/Kconfig b/trunk/drivers/mtd/nand/Kconfig index 1c2e9450d663..f8ae0400c49c 100644 --- a/trunk/drivers/mtd/nand/Kconfig +++ b/trunk/drivers/mtd/nand/Kconfig @@ -408,7 +408,7 @@ config MTD_NAND_FSL_UPM config MTD_NAND_MXC tristate "MXC NAND support" - depends on ARCH_MX2 + depends on ARCH_MX2 || ARCH_MX3 help This enables the driver for the NAND flash controller on the MXC processors.