diff options
Diffstat (limited to 'arch/arm/mach-mx2/pcm038.c')
-rw-r--r-- | arch/arm/mach-mx2/pcm038.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-mx2/pcm038.c b/arch/arm/mach-mx2/pcm038.c index 0594644b4057..dfd4156da7d5 100644 --- a/arch/arm/mach-mx2/pcm038.c +++ b/arch/arm/mach-mx2/pcm038.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <asm/mach/time.h> | 28 | #include <asm/mach/time.h> |
29 | #include <mach/imx-uart.h> | 29 | #include <mach/imx-uart.h> |
30 | #include <mach/board-pcm038.h> | 30 | #include <mach/board-pcm038.h> |
31 | #include <mach/mxc_nand.h> | ||
31 | 32 | ||
32 | #include "devices.h" | 33 | #include "devices.h" |
33 | 34 | ||
@@ -187,6 +188,11 @@ static void gpio_fec_inactive(void) | |||
187 | ARRAY_SIZE(mxc_fec_pins)); | 188 | ARRAY_SIZE(mxc_fec_pins)); |
188 | } | 189 | } |
189 | 190 | ||
191 | static struct mxc_nand_platform_data pcm038_nand_board_info = { | ||
192 | .width = 1, | ||
193 | .hw_ecc = 1, | ||
194 | }; | ||
195 | |||
190 | static struct platform_device *platform_devices[] __initdata = { | 196 | static struct platform_device *platform_devices[] __initdata = { |
191 | &pcm038_nor_mtd_device, | 197 | &pcm038_nor_mtd_device, |
192 | &mxc_w1_master_device, | 198 | &mxc_w1_master_device, |
@@ -210,7 +216,9 @@ static void __init pcm038_init(void) | |||
210 | mxc_register_device(&mxc_uart_device0, &uart_pdata[0]); | 216 | mxc_register_device(&mxc_uart_device0, &uart_pdata[0]); |
211 | mxc_register_device(&mxc_uart_device1, &uart_pdata[1]); | 217 | mxc_register_device(&mxc_uart_device1, &uart_pdata[1]); |
212 | mxc_register_device(&mxc_uart_device2, &uart_pdata[2]); | 218 | mxc_register_device(&mxc_uart_device2, &uart_pdata[2]); |
219 | |||
213 | mxc_gpio_mode(PE16_AF_RTCK); /* OWIRE */ | 220 | mxc_gpio_mode(PE16_AF_RTCK); /* OWIRE */ |
221 | mxc_register_device(&mxc_nand_device, &pcm038_nand_board_info); | ||
214 | 222 | ||
215 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); | 223 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); |
216 | 224 | ||