diff options
Diffstat (limited to 'arch/blackfin/mach-bf533/boards/stamp.c')
-rw-r--r-- | arch/blackfin/mach-bf533/boards/stamp.c | 58 |
1 files changed, 21 insertions, 37 deletions
diff --git a/arch/blackfin/mach-bf533/boards/stamp.c b/arch/blackfin/mach-bf533/boards/stamp.c index 050ffca53530..07f9ad1e189c 100644 --- a/arch/blackfin/mach-bf533/boards/stamp.c +++ b/arch/blackfin/mach-bf533/boards/stamp.c | |||
@@ -49,7 +49,7 @@ | |||
49 | /* | 49 | /* |
50 | * Name the Board for the /proc/cpuinfo | 50 | * Name the Board for the /proc/cpuinfo |
51 | */ | 51 | */ |
52 | const char bfin_board_name[] = "ADDS-BF533-STAMP"; | 52 | const char bfin_board_name[] = "ADI BF533-STAMP"; |
53 | 53 | ||
54 | #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) | 54 | #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) |
55 | static struct platform_device rtc_device = { | 55 | static struct platform_device rtc_device = { |
@@ -118,7 +118,7 @@ static struct mtd_partition stamp_partitions[] = { | |||
118 | .offset = 0, | 118 | .offset = 0, |
119 | }, { | 119 | }, { |
120 | .name = "linux kernel(nor)", | 120 | .name = "linux kernel(nor)", |
121 | .size = 0xE0000, | 121 | .size = 0x180000, |
122 | .offset = MTDPART_OFS_APPEND, | 122 | .offset = MTDPART_OFS_APPEND, |
123 | }, { | 123 | }, { |
124 | .name = "file system(nor)", | 124 | .name = "file system(nor)", |
@@ -169,7 +169,7 @@ static struct mtd_partition bfin_spi_flash_partitions[] = { | |||
169 | .mask_flags = MTD_CAP_ROM | 169 | .mask_flags = MTD_CAP_ROM |
170 | }, { | 170 | }, { |
171 | .name = "linux kernel(spi)", | 171 | .name = "linux kernel(spi)", |
172 | .size = 0xe0000, | 172 | .size = 0x180000, |
173 | .offset = MTDPART_OFS_APPEND, | 173 | .offset = MTDPART_OFS_APPEND, |
174 | }, { | 174 | }, { |
175 | .name = "file system(spi)", | 175 | .name = "file system(spi)", |
@@ -216,13 +216,6 @@ static struct bfin5xx_spi_chip spi_si3xxx_chip_info = { | |||
216 | }; | 216 | }; |
217 | #endif | 217 | #endif |
218 | 218 | ||
219 | #if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE) | ||
220 | static struct bfin5xx_spi_chip spi_mmc_chip_info = { | ||
221 | .enable_dma = 1, | ||
222 | .bits_per_word = 8, | ||
223 | }; | ||
224 | #endif | ||
225 | |||
226 | #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) | 219 | #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) |
227 | static struct bfin5xx_spi_chip spidev_chip_info = { | 220 | static struct bfin5xx_spi_chip spidev_chip_info = { |
228 | .enable_dma = 0, | 221 | .enable_dma = 0, |
@@ -265,27 +258,6 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
265 | }, | 258 | }, |
266 | #endif | 259 | #endif |
267 | 260 | ||
268 | #if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE) | ||
269 | { | ||
270 | .modalias = "spi_mmc_dummy", | ||
271 | .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ | ||
272 | .bus_num = 0, | ||
273 | .chip_select = 0, | ||
274 | .platform_data = NULL, | ||
275 | .controller_data = &spi_mmc_chip_info, | ||
276 | .mode = SPI_MODE_3, | ||
277 | }, | ||
278 | { | ||
279 | .modalias = "spi_mmc", | ||
280 | .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ | ||
281 | .bus_num = 0, | ||
282 | .chip_select = CONFIG_SPI_MMC_CS_CHAN, | ||
283 | .platform_data = NULL, | ||
284 | .controller_data = &spi_mmc_chip_info, | ||
285 | .mode = SPI_MODE_3, | ||
286 | }, | ||
287 | #endif | ||
288 | |||
289 | #if defined(CONFIG_PBX) | 261 | #if defined(CONFIG_PBX) |
290 | { | 262 | { |
291 | .modalias = "fxs-spi", | 263 | .modalias = "fxs-spi", |
@@ -373,23 +345,33 @@ static struct platform_device bfin_uart_device = { | |||
373 | #endif | 345 | #endif |
374 | 346 | ||
375 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 347 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
376 | static struct resource bfin_sir_resources[] = { | ||
377 | #ifdef CONFIG_BFIN_SIR0 | 348 | #ifdef CONFIG_BFIN_SIR0 |
349 | static struct resource bfin_sir0_resources[] = { | ||
378 | { | 350 | { |
379 | .start = 0xFFC00400, | 351 | .start = 0xFFC00400, |
380 | .end = 0xFFC004FF, | 352 | .end = 0xFFC004FF, |
381 | .flags = IORESOURCE_MEM, | 353 | .flags = IORESOURCE_MEM, |
382 | }, | 354 | }, |
383 | #endif | 355 | { |
356 | .start = IRQ_UART0_RX, | ||
357 | .end = IRQ_UART0_RX+1, | ||
358 | .flags = IORESOURCE_IRQ, | ||
359 | }, | ||
360 | { | ||
361 | .start = CH_UART0_RX, | ||
362 | .end = CH_UART0_RX+1, | ||
363 | .flags = IORESOURCE_DMA, | ||
364 | }, | ||
384 | }; | 365 | }; |
385 | 366 | ||
386 | static struct platform_device bfin_sir_device = { | 367 | static struct platform_device bfin_sir0_device = { |
387 | .name = "bfin_sir", | 368 | .name = "bfin_sir", |
388 | .id = 0, | 369 | .id = 0, |
389 | .num_resources = ARRAY_SIZE(bfin_sir_resources), | 370 | .num_resources = ARRAY_SIZE(bfin_sir0_resources), |
390 | .resource = bfin_sir_resources, | 371 | .resource = bfin_sir0_resources, |
391 | }; | 372 | }; |
392 | #endif | 373 | #endif |
374 | #endif | ||
393 | 375 | ||
394 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | 376 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) |
395 | static struct platform_device bfin_sport0_uart_device = { | 377 | static struct platform_device bfin_sport0_uart_device = { |
@@ -537,7 +519,9 @@ static struct platform_device *stamp_devices[] __initdata = { | |||
537 | #endif | 519 | #endif |
538 | 520 | ||
539 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 521 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
540 | &bfin_sir_device, | 522 | #ifdef CONFIG_BFIN_SIR0 |
523 | &bfin_sir0_device, | ||
524 | #endif | ||
541 | #endif | 525 | #endif |
542 | 526 | ||
543 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | 527 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) |