From: Sascha Hauer Date: Sun, 23 Nov 2008 16:34:04 +0000 (+0100) Subject: [ARM] pcm037: add NAND support X-Git-Tag: v2.6.29-rc1~559^2~11^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3287abbd71fded81469adce21628e838c566b86b;p=profile%2Fivi%2Fkernel-x86-ivi.git [ARM] pcm037: add NAND support Signed-off-by: Sascha Hauer --- diff --git a/arch/arm/mach-mx3/pcm037.c b/arch/arm/mach-mx3/pcm037.c index 4438444..8cea825 100644 --- a/arch/arm/mach-mx3/pcm037.c +++ b/arch/arm/mach-mx3/pcm037.c @@ -36,6 +36,7 @@ #include #include #include +#include #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); } /*