diff options
Diffstat (limited to 'arch/arm/mach-mx5/board-mx53_evk.c')
-rw-r--r-- | arch/arm/mach-mx5/board-mx53_evk.c | 15 |
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 2cb441562e1..caee04c0823 100644 --- a/arch/arm/mach-mx5/board-mx53_evk.c +++ b/arch/arm/mach-mx5/board-mx53_evk.c | |||
@@ -24,6 +24,8 @@ | |||
24 | #include <linux/fec.h> | 24 | #include <linux/fec.h> |
25 | #include <linux/delay.h> | 25 | #include <linux/delay.h> |
26 | #include <linux/gpio.h> | 26 | #include <linux/gpio.h> |
27 | #include <linux/spi/flash.h> | ||
28 | #include <linux/spi/spi.h> | ||
27 | #include <mach/common.h> | 29 | #include <mach/common.h> |
28 | #include <mach/hardware.h> | 30 | #include <mach/hardware.h> |
29 | #include <asm/mach-types.h> | 31 | #include <asm/mach-types.h> |
@@ -99,6 +101,17 @@ static struct fec_platform_data mx53_evk_fec_pdata = { | |||
99 | .phy = PHY_INTERFACE_MODE_RMII, | 101 | .phy = PHY_INTERFACE_MODE_RMII, |
100 | }; | 102 | }; |
101 | 103 | ||
104 | static struct spi_board_info mx53_evk_spi_board_info[] __initdata = { | ||
105 | { | ||
106 | .modalias = "mtd_dataflash", | ||
107 | .max_speed_hz = 25000000, | ||
108 | .bus_num = 0, | ||
109 | .chip_select = 1, | ||
110 | .mode = SPI_MODE_0, | ||
111 | .platform_data = NULL, | ||
112 | }, | ||
113 | }; | ||
114 | |||
102 | static int mx53_evk_spi_cs[] = { | 115 | static int mx53_evk_spi_cs[] = { |
103 | EVK_ECSPI1_CS0, | 116 | EVK_ECSPI1_CS0, |
104 | EVK_ECSPI1_CS1, | 117 | EVK_ECSPI1_CS1, |
@@ -123,6 +136,8 @@ static void __init mx53_evk_board_init(void) | |||
123 | imx53_add_sdhci_esdhc_imx(0, NULL); | 136 | imx53_add_sdhci_esdhc_imx(0, NULL); |
124 | imx53_add_sdhci_esdhc_imx(1, NULL); | 137 | imx53_add_sdhci_esdhc_imx(1, NULL); |
125 | 138 | ||
139 | spi_register_board_info(mx53_evk_spi_board_info, | ||
140 | ARRAY_SIZE(mx53_evk_spi_board_info)); | ||
126 | imx53_add_ecspi(0, &mx53_evk_spi_data); | 141 | imx53_add_ecspi(0, &mx53_evk_spi_data); |
127 | } | 142 | } |
128 | 143 | ||