diff options
-rw-r--r-- | arch/arm/mach-mx2/mx27ads.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-mx2/mx27ads.c b/arch/arm/mach-mx2/mx27ads.c index 13accbed8886..ee8f3d986ff5 100644 --- a/arch/arm/mach-mx2/mx27ads.c +++ b/arch/arm/mach-mx2/mx27ads.c | |||
@@ -33,6 +33,7 @@ | |||
33 | #include <mach/imx-uart.h> | 33 | #include <mach/imx-uart.h> |
34 | #include <mach/iomux.h> | 34 | #include <mach/iomux.h> |
35 | #include <mach/board-mx27ads.h> | 35 | #include <mach/board-mx27ads.h> |
36 | #include <mach/mxc_nand.h> | ||
36 | 37 | ||
37 | #include "devices.h" | 38 | #include "devices.h" |
38 | 39 | ||
@@ -88,6 +89,11 @@ static unsigned int mx27ads_pins[] = { | |||
88 | PF23_AIN_FEC_TX_EN, | 89 | PF23_AIN_FEC_TX_EN, |
89 | }; | 90 | }; |
90 | 91 | ||
92 | static struct mxc_nand_platform_data mx27ads_nand_board_info = { | ||
93 | .width = 1, | ||
94 | .hw_ecc = 1, | ||
95 | }; | ||
96 | |||
91 | /* ADS's NOR flash */ | 97 | /* ADS's NOR flash */ |
92 | static struct physmap_flash_data mx27ads_flash_data = { | 98 | static struct physmap_flash_data mx27ads_flash_data = { |
93 | .width = 2, | 99 | .width = 2, |
@@ -142,6 +148,7 @@ static void __init mx27ads_board_init(void) | |||
142 | mxc_register_device(&mxc_uart_device3, &uart_pdata[3]); | 148 | mxc_register_device(&mxc_uart_device3, &uart_pdata[3]); |
143 | mxc_register_device(&mxc_uart_device4, &uart_pdata[4]); | 149 | mxc_register_device(&mxc_uart_device4, &uart_pdata[4]); |
144 | mxc_register_device(&mxc_uart_device5, &uart_pdata[5]); | 150 | mxc_register_device(&mxc_uart_device5, &uart_pdata[5]); |
151 | mxc_register_device(&mxc_nand_device, &mx27ads_nand_board_info); | ||
145 | 152 | ||
146 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); | 153 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); |
147 | } | 154 | } |