summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mx5/board-mx53_evk.c
diff options
context:
space:
mode:
authorYong Shen <yong.shen@freescale.com>2011-01-13 06:39:53 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2011-01-13 12:02:18 +0300
commit65e2e9c8c3eab03f123d6852d14c0a65785c4e51 (patch)
treed52e6a22e447c815c755a6d35d84eed5ee87316d /arch/arm/mach-mx5/board-mx53_evk.c
parent6b2837dc6d7f923bd622049823284b7277ff0558 (diff)
downloadlinux-65e2e9c8c3eab03f123d6852d14c0a65785c4e51.tar.xz
ARM: i.MX53 EVK: add spi nor device
add spi board information for spi nor device Signed-off-by: Yong Shen <yong.shen@freescale.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx5/board-mx53_evk.c')
-rw-r--r--arch/arm/mach-mx5/board-mx53_evk.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-mx5/board-mx53_evk.c b/arch/arm/mach-mx5/board-mx53_evk.c
index 2cb441562e19..caee04c08238 100644
--- a/arch/arm/mach-mx5/board-mx53_evk.c
+++ b/arch/arm/mach-mx5/board-mx53_evk.c
@@ -24,6 +24,8 @@
#include <linux/fec.h>
#include <linux/delay.h>
#include <linux/gpio.h>
+#include <linux/spi/flash.h>
+#include <linux/spi/spi.h>
#include <mach/common.h>
#include <mach/hardware.h>
#include <asm/mach-types.h>
@@ -99,6 +101,17 @@ static struct fec_platform_data mx53_evk_fec_pdata = {
.phy = PHY_INTERFACE_MODE_RMII,
};
+static struct spi_board_info mx53_evk_spi_board_info[] __initdata = {
+ {
+ .modalias = "mtd_dataflash",
+ .max_speed_hz = 25000000,
+ .bus_num = 0,
+ .chip_select = 1,
+ .mode = SPI_MODE_0,
+ .platform_data = NULL,
+ },
+};
+
static int mx53_evk_spi_cs[] = {
EVK_ECSPI1_CS0,
EVK_ECSPI1_CS1,
@@ -123,6 +136,8 @@ static void __init mx53_evk_board_init(void)
imx53_add_sdhci_esdhc_imx(0, NULL);
imx53_add_sdhci_esdhc_imx(1, NULL);
+ spi_register_board_info(mx53_evk_spi_board_info,
+ ARRAY_SIZE(mx53_evk_spi_board_info));
imx53_add_ecspi(0, &mx53_evk_spi_data);
}