From eb051b789fac68e4ff5a1f1ca445121dcd706ba2 Mon Sep 17 00:00:00 2001 From: Yong Shen Date: Thu, 13 Jan 2011 11:39:53 +0800 Subject: [PATCH] --- yaml --- r: 231370 b: refs/heads/master c: 65e2e9c8c3eab03f123d6852d14c0a65785c4e51 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-mx5/board-mx53_evk.c | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 9b5f1df92fb3..3418a4ce8a83 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6b2837dc6d7f923bd622049823284b7277ff0558 +refs/heads/master: 65e2e9c8c3eab03f123d6852d14c0a65785c4e51 diff --git a/trunk/arch/arm/mach-mx5/board-mx53_evk.c b/trunk/arch/arm/mach-mx5/board-mx53_evk.c index 2cb441562e19..caee04c08238 100644 --- a/trunk/arch/arm/mach-mx5/board-mx53_evk.c +++ b/trunk/arch/arm/mach-mx5/board-mx53_evk.c @@ -24,6 +24,8 @@ #include #include #include +#include +#include #include #include #include @@ -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); }