diff options
Diffstat (limited to 'arch/blackfin/mach-bf533/boards/stamp.c')
-rw-r--r-- | arch/blackfin/mach-bf533/boards/stamp.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf533/boards/stamp.c b/arch/blackfin/mach-bf533/boards/stamp.c index 41ec72f8a08c..a645f6fd091b 100644 --- a/arch/blackfin/mach-bf533/boards/stamp.c +++ b/arch/blackfin/mach-bf533/boards/stamp.c | |||
@@ -226,6 +226,13 @@ static struct bfin5xx_spi_chip spi_mmc_chip_info = { | |||
226 | }; | 226 | }; |
227 | #endif | 227 | #endif |
228 | 228 | ||
229 | #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) | ||
230 | static struct bfin5xx_spi_chip spidev_chip_info = { | ||
231 | .enable_dma = 0, | ||
232 | .bits_per_word = 8, | ||
233 | }; | ||
234 | #endif | ||
235 | |||
229 | static struct spi_board_info bfin_spi_board_info[] __initdata = { | 236 | static struct spi_board_info bfin_spi_board_info[] __initdata = { |
230 | #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE) | 237 | #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE) |
231 | { | 238 | { |
@@ -312,6 +319,15 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
312 | .mode = SPI_MODE_2, | 319 | .mode = SPI_MODE_2, |
313 | }, | 320 | }, |
314 | #endif | 321 | #endif |
322 | #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) | ||
323 | { | ||
324 | .modalias = "spidev", | ||
325 | .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ | ||
326 | .bus_num = 0, | ||
327 | .chip_select = 1, | ||
328 | .controller_data = &spidev_chip_info, | ||
329 | }, | ||
330 | #endif | ||
315 | }; | 331 | }; |
316 | 332 | ||
317 | /* SPI (0) */ | 333 | /* SPI (0) */ |