| .. | .. |
|---|
| 13 | 13 | #include <linux/spi/spi.h> |
|---|
| 14 | 14 | #include <linux/spi/spi-fsl-dspi.h> |
|---|
| 15 | 15 | #include <linux/spi/flash.h> |
|---|
| 16 | +#include <linux/dma-mapping.h> |
|---|
| 16 | 17 | #include <asm/mcfsim.h> |
|---|
| 17 | 18 | |
|---|
| 18 | 19 | /* |
|---|
| .. | .. |
|---|
| 78 | 79 | }, |
|---|
| 79 | 80 | }; |
|---|
| 80 | 81 | |
|---|
| 82 | +static u64 stmark2_dspi_mask = DMA_BIT_MASK(32); |
|---|
| 83 | + |
|---|
| 81 | 84 | /* SPI controller, id = bus number */ |
|---|
| 82 | 85 | static struct platform_device dspi_spi0_device = { |
|---|
| 83 | 86 | .name = "fsl-dspi", |
|---|
| .. | .. |
|---|
| 86 | 89 | .resource = dspi_spi0_resource, |
|---|
| 87 | 90 | .dev = { |
|---|
| 88 | 91 | .platform_data = &dspi_spi0_info, |
|---|
| 92 | + .dma_mask = &stmark2_dspi_mask, |
|---|
| 93 | + .coherent_dma_mask = DMA_BIT_MASK(32), |
|---|
| 89 | 94 | }, |
|---|
| 90 | 95 | }; |
|---|
| 91 | 96 | |
|---|