aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-11-23 11:34:04 -0500
committerSascha Hauer <s.hauer@pengutronix.de>2008-12-16 08:58:14 -0500
commit3287abbd71fded81469adce21628e838c566b86b (patch)
treedc54f9d20a9b24846e60b8ab2dd00181bbc6dfa3 /arch/arm/mach-mx3
parentcb96cf1ad641334ca605cdf25841ac020d6ae01c (diff)
[ARM] pcm037: add NAND support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3')
-rw-r--r--arch/arm/mach-mx3/pcm037.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/pcm037.c b/arch/arm/mach-mx3/pcm037.c
index 4438444ce749..8cea82587222 100644
--- a/arch/arm/mach-mx3/pcm037.c
+++ b/arch/arm/mach-mx3/pcm037.c
@@ -36,6 +36,7 @@
36#include <mach/imx-uart.h> 36#include <mach/imx-uart.h>
37#include <mach/iomux-mx3.h> 37#include <mach/iomux-mx3.h>
38#include <mach/board-pcm037.h> 38#include <mach/board-pcm037.h>
39#include <mach/mxc_nand.h>
39 40
40#include "devices.h" 41#include "devices.h"
41 42
@@ -111,6 +112,11 @@ static struct platform_device pcm037_sram_device = {
111 .resource = &pcm038_sram_resource, 112 .resource = &pcm038_sram_resource,
112}; 113};
113 114
115static struct mxc_nand_platform_data pcm037_nand_board_info = {
116 .width = 1,
117 .hw_ecc = 1,
118};
119
114static struct platform_device *devices[] __initdata = { 120static struct platform_device *devices[] __initdata = {
115 &pcm037_flash, 121 &pcm037_flash,
116 &pcm037_eth, 122 &pcm037_eth,
@@ -143,6 +149,8 @@ static void __init mxc_board_init(void)
143 mxc_iomux_mode(IOMUX_MODE(MX31_PIN_GPIO3_1, IOMUX_CONFIG_GPIO)); 149 mxc_iomux_mode(IOMUX_MODE(MX31_PIN_GPIO3_1, IOMUX_CONFIG_GPIO));
144 if (!gpio_request(MX31_PIN_GPIO3_1, "pcm037-eth")) 150 if (!gpio_request(MX31_PIN_GPIO3_1, "pcm037-eth"))
145 gpio_direction_input(MX31_PIN_GPIO3_1); 151 gpio_direction_input(MX31_PIN_GPIO3_1);
152
153 mxc_register_device(&mxc_nand_device, &pcm037_nand_board_info);
146} 154}
147 155
148/* 156/*