Commit 8d4fd258 authored by Vladimir Barinov's avatar Vladimir Barinov Committed by Sascha Hauer

MX27ADS: Add NAND support

Add NAND support for MX27ADS board
Signed-off-by: default avatarVladimir Barinov <vbarinov@embeddedalley.com>
Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
parent c1a6f123
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include <mach/imx-uart.h> #include <mach/imx-uart.h>
#include <mach/iomux.h> #include <mach/iomux.h>
#include <mach/board-mx27ads.h> #include <mach/board-mx27ads.h>
#include <mach/mxc_nand.h>
#include "devices.h" #include "devices.h"
...@@ -88,6 +89,11 @@ static unsigned int mx27ads_pins[] = { ...@@ -88,6 +89,11 @@ static unsigned int mx27ads_pins[] = {
PF23_AIN_FEC_TX_EN, PF23_AIN_FEC_TX_EN,
}; };
static struct mxc_nand_platform_data mx27ads_nand_board_info = {
.width = 1,
.hw_ecc = 1,
};
/* ADS's NOR flash */ /* ADS's NOR flash */
static struct physmap_flash_data mx27ads_flash_data = { static struct physmap_flash_data mx27ads_flash_data = {
.width = 2, .width = 2,
...@@ -142,6 +148,7 @@ static void __init mx27ads_board_init(void) ...@@ -142,6 +148,7 @@ static void __init mx27ads_board_init(void)
mxc_register_device(&mxc_uart_device3, &uart_pdata[3]); mxc_register_device(&mxc_uart_device3, &uart_pdata[3]);
mxc_register_device(&mxc_uart_device4, &uart_pdata[4]); mxc_register_device(&mxc_uart_device4, &uart_pdata[4]);
mxc_register_device(&mxc_uart_device5, &uart_pdata[5]); mxc_register_device(&mxc_uart_device5, &uart_pdata[5]);
mxc_register_device(&mxc_nand_device, &mx27ads_nand_board_info);
platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment